diff options
author | Zhu Yi <yi.zhu@intel.com> | 2009-10-16 01:19:00 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-10-27 16:48:28 -0400 |
commit | b8fcf590939f0aa24d43bdbdae7c963f31ba90bd (patch) | |
tree | 69089f83e5ccbd1788c60684403c0846153947c4 /drivers/net/wireless/iwmc3200wifi | |
parent | 5dc53163c24ad288cfa2369b14a073992e069908 (diff) |
iwmc3200wifi: handle coexistence radio notification
Handle WiFi/WiMax coexistence radio preemption notification event.
Signed-off-by: Zhu Yi <yi.zhu@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/iwmc3200wifi')
-rw-r--r-- | drivers/net/wireless/iwmc3200wifi/rx.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/drivers/net/wireless/iwmc3200wifi/rx.c b/drivers/net/wireless/iwmc3200wifi/rx.c index bca3bb2d2dec..3ad95dc0dd8d 100644 --- a/drivers/net/wireless/iwmc3200wifi/rx.c +++ b/drivers/net/wireless/iwmc3200wifi/rx.c | |||
@@ -732,6 +732,19 @@ static int iwm_mlme_update_sta_table(struct iwm_priv *iwm, u8 *buf, | |||
732 | return 0; | 732 | return 0; |
733 | } | 733 | } |
734 | 734 | ||
735 | static int iwm_mlme_medium_lost(struct iwm_priv *iwm, u8 *buf, | ||
736 | unsigned long buf_size, | ||
737 | struct iwm_wifi_cmd *cmd) | ||
738 | { | ||
739 | struct wiphy *wiphy = iwm_to_wiphy(iwm); | ||
740 | |||
741 | IWM_DBG_NTF(iwm, DBG, "WiFi/WiMax coexistence radio is OFF\n"); | ||
742 | |||
743 | wiphy_rfkill_set_hw_state(wiphy, true); | ||
744 | |||
745 | return 0; | ||
746 | } | ||
747 | |||
735 | static int iwm_mlme_update_bss_table(struct iwm_priv *iwm, u8 *buf, | 748 | static int iwm_mlme_update_bss_table(struct iwm_priv *iwm, u8 *buf, |
736 | unsigned long buf_size, | 749 | unsigned long buf_size, |
737 | struct iwm_wifi_cmd *cmd) | 750 | struct iwm_wifi_cmd *cmd) |
@@ -918,6 +931,8 @@ static int iwm_ntf_mlme(struct iwm_priv *iwm, u8 *buf, | |||
918 | case WIFI_IF_NTFY_EXTENDED_IE_REQUIRED: | 931 | case WIFI_IF_NTFY_EXTENDED_IE_REQUIRED: |
919 | IWM_DBG_MLME(iwm, DBG, "Extended IE required\n"); | 932 | IWM_DBG_MLME(iwm, DBG, "Extended IE required\n"); |
920 | break; | 933 | break; |
934 | case WIFI_IF_NTFY_RADIO_PREEMPTION: | ||
935 | return iwm_mlme_medium_lost(iwm, buf, buf_size, cmd); | ||
921 | case WIFI_IF_NTFY_BSS_TRK_TABLE_CHANGED: | 936 | case WIFI_IF_NTFY_BSS_TRK_TABLE_CHANGED: |
922 | return iwm_mlme_update_bss_table(iwm, buf, buf_size, cmd); | 937 | return iwm_mlme_update_bss_table(iwm, buf, buf_size, cmd); |
923 | case WIFI_IF_NTFY_BSS_TRK_ENTRIES_REMOVED: | 938 | case WIFI_IF_NTFY_BSS_TRK_ENTRIES_REMOVED: |