mirror of
https://github.com/torvalds/linux.git
synced 2024-12-25 20:32:22 +00:00
[PATCH] zd1211rw: Fill enc_capa in GIWRANGE handler
This is needed for NetworkManager users to connect to WPA networks. Pointed out by Matthew Campbell. Signed-off-by: Daniel Drake <dsd@gentoo.org> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
parent
383956a9c5
commit
ff9b99bccc
@ -615,6 +615,9 @@ int zd_mac_get_range(struct zd_mac *mac, struct iw_range *range)
|
||||
range->we_version_compiled = WIRELESS_EXT;
|
||||
range->we_version_source = 20;
|
||||
|
||||
range->enc_capa = IW_ENC_CAPA_WPA | IW_ENC_CAPA_WPA2 |
|
||||
IW_ENC_CAPA_CIPHER_TKIP | IW_ENC_CAPA_CIPHER_CCMP;
|
||||
|
||||
ZD_ASSERT(!irqs_disabled());
|
||||
spin_lock_irq(&mac->lock);
|
||||
regdomain = mac->regdomain;
|
||||
|
Loading…
Reference in New Issue
Block a user