Explorar o código

iwlagn: send beacon before committing associated RXON

Newer AGN microcode requires know the beacon
before starting the AP so that it can start
beaconing right away. Implement that.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
Johannes Berg %!s(int64=15) %!d(string=hai) anos
pai
achega
08abc53cf4
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      drivers/net/wireless/iwlwifi/iwl-agn.c

+ 2 - 0
drivers/net/wireless/iwlwifi/iwl-agn.c

@@ -3559,6 +3559,8 @@ void iwl_config_ap(struct iwl_priv *priv, struct ieee80211_vif *vif)
 				ctx->staging.flags &=
 				ctx->staging.flags &=
 					~RXON_FLG_SHORT_SLOT_MSK;
 					~RXON_FLG_SHORT_SLOT_MSK;
 		}
 		}
+		/* need to send beacon cmd before committing assoc RXON! */
+		iwl_send_beacon_cmd(priv);
 		/* restore RXON assoc */
 		/* restore RXON assoc */
 		ctx->staging.filter_flags |= RXON_FILTER_ASSOC_MSK;
 		ctx->staging.filter_flags |= RXON_FILTER_ASSOC_MSK;
 		iwlcore_commit_rxon(priv, ctx);
 		iwlcore_commit_rxon(priv, ctx);