]> bbs.cooldavid.org Git - net-next-2.6.git/commit
iwlwifi: clean up last_phy_res
authorJohannes Berg <johannes.berg@intel.com>
Wed, 31 Mar 2010 15:59:17 +0000 (08:59 -0700)
committerReinette Chatre <reinette.chatre@intel.com>
Fri, 9 Apr 2010 18:28:16 +0000 (11:28 -0700)
commit05d5752027d02ca9204d1ece5074d41000fee23d
tree24efb80f55111f6588a13e5a0df300db7d176d56
parent76c3c698bf47927fb31044fa2f4321c99ed7411d
iwlwifi: clean up last_phy_res

The last_phy_res[100] variable is used in an odd
way. The first byte of it is used as a flag, and
the rest as the data. Thus, the array need only
be 61 bytes, since it is just the flag and a
struct iwl_rx_phy_res (which is 60 bytes).

Clean this up by splitting the variable into two:
last_phy_res and last_phy_res_valid, using correct
types for both (struct and bool). While doing all
this also move the variables to the _agn part of
the hw-specific union since they only apply to
A-MPDUs.

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