Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 40da08bc authored by Daniel Drake's avatar Daniel Drake Committed by John W. Linville
Browse files

[PATCH] zd1211rw: Fix software encryption/decryption



Apparently the ZD1211 doesn't mind, but the ZD1211B absolutely must be
told that encryption is happening in software.

Signed-off-by: default avatarDaniel Drake <dsd@gentoo.org>
Signed-off-by: default avatarUlrich Kunitz <kune@deine-taler.de>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 71eae25e
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -108,7 +108,9 @@ int zd_mac_init_hw(struct zd_mac *mac, u8 device_type)
	if (r)
		goto disable_int;

	r = zd_set_encryption_type(chip, NO_WEP);
	/* We must inform the device that we are doing encryption/decryption in
	 * software at the moment. */
	r = zd_set_encryption_type(chip, ENC_SNIFFER);
	if (r)
		goto disable_int;

@@ -141,7 +143,6 @@ static int reset_mode(struct zd_mac *mac)
				RX_FILTER_REASSOC_RESPONSE |
				RX_FILTER_DISASSOC },
		{ CR_SNIFFER_ON, 0U },
		{ CR_ENCRYPTION_TYPE, NO_WEP },
	};

	if (ieee->iw_mode == IW_MODE_MONITOR) {