]> git.karo-electronics.de Git - linux-beck.git/commit
iwlwifi: use iwl_find_station less
authorJohannes Berg <johannes.berg@intel.com>
Fri, 30 Apr 2010 18:30:45 +0000 (11:30 -0700)
committerReinette Chatre <reinette.chatre@intel.com>
Mon, 10 May 2010 22:09:05 +0000 (15:09 -0700)
commit2a87c26bbe9587baeb9e56d3ce0b4971bd777643
tree1c04fc0eebe00cf3ffe6219f3b6d195f3cfae05a
parent64ba9a54c60990416c4098c63792c37d8fccb9e1
iwlwifi: use iwl_find_station less

Since we now store the station ID in each station
struct, many places need not look at the station
table any more since they can just pull the station
ID out of the struct. Remove iwl_get_sta_id() and
use iwl_sta_id() instead as appropriate.

This reduces the amount of code needed to find the
right station significantly, and works since
mac80211 passes the station only after it has been
fully initialised, ie. even if TX races with
station addition it will only be passed to TX once
the addition is complete.

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