Commit 9185159d authored by Tomas Winkler's avatar Tomas Winkler Committed by John W. Linville

iwlwifi: fix IBSS association flow

This patch fixes regression caused by
'iwlwifi: send ADD_STA before RXON with assoc bit' patch.
RXON associated wasn't IBSS flow.
Signed-off-by: default avatarTomas Winkler <tomas.winkler@intel.com>
Signed-off-by: default avatarAssaf Krauss <assaf.krauss@intel.com>
Signed-off-by: default avatarZhu Yi <yi.zhu@intel.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 36e1f16e
...@@ -344,16 +344,19 @@ static int iwl4965_commit_rxon(struct iwl_priv *priv) ...@@ -344,16 +344,19 @@ static int iwl4965_commit_rxon(struct iwl_priv *priv)
/* If we have set the ASSOC_MSK and we are in BSS mode then /* If we have set the ASSOC_MSK and we are in BSS mode then
* add the IWL_AP_ID to the station rate table */ * add the IWL_AP_ID to the station rate table */
if (new_assoc && (priv->iw_mode == IEEE80211_IF_TYPE_STA)) { if (new_assoc) {
if (iwl_rxon_add_station(priv, priv->active_rxon.bssid_addr, 1) if (priv->iw_mode == IEEE80211_IF_TYPE_STA) {
== IWL_INVALID_STATION) { ret = iwl_rxon_add_station(priv,
IWL_ERROR("Error adding AP address for transmit.\n"); priv->active_rxon.bssid_addr, 1);
if (ret == IWL_INVALID_STATION) {
IWL_ERROR("Error adding AP address for TX.\n");
return -EIO; return -EIO;
} }
priv->assoc_station_added = 1; priv->assoc_station_added = 1;
if (priv->default_wep_key && if (priv->default_wep_key &&
iwl_send_static_wepkey_cmd(priv, 0)) iwl_send_static_wepkey_cmd(priv, 0))
IWL_ERROR("Could not send WEP static key.\n"); IWL_ERROR("Could not send WEP static key.\n");
}
/* Apply the new configuration /* Apply the new configuration
* RXON assoc doesn't clear the station table in uCode, * RXON assoc doesn't clear the station table in uCode,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment