]> git.baikalelectronics.ru Git - kernel.git/commit
cfg80211: allow connect keys only with default (TX) key
authorJohannes Berg <johannes.berg@intel.com>
Tue, 13 Sep 2016 15:08:23 +0000 (17:08 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Thu, 15 Sep 2016 14:45:41 +0000 (16:45 +0200)
commit0836bbfd0e6aad58e49a761b89eed8fbc43f1d5d
tree39a551700fae54fc01846f2e8f093c33eded483c
parentd5d5d2578a2d0e44c8ace73b5728e9af30c39bc8
cfg80211: allow connect keys only with default (TX) key

There's no point in allowing connect keys when one of them
isn't also configured as the TX key, it would just confuse
drivers and probably cause them to pick something for TX.
Disallow this confusing and erroneous configuration.

As wpa_supplicant will always send NL80211_ATTR_KEYS, even
when there are no keys inside, allow that and treat it as
though the attribute isn't present at all.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/wireless/ibss.c
net/wireless/nl80211.c
net/wireless/sme.c
net/wireless/wext-sme.c