]> 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)
commit0e0fa26d4a59f492c92e7014063ae93e804bb455
treeba963445c11d972497f1e06bf543a4b9325548ff
parent855d223a71686c6f4e78aae0df11412362b314b6
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