]> Pileus Git - ~andy/linux/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)
commite75dac921d88ac1fa1ad08686ab242556f8b888b
treeba963445c11d972497f1e06bf543a4b9325548ff
parente9c03d18c4291c4351d6b9f74bd1278a761015a2
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