diff options
author | Johannes Berg <johannes.berg@intel.com> | 2012-05-14 03:08:50 -0400 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2012-06-06 07:05:08 -0400 |
commit | aca86268faad5caed582de463c96061605c8ad60 (patch) | |
tree | 30375b684cef725d1481eb4f13532643a296987a /drivers/net/wireless/iwlwifi/iwl-mac80211.c | |
parent | 622a9268231bd6b486ec058a28f773fa89926012 (diff) |
iwlwifi: make a lot of functions static
A lot of functions were temporarily made non-static
for experimental work, make them static again now.
Reviewed-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-mac80211.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-mac80211.c | 106 |
1 files changed, 54 insertions, 52 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-mac80211.c b/drivers/net/wireless/iwlwifi/iwl-mac80211.c index ff66200b8eaa..d0b64cd95fc5 100644 --- a/drivers/net/wireless/iwlwifi/iwl-mac80211.c +++ b/drivers/net/wireless/iwlwifi/iwl-mac80211.c | |||
@@ -338,7 +338,7 @@ static int iwlagn_mac_start(struct ieee80211_hw *hw) | |||
338 | return 0; | 338 | return 0; |
339 | } | 339 | } |
340 | 340 | ||
341 | void iwlagn_mac_stop(struct ieee80211_hw *hw) | 341 | static void iwlagn_mac_stop(struct ieee80211_hw *hw) |
342 | { | 342 | { |
343 | struct iwl_priv *priv = IWL_MAC80211_GET_DVM(hw); | 343 | struct iwl_priv *priv = IWL_MAC80211_GET_DVM(hw); |
344 | 344 | ||
@@ -366,9 +366,9 @@ void iwlagn_mac_stop(struct ieee80211_hw *hw) | |||
366 | IWL_DEBUG_MAC80211(priv, "leave\n"); | 366 | IWL_DEBUG_MAC80211(priv, "leave\n"); |
367 | } | 367 | } |
368 | 368 | ||
369 | void iwlagn_mac_set_rekey_data(struct ieee80211_hw *hw, | 369 | static void iwlagn_mac_set_rekey_data(struct ieee80211_hw *hw, |
370 | struct ieee80211_vif *vif, | 370 | struct ieee80211_vif *vif, |
371 | struct cfg80211_gtk_rekey_data *data) | 371 | struct cfg80211_gtk_rekey_data *data) |
372 | { | 372 | { |
373 | struct iwl_priv *priv = IWL_MAC80211_GET_DVM(hw); | 373 | struct iwl_priv *priv = IWL_MAC80211_GET_DVM(hw); |
374 | 374 | ||
@@ -394,7 +394,8 @@ void iwlagn_mac_set_rekey_data(struct ieee80211_hw *hw, | |||
394 | 394 | ||
395 | #ifdef CONFIG_PM_SLEEP | 395 | #ifdef CONFIG_PM_SLEEP |
396 | 396 | ||
397 | int iwlagn_mac_suspend(struct ieee80211_hw *hw, struct cfg80211_wowlan *wowlan) | 397 | static int iwlagn_mac_suspend(struct ieee80211_hw *hw, |
398 | struct cfg80211_wowlan *wowlan) | ||
398 | { | 399 | { |
399 | struct iwl_priv *priv = IWL_MAC80211_GET_DVM(hw); | 400 | struct iwl_priv *priv = IWL_MAC80211_GET_DVM(hw); |
400 | struct iwl_rxon_context *ctx = &priv->contexts[IWL_RXON_CTX_BSS]; | 401 | struct iwl_rxon_context *ctx = &priv->contexts[IWL_RXON_CTX_BSS]; |
@@ -505,7 +506,7 @@ static void iwlagn_mac_set_wakeup(struct ieee80211_hw *hw, bool enabled) | |||
505 | } | 506 | } |
506 | #endif | 507 | #endif |
507 | 508 | ||
508 | void iwlagn_mac_tx(struct ieee80211_hw *hw, struct sk_buff *skb) | 509 | static void iwlagn_mac_tx(struct ieee80211_hw *hw, struct sk_buff *skb) |
509 | { | 510 | { |
510 | struct iwl_priv *priv = IWL_MAC80211_GET_DVM(hw); | 511 | struct iwl_priv *priv = IWL_MAC80211_GET_DVM(hw); |
511 | 512 | ||
@@ -516,21 +517,21 @@ void iwlagn_mac_tx(struct ieee80211_hw *hw, struct sk_buff *skb) | |||
516 | dev_kfree_skb_any(skb); | 517 | dev_kfree_skb_any(skb); |
517 | } | 518 | } |
518 | 519 | ||
519 | void iwlagn_mac_update_tkip_key(struct ieee80211_hw *hw, | 520 | static void iwlagn_mac_update_tkip_key(struct ieee80211_hw *hw, |
520 | struct ieee80211_vif *vif, | 521 | struct ieee80211_vif *vif, |
521 | struct ieee80211_key_conf *keyconf, | 522 | struct ieee80211_key_conf *keyconf, |
522 | struct ieee80211_sta *sta, | 523 | struct ieee80211_sta *sta, |
523 | u32 iv32, u16 *phase1key) | 524 | u32 iv32, u16 *phase1key) |
524 | { | 525 | { |
525 | struct iwl_priv *priv = IWL_MAC80211_GET_DVM(hw); | 526 | struct iwl_priv *priv = IWL_MAC80211_GET_DVM(hw); |
526 | 527 | ||
527 | iwl_update_tkip_key(priv, vif, keyconf, sta, iv32, phase1key); | 528 | iwl_update_tkip_key(priv, vif, keyconf, sta, iv32, phase1key); |
528 | } | 529 | } |
529 | 530 | ||
530 | int iwlagn_mac_set_key(struct ieee80211_hw *hw, enum set_key_cmd cmd, | 531 | static int iwlagn_mac_set_key(struct ieee80211_hw *hw, enum set_key_cmd cmd, |
531 | struct ieee80211_vif *vif, | 532 | struct ieee80211_vif *vif, |
532 | struct ieee80211_sta *sta, | 533 | struct ieee80211_sta *sta, |
533 | struct ieee80211_key_conf *key) | 534 | struct ieee80211_key_conf *key) |
534 | { | 535 | { |
535 | struct iwl_priv *priv = IWL_MAC80211_GET_DVM(hw); | 536 | struct iwl_priv *priv = IWL_MAC80211_GET_DVM(hw); |
536 | struct iwl_vif_priv *vif_priv = (void *)vif->drv_priv; | 537 | struct iwl_vif_priv *vif_priv = (void *)vif->drv_priv; |
@@ -630,11 +631,11 @@ int iwlagn_mac_set_key(struct ieee80211_hw *hw, enum set_key_cmd cmd, | |||
630 | return ret; | 631 | return ret; |
631 | } | 632 | } |
632 | 633 | ||
633 | int iwlagn_mac_ampdu_action(struct ieee80211_hw *hw, | 634 | static int iwlagn_mac_ampdu_action(struct ieee80211_hw *hw, |
634 | struct ieee80211_vif *vif, | 635 | struct ieee80211_vif *vif, |
635 | enum ieee80211_ampdu_mlme_action action, | 636 | enum ieee80211_ampdu_mlme_action action, |
636 | struct ieee80211_sta *sta, u16 tid, u16 *ssn, | 637 | struct ieee80211_sta *sta, u16 tid, u16 *ssn, |
637 | u8 buf_size) | 638 | u8 buf_size) |
638 | { | 639 | { |
639 | struct iwl_priv *priv = IWL_MAC80211_GET_DVM(hw); | 640 | struct iwl_priv *priv = IWL_MAC80211_GET_DVM(hw); |
640 | int ret = -EINVAL; | 641 | int ret = -EINVAL; |
@@ -756,11 +757,11 @@ static int iwlagn_mac_sta_remove(struct ieee80211_hw *hw, | |||
756 | return ret; | 757 | return ret; |
757 | } | 758 | } |
758 | 759 | ||
759 | int iwlagn_mac_sta_state(struct ieee80211_hw *hw, | 760 | static int iwlagn_mac_sta_state(struct ieee80211_hw *hw, |
760 | struct ieee80211_vif *vif, | 761 | struct ieee80211_vif *vif, |
761 | struct ieee80211_sta *sta, | 762 | struct ieee80211_sta *sta, |
762 | enum ieee80211_sta_state old_state, | 763 | enum ieee80211_sta_state old_state, |
763 | enum ieee80211_sta_state new_state) | 764 | enum ieee80211_sta_state new_state) |
764 | { | 765 | { |
765 | struct iwl_priv *priv = IWL_MAC80211_GET_DVM(hw); | 766 | struct iwl_priv *priv = IWL_MAC80211_GET_DVM(hw); |
766 | struct iwl_vif_priv *vif_priv = (void *)vif->drv_priv; | 767 | struct iwl_vif_priv *vif_priv = (void *)vif->drv_priv; |
@@ -839,8 +840,8 @@ int iwlagn_mac_sta_state(struct ieee80211_hw *hw, | |||
839 | return ret; | 840 | return ret; |
840 | } | 841 | } |
841 | 842 | ||
842 | void iwlagn_mac_channel_switch(struct ieee80211_hw *hw, | 843 | static void iwlagn_mac_channel_switch(struct ieee80211_hw *hw, |
843 | struct ieee80211_channel_switch *ch_switch) | 844 | struct ieee80211_channel_switch *ch_switch) |
844 | { | 845 | { |
845 | struct iwl_priv *priv = IWL_MAC80211_GET_DVM(hw); | 846 | struct iwl_priv *priv = IWL_MAC80211_GET_DVM(hw); |
846 | const struct iwl_channel_info *ch_info; | 847 | const struct iwl_channel_info *ch_info; |
@@ -934,10 +935,10 @@ void iwl_chswitch_done(struct iwl_priv *priv, bool is_success) | |||
934 | ieee80211_chswitch_done(ctx->vif, is_success); | 935 | ieee80211_chswitch_done(ctx->vif, is_success); |
935 | } | 936 | } |
936 | 937 | ||
937 | void iwlagn_configure_filter(struct ieee80211_hw *hw, | 938 | static void iwlagn_configure_filter(struct ieee80211_hw *hw, |
938 | unsigned int changed_flags, | 939 | unsigned int changed_flags, |
939 | unsigned int *total_flags, | 940 | unsigned int *total_flags, |
940 | u64 multicast) | 941 | u64 multicast) |
941 | { | 942 | { |
942 | struct iwl_priv *priv = IWL_MAC80211_GET_DVM(hw); | 943 | struct iwl_priv *priv = IWL_MAC80211_GET_DVM(hw); |
943 | __le32 filter_or = 0, filter_nand = 0; | 944 | __le32 filter_or = 0, filter_nand = 0; |
@@ -984,7 +985,7 @@ void iwlagn_configure_filter(struct ieee80211_hw *hw, | |||
984 | FIF_BCN_PRBRESP_PROMISC | FIF_CONTROL; | 985 | FIF_BCN_PRBRESP_PROMISC | FIF_CONTROL; |
985 | } | 986 | } |
986 | 987 | ||
987 | void iwlagn_mac_flush(struct ieee80211_hw *hw, bool drop) | 988 | static void iwlagn_mac_flush(struct ieee80211_hw *hw, bool drop) |
988 | { | 989 | { |
989 | struct iwl_priv *priv = IWL_MAC80211_GET_DVM(hw); | 990 | struct iwl_priv *priv = IWL_MAC80211_GET_DVM(hw); |
990 | 991 | ||
@@ -1111,7 +1112,7 @@ static int iwlagn_mac_remain_on_channel(struct ieee80211_hw *hw, | |||
1111 | return err; | 1112 | return err; |
1112 | } | 1113 | } |
1113 | 1114 | ||
1114 | int iwlagn_mac_cancel_remain_on_channel(struct ieee80211_hw *hw) | 1115 | static int iwlagn_mac_cancel_remain_on_channel(struct ieee80211_hw *hw) |
1115 | { | 1116 | { |
1116 | struct iwl_priv *priv = IWL_MAC80211_GET_DVM(hw); | 1117 | struct iwl_priv *priv = IWL_MAC80211_GET_DVM(hw); |
1117 | 1118 | ||
@@ -1128,8 +1129,8 @@ int iwlagn_mac_cancel_remain_on_channel(struct ieee80211_hw *hw) | |||
1128 | return 0; | 1129 | return 0; |
1129 | } | 1130 | } |
1130 | 1131 | ||
1131 | void iwlagn_mac_rssi_callback(struct ieee80211_hw *hw, | 1132 | static void iwlagn_mac_rssi_callback(struct ieee80211_hw *hw, |
1132 | enum ieee80211_rssi_event rssi_event) | 1133 | enum ieee80211_rssi_event rssi_event) |
1133 | { | 1134 | { |
1134 | struct iwl_priv *priv = IWL_MAC80211_GET_DVM(hw); | 1135 | struct iwl_priv *priv = IWL_MAC80211_GET_DVM(hw); |
1135 | 1136 | ||
@@ -1153,8 +1154,8 @@ void iwlagn_mac_rssi_callback(struct ieee80211_hw *hw, | |||
1153 | IWL_DEBUG_MAC80211(priv, "leave\n"); | 1154 | IWL_DEBUG_MAC80211(priv, "leave\n"); |
1154 | } | 1155 | } |
1155 | 1156 | ||
1156 | int iwlagn_mac_set_tim(struct ieee80211_hw *hw, | 1157 | static int iwlagn_mac_set_tim(struct ieee80211_hw *hw, |
1157 | struct ieee80211_sta *sta, bool set) | 1158 | struct ieee80211_sta *sta, bool set) |
1158 | { | 1159 | { |
1159 | struct iwl_priv *priv = IWL_MAC80211_GET_DVM(hw); | 1160 | struct iwl_priv *priv = IWL_MAC80211_GET_DVM(hw); |
1160 | 1161 | ||
@@ -1163,9 +1164,9 @@ int iwlagn_mac_set_tim(struct ieee80211_hw *hw, | |||
1163 | return 0; | 1164 | return 0; |
1164 | } | 1165 | } |
1165 | 1166 | ||
1166 | int iwlagn_mac_conf_tx(struct ieee80211_hw *hw, | 1167 | static int iwlagn_mac_conf_tx(struct ieee80211_hw *hw, |
1167 | struct ieee80211_vif *vif, u16 queue, | 1168 | struct ieee80211_vif *vif, u16 queue, |
1168 | const struct ieee80211_tx_queue_params *params) | 1169 | const struct ieee80211_tx_queue_params *params) |
1169 | { | 1170 | { |
1170 | struct iwl_priv *priv = IWL_MAC80211_GET_DVM(hw); | 1171 | struct iwl_priv *priv = IWL_MAC80211_GET_DVM(hw); |
1171 | struct iwl_vif_priv *vif_priv = (void *)vif->drv_priv; | 1172 | struct iwl_vif_priv *vif_priv = (void *)vif->drv_priv; |
@@ -1207,7 +1208,7 @@ int iwlagn_mac_conf_tx(struct ieee80211_hw *hw, | |||
1207 | return 0; | 1208 | return 0; |
1208 | } | 1209 | } |
1209 | 1210 | ||
1210 | int iwlagn_mac_tx_last_beacon(struct ieee80211_hw *hw) | 1211 | static int iwlagn_mac_tx_last_beacon(struct ieee80211_hw *hw) |
1211 | { | 1212 | { |
1212 | struct iwl_priv *priv = IWL_MAC80211_GET_DVM(hw); | 1213 | struct iwl_priv *priv = IWL_MAC80211_GET_DVM(hw); |
1213 | 1214 | ||
@@ -1223,7 +1224,8 @@ static int iwl_set_mode(struct iwl_priv *priv, struct iwl_rxon_context *ctx) | |||
1223 | return iwlagn_commit_rxon(priv, ctx); | 1224 | return iwlagn_commit_rxon(priv, ctx); |
1224 | } | 1225 | } |
1225 | 1226 | ||
1226 | int iwl_setup_interface(struct iwl_priv *priv, struct iwl_rxon_context *ctx) | 1227 | static int iwl_setup_interface(struct iwl_priv *priv, |
1228 | struct iwl_rxon_context *ctx) | ||
1227 | { | 1229 | { |
1228 | struct ieee80211_vif *vif = ctx->vif; | 1230 | struct ieee80211_vif *vif = ctx->vif; |
1229 | int err, ac; | 1231 | int err, ac; |
@@ -1343,9 +1345,9 @@ static int iwlagn_mac_add_interface(struct ieee80211_hw *hw, | |||
1343 | return err; | 1345 | return err; |
1344 | } | 1346 | } |
1345 | 1347 | ||
1346 | void iwl_teardown_interface(struct iwl_priv *priv, | 1348 | static void iwl_teardown_interface(struct iwl_priv *priv, |
1347 | struct ieee80211_vif *vif, | 1349 | struct ieee80211_vif *vif, |
1348 | bool mode_change) | 1350 | bool mode_change) |
1349 | { | 1351 | { |
1350 | struct iwl_rxon_context *ctx = iwl_rxon_ctx_from_vif(vif); | 1352 | struct iwl_rxon_context *ctx = iwl_rxon_ctx_from_vif(vif); |
1351 | 1353 | ||
@@ -1486,9 +1488,9 @@ static int iwlagn_mac_change_interface(struct ieee80211_hw *hw, | |||
1486 | return err; | 1488 | return err; |
1487 | } | 1489 | } |
1488 | 1490 | ||
1489 | int iwlagn_mac_hw_scan(struct ieee80211_hw *hw, | 1491 | static int iwlagn_mac_hw_scan(struct ieee80211_hw *hw, |
1490 | struct ieee80211_vif *vif, | 1492 | struct ieee80211_vif *vif, |
1491 | struct cfg80211_scan_request *req) | 1493 | struct cfg80211_scan_request *req) |
1492 | { | 1494 | { |
1493 | struct iwl_priv *priv = IWL_MAC80211_GET_DVM(hw); | 1495 | struct iwl_priv *priv = IWL_MAC80211_GET_DVM(hw); |
1494 | int ret; | 1496 | int ret; |
@@ -1543,10 +1545,10 @@ static void iwl_sta_modify_ps_wake(struct iwl_priv *priv, int sta_id) | |||
1543 | iwl_send_add_sta(priv, &cmd, CMD_ASYNC); | 1545 | iwl_send_add_sta(priv, &cmd, CMD_ASYNC); |
1544 | } | 1546 | } |
1545 | 1547 | ||
1546 | void iwlagn_mac_sta_notify(struct ieee80211_hw *hw, | 1548 | static void iwlagn_mac_sta_notify(struct ieee80211_hw *hw, |
1547 | struct ieee80211_vif *vif, | 1549 | struct ieee80211_vif *vif, |
1548 | enum sta_notify_cmd cmd, | 1550 | enum sta_notify_cmd cmd, |
1549 | struct ieee80211_sta *sta) | 1551 | struct ieee80211_sta *sta) |
1550 | { | 1552 | { |
1551 | struct iwl_priv *priv = IWL_MAC80211_GET_DVM(hw); | 1553 | struct iwl_priv *priv = IWL_MAC80211_GET_DVM(hw); |
1552 | struct iwl_station_priv *sta_priv = (void *)sta->drv_priv; | 1554 | struct iwl_station_priv *sta_priv = (void *)sta->drv_priv; |