aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/iwl-4965.c
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2010-09-22 12:01:56 -0400
committerWey-Yi Guy <wey-yi.w.guy@intel.com>2010-10-07 18:49:05 -0400
commita77029ee3fc03a37238b73892e55b789273991aa (patch)
tree0a2047affc7e246962b38e2dab21d7e1fb8a0da9 /drivers/net/wireless/iwlwifi/iwl-4965.c
parent7314c2b377afaf367f2966bd9ea67bf83350e29b (diff)
iwlwifi: introduce post_scan hook
The different drivers need to do different things after a scan, so create a post_scan hook to allow them to do this. Signed-off-by: Johannes Berg <johannes.berg@intel.com> Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-4965.c')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-4965.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-4965.c b/drivers/net/wireless/iwlwifi/iwl-4965.c
index 09db9407aa54..e161f5d7044d 100644
--- a/drivers/net/wireless/iwlwifi/iwl-4965.c
+++ b/drivers/net/wireless/iwlwifi/iwl-4965.c
@@ -2221,6 +2221,18 @@ static struct iwl_hcmd_ops iwl4965_hcmd = {
2221 .send_bt_config = iwl_send_bt_config, 2221 .send_bt_config = iwl_send_bt_config,
2222}; 2222};
2223 2223
2224static void iwl4965_post_scan(struct iwl_priv *priv)
2225{
2226 struct iwl_rxon_context *ctx = &priv->contexts[IWL_RXON_CTX_BSS];
2227
2228 /*
2229 * Since setting the RXON may have been deferred while
2230 * performing the scan, fire one off if needed
2231 */
2232 if (memcmp(&ctx->staging, &ctx->active, sizeof(ctx->staging)))
2233 iwlcore_commit_rxon(priv, ctx);
2234}
2235
2224static struct iwl_hcmd_utils_ops iwl4965_hcmd_utils = { 2236static struct iwl_hcmd_utils_ops iwl4965_hcmd_utils = {
2225 .get_hcmd_size = iwl4965_get_hcmd_size, 2237 .get_hcmd_size = iwl4965_get_hcmd_size,
2226 .build_addsta_hcmd = iwl4965_build_addsta_hcmd, 2238 .build_addsta_hcmd = iwl4965_build_addsta_hcmd,
@@ -2229,6 +2241,7 @@ static struct iwl_hcmd_utils_ops iwl4965_hcmd_utils = {
2229 .tx_cmd_protection = iwlcore_tx_cmd_protection, 2241 .tx_cmd_protection = iwlcore_tx_cmd_protection,
2230 .calc_rssi = iwl4965_calc_rssi, 2242 .calc_rssi = iwl4965_calc_rssi,
2231 .request_scan = iwlagn_request_scan, 2243 .request_scan = iwlagn_request_scan,
2244 .post_scan = iwl4965_post_scan,
2232}; 2245};
2233 2246
2234static struct iwl_lib_ops iwl4965_lib = { 2247static struct iwl_lib_ops iwl4965_lib = {