iwlwifi: introduce iwl_sta_id_or_broadcast
authorJohannes Berg <johannes.berg@intel.com>
Fri, 30 Apr 2010 21:08:00 +0000 (14:08 -0700)
committerReinette Chatre <reinette.chatre@intel.com>
Thu, 13 May 2010 17:42:32 +0000 (10:42 -0700)
commit0af8bcae6f44aa440e51b1925635fb835cd68058
tree99256de08f84d6b2e6db87ec32b3471ed5bb3b89
parentfd76f148ebc67d662f71f00128c8ddb0538168c0
iwlwifi: introduce iwl_sta_id_or_broadcast

There are now five places where we need to
look up the station ID, but the sta pointer
may be NULL due to mac80211 passing that to
indicate a certain special state.

Replace all these by a new inline function,
called iwl_sta_id_or_broadcast(), and add
documentation about when to use it.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Reinette Chatre <reinette.chatre@intel.com>
drivers/net/wireless/iwlwifi/iwl-agn-tx.c
drivers/net/wireless/iwlwifi/iwl-agn.c
drivers/net/wireless/iwlwifi/iwl-sta.c
drivers/net/wireless/iwlwifi/iwl-sta.h
drivers/net/wireless/iwlwifi/iwl3945-base.c