summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/iwl-agn.c
diff options
context:
space:
mode:
authorReinette Chatre2010-01-22 23:22:49 +0100
committerJohn W. Linville2010-01-25 22:36:22 +0100
commit3459ab5a1c92eaf8b76e9fa1b6ca529cf83066f3 (patch)
treeda8acd0d103f0a36d7f0c6772fbc253599421c8e /drivers/net/wireless/iwlwifi/iwl-agn.c
parentiwlwifi: cleanup station adding code (diff)
downloadkernel-qcow2-linux-3459ab5a1c92eaf8b76e9fa1b6ca529cf83066f3.tar.gz
kernel-qcow2-linux-3459ab5a1c92eaf8b76e9fa1b6ca529cf83066f3.tar.xz
kernel-qcow2-linux-3459ab5a1c92eaf8b76e9fa1b6ca529cf83066f3.zip
iwlwifi: make broadcast station addition generic
Add function pointer for broadcast station addition so that we can call it in from iwlcore at a later time. We only distinguish between iwlagn and iwl3945 broadcast station addition. For the iwl3945 station addition we add that function to iwlcore since that is where most station functionality resides, making it part of iwl3945 will require significant code reorganization that will dilute station management functionality. This seems to be an efficient solution. It may seem as though we are removing error checking when adding the 3945 broadcast station but this error checking was never really necessary since the function returns the station id and the broadcast station id is always set. 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.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-agn.c b/drivers/net/wireless/iwlwifi/iwl-agn.c
index e9f786443d1f..bed5dda8d6b2 100644
--- a/drivers/net/wireless/iwlwifi/iwl-agn.c
+++ b/drivers/net/wireless/iwlwifi/iwl-agn.c
@@ -203,7 +203,8 @@ int iwl_commit_rxon(struct iwl_priv *priv)
priv->start_calib = 0;
/* Add the broadcast address so we can send broadcast frames */
- iwl_add_bcast_station(priv);
+ priv->cfg->ops->lib->add_bcast_station(priv);
+
/* If we have set the ASSOC_MSK and we are in BSS mode then
* add the IWL_AP_ID to the station rate table */