diff options
author | Tomas Winkler <tomas.winkler@intel.com> | 2008-05-29 04:35:04 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-06-03 15:00:23 -0400 |
commit | c135475439f75e6eb29e7586d33f3e22a61c1bb4 (patch) | |
tree | f61744e32c13b6a0f5a28f4b4dae96f4cfa2bc9e /drivers/net/wireless/iwlwifi/iwl-rx.c | |
parent | 42132bce8011bf9507cfbb920ced2235d8dd5fce (diff) |
iwlwifi: move iwl_rx_missed_beacon_notif to iwl-rx.c
This patch moves iwl_rx_missed_beacon_notif rx handler to iwl-rx.c.
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-rx.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-rx.c | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-rx.c b/drivers/net/wireless/iwlwifi/iwl-rx.c index ed63e5c76f3..cc61c937320 100644 --- a/drivers/net/wireless/iwlwifi/iwl-rx.c +++ b/drivers/net/wireless/iwlwifi/iwl-rx.c | |||
@@ -33,6 +33,7 @@ | |||
33 | #include "iwl-core.h" | 33 | #include "iwl-core.h" |
34 | #include "iwl-sta.h" | 34 | #include "iwl-sta.h" |
35 | #include "iwl-io.h" | 35 | #include "iwl-io.h" |
36 | #include "iwl-calib.h" | ||
36 | #include "iwl-helpers.h" | 37 | #include "iwl-helpers.h" |
37 | /************************** RX-FUNCTIONS ****************************/ | 38 | /************************** RX-FUNCTIONS ****************************/ |
38 | /* | 39 | /* |
@@ -446,3 +447,24 @@ int iwl_rxq_stop(struct iwl_priv *priv) | |||
446 | } | 447 | } |
447 | EXPORT_SYMBOL(iwl_rxq_stop); | 448 | EXPORT_SYMBOL(iwl_rxq_stop); |
448 | 449 | ||
450 | void iwl_rx_missed_beacon_notif(struct iwl_priv *priv, | ||
451 | struct iwl_rx_mem_buffer *rxb) | ||
452 | |||
453 | { | ||
454 | #ifdef CONFIG_IWLWIFI_RUN_TIME_CALIB | ||
455 | struct iwl_rx_packet *pkt = (struct iwl_rx_packet *)rxb->skb->data; | ||
456 | struct iwl4965_missed_beacon_notif *missed_beacon; | ||
457 | |||
458 | missed_beacon = &pkt->u.missed_beacon; | ||
459 | if (le32_to_cpu(missed_beacon->consequtive_missed_beacons) > 5) { | ||
460 | IWL_DEBUG_CALIB("missed bcn cnsq %d totl %d rcd %d expctd %d\n", | ||
461 | le32_to_cpu(missed_beacon->consequtive_missed_beacons), | ||
462 | le32_to_cpu(missed_beacon->total_missed_becons), | ||
463 | le32_to_cpu(missed_beacon->num_recvd_beacons), | ||
464 | le32_to_cpu(missed_beacon->num_expected_beacons)); | ||
465 | if (!test_bit(STATUS_SCANNING, &priv->status)) | ||
466 | iwl_init_sensitivity(priv); | ||
467 | } | ||
468 | #endif /* CONFIG_IWLWIFI_RUN_TIME_CALIB */ | ||
469 | } | ||
470 | EXPORT_SYMBOL(iwl_rx_missed_beacon_notif); | ||