diff options
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-agn.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-agn.c | 56 |
1 files changed, 29 insertions, 27 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-agn.c b/drivers/net/wireless/iwlwifi/iwl-agn.c index dccb230dd52..6c57199b041 100644 --- a/drivers/net/wireless/iwlwifi/iwl-agn.c +++ b/drivers/net/wireless/iwlwifi/iwl-agn.c | |||
@@ -565,7 +565,7 @@ struct iwlagn_ucode_capabilities { | |||
565 | }; | 565 | }; |
566 | 566 | ||
567 | static void iwl_ucode_callback(const struct firmware *ucode_raw, void *context); | 567 | static void iwl_ucode_callback(const struct firmware *ucode_raw, void *context); |
568 | static int iwl_mac_setup_register(struct iwl_priv *priv, | 568 | static int iwlagn_mac_setup_register(struct iwl_priv *priv, |
569 | struct iwlagn_ucode_capabilities *capa); | 569 | struct iwlagn_ucode_capabilities *capa); |
570 | 570 | ||
571 | #define UCODE_EXPERIMENTAL_INDEX 100 | 571 | #define UCODE_EXPERIMENTAL_INDEX 100 |
@@ -1136,7 +1136,7 @@ static void iwl_ucode_callback(const struct firmware *ucode_raw, void *context) | |||
1136 | * | 1136 | * |
1137 | * 9. Setup and register with mac80211 and debugfs | 1137 | * 9. Setup and register with mac80211 and debugfs |
1138 | **************************************************/ | 1138 | **************************************************/ |
1139 | err = iwl_mac_setup_register(priv, &ucode_capa); | 1139 | err = iwlagn_mac_setup_register(priv, &ucode_capa); |
1140 | if (err) | 1140 | if (err) |
1141 | goto out_unbind; | 1141 | goto out_unbind; |
1142 | 1142 | ||
@@ -1642,7 +1642,7 @@ iwlagn_iface_combinations_p2p[] = { | |||
1642 | * Not a mac80211 entry point function, but it fits in with all the | 1642 | * Not a mac80211 entry point function, but it fits in with all the |
1643 | * other mac80211 functions grouped here. | 1643 | * other mac80211 functions grouped here. |
1644 | */ | 1644 | */ |
1645 | static int iwl_mac_setup_register(struct iwl_priv *priv, | 1645 | static int iwlagn_mac_setup_register(struct iwl_priv *priv, |
1646 | struct iwlagn_ucode_capabilities *capa) | 1646 | struct iwlagn_ucode_capabilities *capa) |
1647 | { | 1647 | { |
1648 | int ret; | 1648 | int ret; |
@@ -2761,7 +2761,7 @@ static void iwlagn_disable_roc_work(struct work_struct *work) | |||
2761 | mutex_unlock(&priv->shrd->mutex); | 2761 | mutex_unlock(&priv->shrd->mutex); |
2762 | } | 2762 | } |
2763 | 2763 | ||
2764 | static int iwl_mac_remain_on_channel(struct ieee80211_hw *hw, | 2764 | static int iwlagn_mac_remain_on_channel(struct ieee80211_hw *hw, |
2765 | struct ieee80211_channel *channel, | 2765 | struct ieee80211_channel *channel, |
2766 | enum nl80211_channel_type channel_type, | 2766 | enum nl80211_channel_type channel_type, |
2767 | int duration) | 2767 | int duration) |
@@ -2825,7 +2825,7 @@ static int iwl_mac_remain_on_channel(struct ieee80211_hw *hw, | |||
2825 | return err; | 2825 | return err; |
2826 | } | 2826 | } |
2827 | 2827 | ||
2828 | static int iwl_mac_cancel_remain_on_channel(struct ieee80211_hw *hw) | 2828 | static int iwlagn_mac_cancel_remain_on_channel(struct ieee80211_hw *hw) |
2829 | { | 2829 | { |
2830 | struct iwl_priv *priv = hw->priv; | 2830 | struct iwl_priv *priv = hw->priv; |
2831 | 2831 | ||
@@ -2842,8 +2842,10 @@ static int iwl_mac_cancel_remain_on_channel(struct ieee80211_hw *hw) | |||
2842 | return 0; | 2842 | return 0; |
2843 | } | 2843 | } |
2844 | 2844 | ||
2845 | static int iwl_mac_tx_sync(struct ieee80211_hw *hw, struct ieee80211_vif *vif, | 2845 | static int iwlagn_mac_tx_sync(struct ieee80211_hw *hw, |
2846 | const u8 *bssid, enum ieee80211_tx_sync_type type) | 2846 | struct ieee80211_vif *vif, |
2847 | const u8 *bssid, | ||
2848 | enum ieee80211_tx_sync_type type) | ||
2847 | { | 2849 | { |
2848 | struct iwl_priv *priv = hw->priv; | 2850 | struct iwl_priv *priv = hw->priv; |
2849 | struct iwl_vif_priv *vif_priv = (void *)vif->drv_priv; | 2851 | struct iwl_vif_priv *vif_priv = (void *)vif->drv_priv; |
@@ -2890,7 +2892,7 @@ static int iwl_mac_tx_sync(struct ieee80211_hw *hw, struct ieee80211_vif *vif, | |||
2890 | return ret; | 2892 | return ret; |
2891 | } | 2893 | } |
2892 | 2894 | ||
2893 | static void iwl_mac_finish_tx_sync(struct ieee80211_hw *hw, | 2895 | static void iwlagn_mac_finish_tx_sync(struct ieee80211_hw *hw, |
2894 | struct ieee80211_vif *vif, | 2896 | struct ieee80211_vif *vif, |
2895 | const u8 *bssid, | 2897 | const u8 *bssid, |
2896 | enum ieee80211_tx_sync_type type) | 2898 | enum ieee80211_tx_sync_type type) |
@@ -3067,7 +3069,7 @@ static void iwl_uninit_drv(struct iwl_priv *priv) | |||
3067 | #endif | 3069 | #endif |
3068 | } | 3070 | } |
3069 | 3071 | ||
3070 | static void iwl_mac_rssi_callback(struct ieee80211_hw *hw, | 3072 | static void iwlagn_mac_rssi_callback(struct ieee80211_hw *hw, |
3071 | enum ieee80211_rssi_event rssi_event) | 3073 | enum ieee80211_rssi_event rssi_event) |
3072 | { | 3074 | { |
3073 | struct iwl_priv *priv = hw->priv; | 3075 | struct iwl_priv *priv = hw->priv; |
@@ -3092,7 +3094,7 @@ static void iwl_mac_rssi_callback(struct ieee80211_hw *hw, | |||
3092 | IWL_DEBUG_MAC80211(priv, "leave\n"); | 3094 | IWL_DEBUG_MAC80211(priv, "leave\n"); |
3093 | } | 3095 | } |
3094 | 3096 | ||
3095 | static int iwl_mac_set_tim(struct ieee80211_hw *hw, | 3097 | static int iwlagn_mac_set_tim(struct ieee80211_hw *hw, |
3096 | struct ieee80211_sta *sta, bool set) | 3098 | struct ieee80211_sta *sta, bool set) |
3097 | { | 3099 | { |
3098 | struct iwl_priv *priv = hw->priv; | 3100 | struct iwl_priv *priv = hw->priv; |
@@ -3110,32 +3112,32 @@ struct ieee80211_ops iwlagn_hw_ops = { | |||
3110 | .suspend = iwlagn_mac_suspend, | 3112 | .suspend = iwlagn_mac_suspend, |
3111 | .resume = iwlagn_mac_resume, | 3113 | .resume = iwlagn_mac_resume, |
3112 | #endif | 3114 | #endif |
3113 | .add_interface = iwl_mac_add_interface, | 3115 | .add_interface = iwlagn_mac_add_interface, |
3114 | .remove_interface = iwl_mac_remove_interface, | 3116 | .remove_interface = iwlagn_mac_remove_interface, |
3115 | .change_interface = iwl_mac_change_interface, | 3117 | .change_interface = iwlagn_mac_change_interface, |
3116 | .config = iwlagn_mac_config, | 3118 | .config = iwlagn_mac_config, |
3117 | .configure_filter = iwlagn_configure_filter, | 3119 | .configure_filter = iwlagn_configure_filter, |
3118 | .set_key = iwlagn_mac_set_key, | 3120 | .set_key = iwlagn_mac_set_key, |
3119 | .update_tkip_key = iwlagn_mac_update_tkip_key, | 3121 | .update_tkip_key = iwlagn_mac_update_tkip_key, |
3120 | .set_rekey_data = iwlagn_mac_set_rekey_data, | 3122 | .set_rekey_data = iwlagn_mac_set_rekey_data, |
3121 | .conf_tx = iwl_mac_conf_tx, | 3123 | .conf_tx = iwlagn_mac_conf_tx, |
3122 | .bss_info_changed = iwlagn_bss_info_changed, | 3124 | .bss_info_changed = iwlagn_bss_info_changed, |
3123 | .ampdu_action = iwlagn_mac_ampdu_action, | 3125 | .ampdu_action = iwlagn_mac_ampdu_action, |
3124 | .hw_scan = iwl_mac_hw_scan, | 3126 | .hw_scan = iwlagn_mac_hw_scan, |
3125 | .sta_notify = iwlagn_mac_sta_notify, | 3127 | .sta_notify = iwlagn_mac_sta_notify, |
3126 | .sta_add = iwlagn_mac_sta_add, | 3128 | .sta_add = iwlagn_mac_sta_add, |
3127 | .sta_remove = iwl_mac_sta_remove, | 3129 | .sta_remove = iwlagn_mac_sta_remove, |
3128 | .channel_switch = iwlagn_mac_channel_switch, | 3130 | .channel_switch = iwlagn_mac_channel_switch, |
3129 | .flush = iwlagn_mac_flush, | 3131 | .flush = iwlagn_mac_flush, |
3130 | .tx_last_beacon = iwl_mac_tx_last_beacon, | 3132 | .tx_last_beacon = iwlagn_mac_tx_last_beacon, |
3131 | .remain_on_channel = iwl_mac_remain_on_channel, | 3133 | .remain_on_channel = iwlagn_mac_remain_on_channel, |
3132 | .cancel_remain_on_channel = iwl_mac_cancel_remain_on_channel, | 3134 | .cancel_remain_on_channel = iwlagn_mac_cancel_remain_on_channel, |
3133 | .rssi_callback = iwl_mac_rssi_callback, | 3135 | .rssi_callback = iwlagn_mac_rssi_callback, |
3134 | CFG80211_TESTMODE_CMD(iwl_testmode_cmd) | 3136 | CFG80211_TESTMODE_CMD(iwlagn_mac_testmode_cmd) |
3135 | CFG80211_TESTMODE_DUMP(iwl_testmode_dump) | 3137 | CFG80211_TESTMODE_DUMP(iwlagn_mac_testmode_dump) |
3136 | .tx_sync = iwl_mac_tx_sync, | 3138 | .tx_sync = iwlagn_mac_tx_sync, |
3137 | .finish_tx_sync = iwl_mac_finish_tx_sync, | 3139 | .finish_tx_sync = iwlagn_mac_finish_tx_sync, |
3138 | .set_tim = iwl_mac_set_tim, | 3140 | .set_tim = iwlagn_mac_set_tim, |
3139 | }; | 3141 | }; |
3140 | 3142 | ||
3141 | static u32 iwl_hw_detect(struct iwl_priv *priv) | 3143 | static u32 iwl_hw_detect(struct iwl_priv *priv) |
@@ -3378,7 +3380,7 @@ void __devexit iwl_remove(struct iwl_priv * priv) | |||
3378 | 3380 | ||
3379 | iwl_dbgfs_unregister(priv); | 3381 | iwl_dbgfs_unregister(priv); |
3380 | 3382 | ||
3381 | /* ieee80211_unregister_hw call wil cause iwl_mac_stop to | 3383 | /* ieee80211_unregister_hw call wil cause iwlagn_mac_stop to |
3382 | * to be called and iwl_down since we are removing the device | 3384 | * to be called and iwl_down since we are removing the device |
3383 | * we need to set STATUS_EXIT_PENDING bit. | 3385 | * we need to set STATUS_EXIT_PENDING bit. |
3384 | */ | 3386 | */ |
@@ -3404,7 +3406,7 @@ void __devexit iwl_remove(struct iwl_priv * priv) | |||
3404 | /*netif_stop_queue(dev); */ | 3406 | /*netif_stop_queue(dev); */ |
3405 | flush_workqueue(priv->shrd->workqueue); | 3407 | flush_workqueue(priv->shrd->workqueue); |
3406 | 3408 | ||
3407 | /* ieee80211_unregister_hw calls iwl_mac_stop, which flushes | 3409 | /* ieee80211_unregister_hw calls iwlagn_mac_stop, which flushes |
3408 | * priv->shrd->workqueue... so we can't take down the workqueue | 3410 | * priv->shrd->workqueue... so we can't take down the workqueue |
3409 | * until now... */ | 3411 | * until now... */ |
3410 | destroy_workqueue(priv->shrd->workqueue); | 3412 | destroy_workqueue(priv->shrd->workqueue); |