aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/iwl-agn.c
diff options
context:
space:
mode:
authorReinette Chatre <reinette.chatre@intel.com>2009-10-16 17:25:55 -0400
committerJohn W. Linville <linville@tuxdriver.com>2009-10-27 16:48:33 -0400
commit8d9698b3e6ce3c50f9ec5a0aaea4da82d5af7779 (patch)
tree652b1fecb395e4f41397bfa68d11144dfe918ccf /drivers/net/wireless/iwlwifi/iwl-agn.c
parentcc1282f63b53d0967bd96ed56aa3d2463dc4b4b6 (diff)
iwlagn: store station rate scale information in mac80211 station structure
Currently mac80211 initializes the rate scaling before notifying the driver of the station's existence. The driver dealt with this by not relying on mac80211's station notifications and instead mixing this functionality with the rate scaling code and other places. To clean this up the driver needs to do rate scaling initialization after being notified of the station, this can be done if the rate scaling information forms part of the station information passed from mac80211 to driver. Signed-off-by: Reinette Chatre <reinette.chatre@intel.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-agn.c')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-agn.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-agn.c b/drivers/net/wireless/iwlwifi/iwl-agn.c
index 6c4fa011a92..64d918787e8 100644
--- a/drivers/net/wireless/iwlwifi/iwl-agn.c
+++ b/drivers/net/wireless/iwlwifi/iwl-agn.c
@@ -2304,6 +2304,7 @@ static int iwl_setup_mac(struct iwl_priv *priv)
2304 hw->flags |= IEEE80211_HW_SUPPORTS_PS | 2304 hw->flags |= IEEE80211_HW_SUPPORTS_PS |
2305 IEEE80211_HW_SUPPORTS_DYNAMIC_PS; 2305 IEEE80211_HW_SUPPORTS_DYNAMIC_PS;
2306 2306
2307 hw->sta_data_size = sizeof(struct iwl_station_priv);
2307 hw->wiphy->interface_modes = 2308 hw->wiphy->interface_modes =
2308 BIT(NL80211_IFTYPE_STATION) | 2309 BIT(NL80211_IFTYPE_STATION) |
2309 BIT(NL80211_IFTYPE_ADHOC); 2310 BIT(NL80211_IFTYPE_ADHOC);