iwlwifi: move bcast_sta_id init to common routine
authorDon Fry <donald.h.fry@intel.com>
Wed, 25 Jan 2012 23:26:34 +0000 (15:26 -0800)
committerWey-Yi Guy <wey-yi.w.guy@intel.com>
Thu, 2 Feb 2012 22:38:16 +0000 (14:38 -0800)
There is nothing device specific in the initialization of the
bcast_sta_id so move it to the common inititalization routine.

Signed-off-by: Don Fry <donald.h.fry@intel.com>
Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
drivers/net/wireless/iwlwifi/iwl-1000.c
drivers/net/wireless/iwlwifi/iwl-2000.c
drivers/net/wireless/iwlwifi/iwl-5000.c
drivers/net/wireless/iwlwifi/iwl-6000.c
drivers/net/wireless/iwlwifi/iwl-agn.c

index f7a555b9d24bb6cfd8d2b9eae91bce2ee694df06..8c1466c907ff2b7cdf2a7af1ecb1029683248a1f 100644 (file)
@@ -128,8 +128,6 @@ static int iwl1000_hw_set_hw_params(struct iwl_priv *priv)
                        iwlagn_mod_params.num_of_queues;
 
        hw_params(priv).max_txq_num = cfg(priv)->base_params->num_of_queues;
-       priv->contexts[IWL_RXON_CTX_BSS].bcast_sta_id = IWLAGN_BROADCAST_ID;
-
        hw_params(priv).max_data_size = IWLAGN_RTC_DATA_SIZE;
        hw_params(priv).max_inst_size = IWLAGN_RTC_INST_SIZE;
 
index 8760034501086462c217b439a38d040fd903ce0e..d4f5f3b8757885109ca6299be342a19aea0fd871 100644 (file)
@@ -124,8 +124,6 @@ static int iwl2000_hw_set_hw_params(struct iwl_priv *priv)
                        iwlagn_mod_params.num_of_queues;
 
        hw_params(priv).max_txq_num = cfg(priv)->base_params->num_of_queues;
-       priv->contexts[IWL_RXON_CTX_BSS].bcast_sta_id = IWLAGN_BROADCAST_ID;
-
        hw_params(priv).max_data_size = IWL60_RTC_DATA_SIZE;
        hw_params(priv).max_inst_size = IWL60_RTC_INST_SIZE;
 
index 5245a1422a6472a236ca83ed1403b9757bdb141d..dc9317d0343e05659ae64af720b0011c9afea664 100644 (file)
@@ -170,8 +170,6 @@ static int iwl5000_hw_set_hw_params(struct iwl_priv *priv)
                        iwlagn_mod_params.num_of_queues;
 
        hw_params(priv).max_txq_num = cfg(priv)->base_params->num_of_queues;
-       priv->contexts[IWL_RXON_CTX_BSS].bcast_sta_id = IWLAGN_BROADCAST_ID;
-
        hw_params(priv).max_data_size = IWLAGN_RTC_DATA_SIZE;
        hw_params(priv).max_inst_size = IWLAGN_RTC_INST_SIZE;
 
@@ -199,8 +197,6 @@ static int iwl5150_hw_set_hw_params(struct iwl_priv *priv)
                        iwlagn_mod_params.num_of_queues;
 
        hw_params(priv).max_txq_num = cfg(priv)->base_params->num_of_queues;
-       priv->contexts[IWL_RXON_CTX_BSS].bcast_sta_id = IWLAGN_BROADCAST_ID;
-
        hw_params(priv).max_data_size = IWLAGN_RTC_DATA_SIZE;
        hw_params(priv).max_inst_size = IWLAGN_RTC_INST_SIZE;
 
index 464b88784678abcf13c3a6deb60cb7a5ad7225d3..c36fb858a45bfe7ead8dc7722c17facaba6f24ac 100644 (file)
@@ -145,8 +145,6 @@ static int iwl6000_hw_set_hw_params(struct iwl_priv *priv)
                        iwlagn_mod_params.num_of_queues;
 
        hw_params(priv).max_txq_num = cfg(priv)->base_params->num_of_queues;
-       priv->contexts[IWL_RXON_CTX_BSS].bcast_sta_id = IWLAGN_BROADCAST_ID;
-
        hw_params(priv).max_data_size = IWL60_RTC_DATA_SIZE;
        hw_params(priv).max_inst_size = IWL60_RTC_INST_SIZE;
 
index 82f8836f304d8db2d2accb67d40ee4bdd7f2e6c5..c41c394de2c2661e6b153ef9282f54ef93e3c8c0 100644 (file)
@@ -513,6 +513,7 @@ static void iwl_init_context(struct iwl_priv *priv, u32 ucode_flags)
        priv->contexts[IWL_RXON_CTX_BSS].qos_cmd = REPLY_QOS_PARAM;
        priv->contexts[IWL_RXON_CTX_BSS].ap_sta_id = IWL_AP_ID;
        priv->contexts[IWL_RXON_CTX_BSS].wep_key_cmd = REPLY_WEPKEY;
+       priv->contexts[IWL_RXON_CTX_BSS].bcast_sta_id = IWLAGN_BROADCAST_ID;
        priv->contexts[IWL_RXON_CTX_BSS].exclusive_interface_modes =
                BIT(NL80211_IFTYPE_ADHOC);
        priv->contexts[IWL_RXON_CTX_BSS].interface_modes =