Felix Fietkau 211710ca74 mac80211: fix setting IEEE80211_KEY_FLAG_RX_MGMT for AP mode keys
key->sta is only valid after ieee80211_key_link, which is called later
in this function. Because of that, the IEEE80211_KEY_FLAG_RX_MGMT is
never set when management frame protection is enabled.

Fixes: e548c49e6dc6b ("mac80211: add key flag for management keys")
Cc: stable@vger.kernel.org
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2018-10-01 09:13:48 +02:00
..
2018-06-18 22:40:32 +02:00
2018-06-18 22:40:32 +02:00
2018-06-12 16:19:22 -07:00
2017-02-10 14:31:51 -05:00
2018-06-18 22:40:32 +02:00
2018-06-18 22:40:32 +02:00
2018-06-18 22:40:32 +02:00
2018-02-22 21:13:03 +01:00
2014-04-09 14:49:43 +02:00
2018-06-30 21:08:12 +09:00
2018-06-18 22:40:32 +02:00
2018-06-18 22:40:32 +02:00
2018-02-22 21:13:03 +01:00