|
@@ -427,7 +427,7 @@ static int ieee80211_add_key(struct wiphy *wiphy, struct net_device *dev,
|
|
|
case NL80211_IFTYPE_AP:
|
|
case NL80211_IFTYPE_AP:
|
|
|
case NL80211_IFTYPE_AP_VLAN:
|
|
case NL80211_IFTYPE_AP_VLAN:
|
|
|
/* Keys without a station are used for TX only */
|
|
/* Keys without a station are used for TX only */
|
|
|
- if (key->sta && test_sta_flag(key->sta, WLAN_STA_MFP))
|
|
|
|
|
|
|
+ if (sta && test_sta_flag(sta, WLAN_STA_MFP))
|
|
|
key->conf.flags |= IEEE80211_KEY_FLAG_RX_MGMT;
|
|
key->conf.flags |= IEEE80211_KEY_FLAG_RX_MGMT;
|
|
|
break;
|
|
break;
|
|
|
case NL80211_IFTYPE_ADHOC:
|
|
case NL80211_IFTYPE_ADHOC:
|