]> git.baikalelectronics.ru Git - kernel.git/commit
iwlwifi: limit mac_change_interface to BSS context
authorJohannes Berg <johannes.berg@intel.com>
Wed, 20 Jun 2012 09:47:42 +0000 (11:47 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Thu, 21 Jun 2012 08:01:43 +0000 (10:01 +0200)
commite265d10f1277adc8a009eae0d8025452e9b6e131
treeba963445c11d972497f1e06bf543a4b9325548ff
parent8b7940c3143f1ed370ed011be692183a612b6656
iwlwifi: limit mac_change_interface to BSS context

Currently when mac80211 asks to change the interface
type, we will accept it for both the BSS and PAN
contexts. This is not terribly complicated today,
but with the addition of the P2P Device abstraction
the PAN context handling will get more complex, so
restrict mac_change_interface to the BSS context.

Also fix a small locking issue and use is_active
instead of the vif pointer to check if the other
context is activated, guarding exclusive interface
types on the BSS context (IBSS) against the PAN
context being used for something else.

Reviewed-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/iwlwifi/dvm/mac80211.c