diff options
author | Johannes Berg <johannes.berg@intel.com> | 2011-04-05 12:41:50 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-04-07 15:49:42 -0400 |
commit | 2dedbf58b2edbe940d370845dbf4210f1ddd2b31 (patch) | |
tree | 5e39be31eb045fc3911da5271de46d35a7c22762 | |
parent | 3240cab3ddfb2637cfca3a078078cdeda44d0a99 (diff) |
iwlagn: make mac80211 handlers static
Now that these handlers are no longer shared
between 4965 and agn, they can be static.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-agn.c | 53 | ||||
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-agn.h | 28 |
2 files changed, 27 insertions, 54 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-agn.c b/drivers/net/wireless/iwlwifi/iwl-agn.c index 42fad62baf76..b701a03e9ebf 100644 --- a/drivers/net/wireless/iwlwifi/iwl-agn.c +++ b/drivers/net/wireless/iwlwifi/iwl-agn.c | |||
@@ -2921,7 +2921,7 @@ static int iwl_mac_setup_register(struct iwl_priv *priv, | |||
2921 | } | 2921 | } |
2922 | 2922 | ||
2923 | 2923 | ||
2924 | int iwlagn_mac_start(struct ieee80211_hw *hw) | 2924 | static int iwlagn_mac_start(struct ieee80211_hw *hw) |
2925 | { | 2925 | { |
2926 | struct iwl_priv *priv = hw->priv; | 2926 | struct iwl_priv *priv = hw->priv; |
2927 | int ret; | 2927 | int ret; |
@@ -2962,7 +2962,7 @@ out: | |||
2962 | return 0; | 2962 | return 0; |
2963 | } | 2963 | } |
2964 | 2964 | ||
2965 | void iwlagn_mac_stop(struct ieee80211_hw *hw) | 2965 | static void iwlagn_mac_stop(struct ieee80211_hw *hw) |
2966 | { | 2966 | { |
2967 | struct iwl_priv *priv = hw->priv; | 2967 | struct iwl_priv *priv = hw->priv; |
2968 | 2968 | ||
@@ -2985,7 +2985,7 @@ void iwlagn_mac_stop(struct ieee80211_hw *hw) | |||
2985 | IWL_DEBUG_MAC80211(priv, "leave\n"); | 2985 | IWL_DEBUG_MAC80211(priv, "leave\n"); |
2986 | } | 2986 | } |
2987 | 2987 | ||
2988 | void iwlagn_mac_tx(struct ieee80211_hw *hw, struct sk_buff *skb) | 2988 | static void iwlagn_mac_tx(struct ieee80211_hw *hw, struct sk_buff *skb) |
2989 | { | 2989 | { |
2990 | struct iwl_priv *priv = hw->priv; | 2990 | struct iwl_priv *priv = hw->priv; |
2991 | 2991 | ||
@@ -3000,11 +3000,11 @@ void iwlagn_mac_tx(struct ieee80211_hw *hw, struct sk_buff *skb) | |||
3000 | IWL_DEBUG_MACDUMP(priv, "leave\n"); | 3000 | IWL_DEBUG_MACDUMP(priv, "leave\n"); |
3001 | } | 3001 | } |
3002 | 3002 | ||
3003 | void iwlagn_mac_update_tkip_key(struct ieee80211_hw *hw, | 3003 | static void iwlagn_mac_update_tkip_key(struct ieee80211_hw *hw, |
3004 | struct ieee80211_vif *vif, | 3004 | struct ieee80211_vif *vif, |
3005 | struct ieee80211_key_conf *keyconf, | 3005 | struct ieee80211_key_conf *keyconf, |
3006 | struct ieee80211_sta *sta, | 3006 | struct ieee80211_sta *sta, |
3007 | u32 iv32, u16 *phase1key) | 3007 | u32 iv32, u16 *phase1key) |
3008 | { | 3008 | { |
3009 | struct iwl_priv *priv = hw->priv; | 3009 | struct iwl_priv *priv = hw->priv; |
3010 | struct iwl_vif_priv *vif_priv = (void *)vif->drv_priv; | 3010 | struct iwl_vif_priv *vif_priv = (void *)vif->drv_priv; |
@@ -3017,9 +3017,10 @@ void iwlagn_mac_update_tkip_key(struct ieee80211_hw *hw, | |||
3017 | IWL_DEBUG_MAC80211(priv, "leave\n"); | 3017 | IWL_DEBUG_MAC80211(priv, "leave\n"); |
3018 | } | 3018 | } |
3019 | 3019 | ||
3020 | int iwlagn_mac_set_key(struct ieee80211_hw *hw, enum set_key_cmd cmd, | 3020 | static int iwlagn_mac_set_key(struct ieee80211_hw *hw, enum set_key_cmd cmd, |
3021 | struct ieee80211_vif *vif, struct ieee80211_sta *sta, | 3021 | struct ieee80211_vif *vif, |
3022 | struct ieee80211_key_conf *key) | 3022 | struct ieee80211_sta *sta, |
3023 | struct ieee80211_key_conf *key) | ||
3023 | { | 3024 | { |
3024 | struct iwl_priv *priv = hw->priv; | 3025 | struct iwl_priv *priv = hw->priv; |
3025 | struct iwl_vif_priv *vif_priv = (void *)vif->drv_priv; | 3026 | struct iwl_vif_priv *vif_priv = (void *)vif->drv_priv; |
@@ -3094,11 +3095,11 @@ int iwlagn_mac_set_key(struct ieee80211_hw *hw, enum set_key_cmd cmd, | |||
3094 | return ret; | 3095 | return ret; |
3095 | } | 3096 | } |
3096 | 3097 | ||
3097 | int iwlagn_mac_ampdu_action(struct ieee80211_hw *hw, | 3098 | static int iwlagn_mac_ampdu_action(struct ieee80211_hw *hw, |
3098 | struct ieee80211_vif *vif, | 3099 | struct ieee80211_vif *vif, |
3099 | enum ieee80211_ampdu_mlme_action action, | 3100 | enum ieee80211_ampdu_mlme_action action, |
3100 | struct ieee80211_sta *sta, u16 tid, u16 *ssn, | 3101 | struct ieee80211_sta *sta, u16 tid, u16 *ssn, |
3101 | u8 buf_size) | 3102 | u8 buf_size) |
3102 | { | 3103 | { |
3103 | struct iwl_priv *priv = hw->priv; | 3104 | struct iwl_priv *priv = hw->priv; |
3104 | int ret = -EINVAL; | 3105 | int ret = -EINVAL; |
@@ -3205,9 +3206,9 @@ int iwlagn_mac_ampdu_action(struct ieee80211_hw *hw, | |||
3205 | return ret; | 3206 | return ret; |
3206 | } | 3207 | } |
3207 | 3208 | ||
3208 | int iwlagn_mac_sta_add(struct ieee80211_hw *hw, | 3209 | static int iwlagn_mac_sta_add(struct ieee80211_hw *hw, |
3209 | struct ieee80211_vif *vif, | 3210 | struct ieee80211_vif *vif, |
3210 | struct ieee80211_sta *sta) | 3211 | struct ieee80211_sta *sta) |
3211 | { | 3212 | { |
3212 | struct iwl_priv *priv = hw->priv; | 3213 | struct iwl_priv *priv = hw->priv; |
3213 | struct iwl_station_priv *sta_priv = (void *)sta->drv_priv; | 3214 | struct iwl_station_priv *sta_priv = (void *)sta->drv_priv; |
@@ -3248,8 +3249,8 @@ int iwlagn_mac_sta_add(struct ieee80211_hw *hw, | |||
3248 | return 0; | 3249 | return 0; |
3249 | } | 3250 | } |
3250 | 3251 | ||
3251 | void iwlagn_mac_channel_switch(struct ieee80211_hw *hw, | 3252 | static void iwlagn_mac_channel_switch(struct ieee80211_hw *hw, |
3252 | struct ieee80211_channel_switch *ch_switch) | 3253 | struct ieee80211_channel_switch *ch_switch) |
3253 | { | 3254 | { |
3254 | struct iwl_priv *priv = hw->priv; | 3255 | struct iwl_priv *priv = hw->priv; |
3255 | const struct iwl_channel_info *ch_info; | 3256 | const struct iwl_channel_info *ch_info; |
@@ -3346,10 +3347,10 @@ out: | |||
3346 | IWL_DEBUG_MAC80211(priv, "leave\n"); | 3347 | IWL_DEBUG_MAC80211(priv, "leave\n"); |
3347 | } | 3348 | } |
3348 | 3349 | ||
3349 | void iwlagn_configure_filter(struct ieee80211_hw *hw, | 3350 | static void iwlagn_configure_filter(struct ieee80211_hw *hw, |
3350 | unsigned int changed_flags, | 3351 | unsigned int changed_flags, |
3351 | unsigned int *total_flags, | 3352 | unsigned int *total_flags, |
3352 | u64 multicast) | 3353 | u64 multicast) |
3353 | { | 3354 | { |
3354 | struct iwl_priv *priv = hw->priv; | 3355 | struct iwl_priv *priv = hw->priv; |
3355 | __le32 filter_or = 0, filter_nand = 0; | 3356 | __le32 filter_or = 0, filter_nand = 0; |
@@ -3396,7 +3397,7 @@ void iwlagn_configure_filter(struct ieee80211_hw *hw, | |||
3396 | FIF_BCN_PRBRESP_PROMISC | FIF_CONTROL; | 3397 | FIF_BCN_PRBRESP_PROMISC | FIF_CONTROL; |
3397 | } | 3398 | } |
3398 | 3399 | ||
3399 | void iwlagn_mac_flush(struct ieee80211_hw *hw, bool drop) | 3400 | static void iwlagn_mac_flush(struct ieee80211_hw *hw, bool drop) |
3400 | { | 3401 | { |
3401 | struct iwl_priv *priv = hw->priv; | 3402 | struct iwl_priv *priv = hw->priv; |
3402 | 3403 | ||
diff --git a/drivers/net/wireless/iwlwifi/iwl-agn.h b/drivers/net/wireless/iwlwifi/iwl-agn.h index 80de8a1edacf..4a0a46e6be3f 100644 --- a/drivers/net/wireless/iwlwifi/iwl-agn.h +++ b/drivers/net/wireless/iwlwifi/iwl-agn.h | |||
@@ -337,32 +337,4 @@ void __releases(wait_entry) | |||
337 | iwlagn_remove_notification(struct iwl_priv *priv, | 337 | iwlagn_remove_notification(struct iwl_priv *priv, |
338 | struct iwl_notification_wait *wait_entry); | 338 | struct iwl_notification_wait *wait_entry); |
339 | 339 | ||
340 | /* mac80211 handlers (for 4965) */ | ||
341 | void iwlagn_mac_tx(struct ieee80211_hw *hw, struct sk_buff *skb); | ||
342 | int iwlagn_mac_start(struct ieee80211_hw *hw); | ||
343 | void iwlagn_mac_stop(struct ieee80211_hw *hw); | ||
344 | void iwlagn_configure_filter(struct ieee80211_hw *hw, | ||
345 | unsigned int changed_flags, | ||
346 | unsigned int *total_flags, | ||
347 | u64 multicast); | ||
348 | int iwlagn_mac_set_key(struct ieee80211_hw *hw, enum set_key_cmd cmd, | ||
349 | struct ieee80211_vif *vif, struct ieee80211_sta *sta, | ||
350 | struct ieee80211_key_conf *key); | ||
351 | void iwlagn_mac_update_tkip_key(struct ieee80211_hw *hw, | ||
352 | struct ieee80211_vif *vif, | ||
353 | struct ieee80211_key_conf *keyconf, | ||
354 | struct ieee80211_sta *sta, | ||
355 | u32 iv32, u16 *phase1key); | ||
356 | int iwlagn_mac_ampdu_action(struct ieee80211_hw *hw, | ||
357 | struct ieee80211_vif *vif, | ||
358 | enum ieee80211_ampdu_mlme_action action, | ||
359 | struct ieee80211_sta *sta, u16 tid, u16 *ssn, | ||
360 | u8 buf_size); | ||
361 | int iwlagn_mac_sta_add(struct ieee80211_hw *hw, | ||
362 | struct ieee80211_vif *vif, | ||
363 | struct ieee80211_sta *sta); | ||
364 | void iwlagn_mac_channel_switch(struct ieee80211_hw *hw, | ||
365 | struct ieee80211_channel_switch *ch_switch); | ||
366 | void iwlagn_mac_flush(struct ieee80211_hw *hw, bool drop); | ||
367 | |||
368 | #endif /* __iwl_agn_h__ */ | 340 | #endif /* __iwl_agn_h__ */ |