]> git.baikalelectronics.ru Git - kernel.git/commit
iwlwifi: mvm: clean up invalid station handling
authorEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Tue, 19 Mar 2013 14:16:00 +0000 (16:16 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 3 Apr 2013 20:49:54 +0000 (22:49 +0200)
commit95a77c0f2955b276d190004f00f6ba2523eb5c5f
treece3db162cafa616b531b2fed188096287618eec9
parentff5deb4798f6ea519f5de7e55884dad385afb280
iwlwifi: mvm: clean up invalid station handling

Using IWL_MVM_STATION_COUNT and IWL_INVALID_STATION together
isn't a good idea as they have different values. Always use
IWL_MVM_STATION_COUNT for an invalid station in MVM and move
the definition of the IWL_INVALID_STATION constant into the
DVM driver to avoid making such mistakes again. The one use
in the transport code can be hard-coded to -1 instead as the
station ID is passed as an integer there.

Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/iwlwifi/dvm/agn.h
drivers/net/wireless/iwlwifi/iwl-trans.h
drivers/net/wireless/iwlwifi/mvm/mac80211.c
drivers/net/wireless/iwlwifi/mvm/sta.c
drivers/net/wireless/iwlwifi/mvm/tx.c
drivers/net/wireless/iwlwifi/mvm/utils.c
drivers/net/wireless/iwlwifi/pcie/tx.c