[MAC80211]: kill key_mgmt, use key_management_enabled
The key_mgmt variable for STA interfaces doesn't seem well-defined nor do we actually use the values other than "NONE", so change it to be named better. Signed-off-by: Johannes Berg <johannes@sipsolutions.net> Acked-by: Michael Wu <flamingice@sourmilk.net> Signed-off-by: John W. Linville <linville@tuxdriver.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
7b33a57f0f
commit
808718c147
@ -716,8 +716,7 @@ static int ieee80211_privacy_mismatch(struct net_device *dev,
|
||||
struct ieee80211_sta_bss *bss;
|
||||
int res = 0;
|
||||
|
||||
if (!ifsta || ifsta->mixed_cell ||
|
||||
ifsta->key_mgmt != IEEE80211_KEY_MGMT_NONE)
|
||||
if (!ifsta || ifsta->mixed_cell || ifsta->key_management_enabled)
|
||||
return 0;
|
||||
|
||||
bss = ieee80211_rx_bss_get(dev, ifsta->bssid);
|
||||
|
Reference in New Issue
Block a user