diff options
author | David Spinadel <david.spinadel@intel.com> | 2012-04-16 17:43:30 -0400 |
---|---|---|
committer | Wey-Yi Guy <wey-yi.w.guy@intel.com> | 2012-04-16 17:45:10 -0400 |
commit | 50c1e9a9e3b086465b1467d448c10f7fa1e0eb5c (patch) | |
tree | 1ca395d12012e98526ba32823cf3eeee7538a13b /drivers/net/wireless | |
parent | cfd8544e9e350848cf580380418cbebcd09015be (diff) |
iwlwifi: expose static methods for MVM use
To support hybrid state of MVM op_mode, most of the functioanallity
will be done using DVM functions.
When MVM will have independant live, the declarations will be removed
and the functions will be static back.
Signed-off-by: David Spinadel <david.spinadel@intel.com>
Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
Diffstat (limited to 'drivers/net/wireless')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-agn-rxon.c | 19 | ||||
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-agn.c | 32 | ||||
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-agn.h | 81 | ||||
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-mac80211.c | 100 | ||||
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-ucode.c | 2 |
5 files changed, 156 insertions, 78 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-agn-rxon.c b/drivers/net/wireless/iwlwifi/iwl-agn-rxon.c index 88a7f3a1056c..5c7bddd5cfef 100644 --- a/drivers/net/wireless/iwlwifi/iwl-agn-rxon.c +++ b/drivers/net/wireless/iwlwifi/iwl-agn-rxon.c | |||
@@ -177,8 +177,7 @@ static int iwlagn_disconn_pan(struct iwl_priv *priv, | |||
177 | return ret; | 177 | return ret; |
178 | } | 178 | } |
179 | 179 | ||
180 | static void iwlagn_update_qos(struct iwl_priv *priv, | 180 | void iwlagn_update_qos(struct iwl_priv *priv, struct iwl_rxon_context *ctx) |
181 | struct iwl_rxon_context *ctx) | ||
182 | { | 181 | { |
183 | int ret; | 182 | int ret; |
184 | 183 | ||
@@ -205,8 +204,8 @@ static void iwlagn_update_qos(struct iwl_priv *priv, | |||
205 | IWL_DEBUG_QUIET_RFKILL(priv, "Failed to update QoS\n"); | 204 | IWL_DEBUG_QUIET_RFKILL(priv, "Failed to update QoS\n"); |
206 | } | 205 | } |
207 | 206 | ||
208 | static int iwlagn_update_beacon(struct iwl_priv *priv, | 207 | int iwlagn_update_beacon(struct iwl_priv *priv, |
209 | struct ieee80211_vif *vif) | 208 | struct ieee80211_vif *vif) |
210 | { | 209 | { |
211 | lockdep_assert_held(&priv->mutex); | 210 | lockdep_assert_held(&priv->mutex); |
212 | 211 | ||
@@ -879,8 +878,8 @@ static int iwl_check_rxon_cmd(struct iwl_priv *priv, | |||
879 | * or is clearing the RXON_FILTER_ASSOC_MSK, then return 1 to indicate that | 878 | * or is clearing the RXON_FILTER_ASSOC_MSK, then return 1 to indicate that |
880 | * a new tune (full RXON command, rather than RXON_ASSOC cmd) is required. | 879 | * a new tune (full RXON command, rather than RXON_ASSOC cmd) is required. |
881 | */ | 880 | */ |
882 | static int iwl_full_rxon_required(struct iwl_priv *priv, | 881 | int iwl_full_rxon_required(struct iwl_priv *priv, |
883 | struct iwl_rxon_context *ctx) | 882 | struct iwl_rxon_context *ctx) |
884 | { | 883 | { |
885 | const struct iwl_rxon_cmd *staging = &ctx->staging; | 884 | const struct iwl_rxon_cmd *staging = &ctx->staging; |
886 | const struct iwl_rxon_cmd *active = &ctx->active; | 885 | const struct iwl_rxon_cmd *active = &ctx->active; |
@@ -1223,9 +1222,9 @@ int iwlagn_mac_config(struct ieee80211_hw *hw, u32 changed) | |||
1223 | return ret; | 1222 | return ret; |
1224 | } | 1223 | } |
1225 | 1224 | ||
1226 | static void iwlagn_check_needed_chains(struct iwl_priv *priv, | 1225 | void iwlagn_check_needed_chains(struct iwl_priv *priv, |
1227 | struct iwl_rxon_context *ctx, | 1226 | struct iwl_rxon_context *ctx, |
1228 | struct ieee80211_bss_conf *bss_conf) | 1227 | struct ieee80211_bss_conf *bss_conf) |
1229 | { | 1228 | { |
1230 | struct ieee80211_vif *vif = ctx->vif; | 1229 | struct ieee80211_vif *vif = ctx->vif; |
1231 | struct iwl_rxon_context *tmp; | 1230 | struct iwl_rxon_context *tmp; |
@@ -1317,7 +1316,7 @@ static void iwlagn_check_needed_chains(struct iwl_priv *priv, | |||
1317 | ht_conf->single_chain_sufficient = !need_multiple; | 1316 | ht_conf->single_chain_sufficient = !need_multiple; |
1318 | } | 1317 | } |
1319 | 1318 | ||
1320 | static void iwlagn_chain_noise_reset(struct iwl_priv *priv) | 1319 | void iwlagn_chain_noise_reset(struct iwl_priv *priv) |
1321 | { | 1320 | { |
1322 | struct iwl_chain_noise_data *data = &priv->chain_noise_data; | 1321 | struct iwl_chain_noise_data *data = &priv->chain_noise_data; |
1323 | int ret; | 1322 | int ret; |
diff --git a/drivers/net/wireless/iwlwifi/iwl-agn.c b/drivers/net/wireless/iwlwifi/iwl-agn.c index 6b1a03968583..bc585a67a200 100644 --- a/drivers/net/wireless/iwlwifi/iwl-agn.c +++ b/drivers/net/wireless/iwlwifi/iwl-agn.c | |||
@@ -597,7 +597,7 @@ static const u8 iwlagn_pan_queue_to_ac[] = { | |||
597 | IEEE80211_AC_VO, | 597 | IEEE80211_AC_VO, |
598 | }; | 598 | }; |
599 | 599 | ||
600 | static void iwl_init_context(struct iwl_priv *priv, u32 ucode_flags) | 600 | void iwl_init_context(struct iwl_priv *priv, u32 ucode_flags) |
601 | { | 601 | { |
602 | int i; | 602 | int i; |
603 | 603 | ||
@@ -664,7 +664,7 @@ static void iwl_init_context(struct iwl_priv *priv, u32 ucode_flags) | |||
664 | BUILD_BUG_ON(NUM_IWL_RXON_CTX != 2); | 664 | BUILD_BUG_ON(NUM_IWL_RXON_CTX != 2); |
665 | } | 665 | } |
666 | 666 | ||
667 | static void iwl_rf_kill_ct_config(struct iwl_priv *priv) | 667 | void iwl_rf_kill_ct_config(struct iwl_priv *priv) |
668 | { | 668 | { |
669 | struct iwl_ct_kill_config cmd; | 669 | struct iwl_ct_kill_config cmd; |
670 | struct iwl_ct_kill_throttling_config adv_cmd; | 670 | struct iwl_ct_kill_throttling_config adv_cmd; |
@@ -745,7 +745,7 @@ static int iwlagn_send_tx_ant_config(struct iwl_priv *priv, u8 valid_tx_ant) | |||
745 | } | 745 | } |
746 | } | 746 | } |
747 | 747 | ||
748 | static void iwl_send_bt_config(struct iwl_priv *priv) | 748 | void iwl_send_bt_config(struct iwl_priv *priv) |
749 | { | 749 | { |
750 | struct iwl_bt_cmd bt_cmd = { | 750 | struct iwl_bt_cmd bt_cmd = { |
751 | .lead_time = BT_LEAD_TIME_DEF, | 751 | .lead_time = BT_LEAD_TIME_DEF, |
@@ -1100,7 +1100,7 @@ static void iwlagn_disable_roc_work(struct work_struct *work) | |||
1100 | * | 1100 | * |
1101 | *****************************************************************************/ | 1101 | *****************************************************************************/ |
1102 | 1102 | ||
1103 | static void iwl_setup_deferred_work(struct iwl_priv *priv) | 1103 | void iwl_setup_deferred_work(struct iwl_priv *priv) |
1104 | { | 1104 | { |
1105 | priv->workqueue = create_singlethread_workqueue(DRV_NAME); | 1105 | priv->workqueue = create_singlethread_workqueue(DRV_NAME); |
1106 | 1106 | ||
@@ -1348,7 +1348,7 @@ static void iwl_free_geos(struct iwl_priv *priv) | |||
1348 | clear_bit(STATUS_GEO_CONFIGURED, &priv->status); | 1348 | clear_bit(STATUS_GEO_CONFIGURED, &priv->status); |
1349 | } | 1349 | } |
1350 | 1350 | ||
1351 | static int iwl_init_drv(struct iwl_priv *priv) | 1351 | int iwl_init_drv(struct iwl_priv *priv) |
1352 | { | 1352 | { |
1353 | int ret; | 1353 | int ret; |
1354 | 1354 | ||
@@ -1411,7 +1411,7 @@ err: | |||
1411 | return ret; | 1411 | return ret; |
1412 | } | 1412 | } |
1413 | 1413 | ||
1414 | static void iwl_uninit_drv(struct iwl_priv *priv) | 1414 | void iwl_uninit_drv(struct iwl_priv *priv) |
1415 | { | 1415 | { |
1416 | iwl_free_geos(priv); | 1416 | iwl_free_geos(priv); |
1417 | iwl_free_channel_map(priv); | 1417 | iwl_free_channel_map(priv); |
@@ -1424,7 +1424,7 @@ static void iwl_uninit_drv(struct iwl_priv *priv) | |||
1424 | #endif | 1424 | #endif |
1425 | } | 1425 | } |
1426 | 1426 | ||
1427 | static void iwl_set_hw_params(struct iwl_priv *priv) | 1427 | void iwl_set_hw_params(struct iwl_priv *priv) |
1428 | { | 1428 | { |
1429 | if (cfg(priv)->ht_params) | 1429 | if (cfg(priv)->ht_params) |
1430 | priv->hw_params.use_rts_for_aggregation = | 1430 | priv->hw_params.use_rts_for_aggregation = |
@@ -1439,7 +1439,7 @@ static void iwl_set_hw_params(struct iwl_priv *priv) | |||
1439 | 1439 | ||
1440 | 1440 | ||
1441 | 1441 | ||
1442 | static void iwl_debug_config(struct iwl_priv *priv) | 1442 | void iwl_debug_config(struct iwl_priv *priv) |
1443 | { | 1443 | { |
1444 | dev_printk(KERN_INFO, trans(priv)->dev, "CONFIG_IWLWIFI_DEBUG " | 1444 | dev_printk(KERN_INFO, trans(priv)->dev, "CONFIG_IWLWIFI_DEBUG " |
1445 | #ifdef CONFIG_IWLWIFI_DEBUG | 1445 | #ifdef CONFIG_IWLWIFI_DEBUG |
@@ -1752,7 +1752,7 @@ out: | |||
1752 | return op_mode; | 1752 | return op_mode; |
1753 | } | 1753 | } |
1754 | 1754 | ||
1755 | static void iwl_op_mode_dvm_stop(struct iwl_op_mode *op_mode) | 1755 | void iwl_op_mode_dvm_stop(struct iwl_op_mode *op_mode) |
1756 | { | 1756 | { |
1757 | struct iwl_priv *priv = IWL_OP_MODE_GET_DVM(op_mode); | 1757 | struct iwl_priv *priv = IWL_OP_MODE_GET_DVM(op_mode); |
1758 | 1758 | ||
@@ -2217,7 +2217,7 @@ static void iwlagn_fw_error(struct iwl_priv *priv, bool ondemand) | |||
2217 | } | 2217 | } |
2218 | } | 2218 | } |
2219 | 2219 | ||
2220 | static void iwl_nic_error(struct iwl_op_mode *op_mode) | 2220 | void iwl_nic_error(struct iwl_op_mode *op_mode) |
2221 | { | 2221 | { |
2222 | struct iwl_priv *priv = IWL_OP_MODE_GET_DVM(op_mode); | 2222 | struct iwl_priv *priv = IWL_OP_MODE_GET_DVM(op_mode); |
2223 | 2223 | ||
@@ -2230,7 +2230,7 @@ static void iwl_nic_error(struct iwl_op_mode *op_mode) | |||
2230 | iwlagn_fw_error(priv, false); | 2230 | iwlagn_fw_error(priv, false); |
2231 | } | 2231 | } |
2232 | 2232 | ||
2233 | static void iwl_cmd_queue_full(struct iwl_op_mode *op_mode) | 2233 | void iwl_cmd_queue_full(struct iwl_op_mode *op_mode) |
2234 | { | 2234 | { |
2235 | struct iwl_priv *priv = IWL_OP_MODE_GET_DVM(op_mode); | 2235 | struct iwl_priv *priv = IWL_OP_MODE_GET_DVM(op_mode); |
2236 | 2236 | ||
@@ -2240,7 +2240,7 @@ static void iwl_cmd_queue_full(struct iwl_op_mode *op_mode) | |||
2240 | } | 2240 | } |
2241 | } | 2241 | } |
2242 | 2242 | ||
2243 | static void iwl_nic_config(struct iwl_op_mode *op_mode) | 2243 | void iwl_nic_config(struct iwl_op_mode *op_mode) |
2244 | { | 2244 | { |
2245 | struct iwl_priv *priv = IWL_OP_MODE_GET_DVM(op_mode); | 2245 | struct iwl_priv *priv = IWL_OP_MODE_GET_DVM(op_mode); |
2246 | 2246 | ||
@@ -2255,7 +2255,7 @@ static void iwl_wimax_active(struct iwl_op_mode *op_mode) | |||
2255 | IWL_ERR(priv, "RF is used by WiMAX\n"); | 2255 | IWL_ERR(priv, "RF is used by WiMAX\n"); |
2256 | } | 2256 | } |
2257 | 2257 | ||
2258 | static void iwl_stop_sw_queue(struct iwl_op_mode *op_mode, int queue) | 2258 | void iwl_stop_sw_queue(struct iwl_op_mode *op_mode, int queue) |
2259 | { | 2259 | { |
2260 | struct iwl_priv *priv = IWL_OP_MODE_GET_DVM(op_mode); | 2260 | struct iwl_priv *priv = IWL_OP_MODE_GET_DVM(op_mode); |
2261 | int ac = priv->queue_to_ac[queue]; | 2261 | int ac = priv->queue_to_ac[queue]; |
@@ -2274,7 +2274,7 @@ static void iwl_stop_sw_queue(struct iwl_op_mode *op_mode, int queue) | |||
2274 | ieee80211_stop_queue(priv->hw, ac); | 2274 | ieee80211_stop_queue(priv->hw, ac); |
2275 | } | 2275 | } |
2276 | 2276 | ||
2277 | static void iwl_wake_sw_queue(struct iwl_op_mode *op_mode, int queue) | 2277 | void iwl_wake_sw_queue(struct iwl_op_mode *op_mode, int queue) |
2278 | { | 2278 | { |
2279 | struct iwl_priv *priv = IWL_OP_MODE_GET_DVM(op_mode); | 2279 | struct iwl_priv *priv = IWL_OP_MODE_GET_DVM(op_mode); |
2280 | int ac = priv->queue_to_ac[queue]; | 2280 | int ac = priv->queue_to_ac[queue]; |
@@ -2314,7 +2314,7 @@ void iwlagn_lift_passive_no_rx(struct iwl_priv *priv) | |||
2314 | priv->passive_no_rx = false; | 2314 | priv->passive_no_rx = false; |
2315 | } | 2315 | } |
2316 | 2316 | ||
2317 | static void iwl_free_skb(struct iwl_op_mode *op_mode, struct sk_buff *skb) | 2317 | void iwl_free_skb(struct iwl_op_mode *op_mode, struct sk_buff *skb) |
2318 | { | 2318 | { |
2319 | struct ieee80211_tx_info *info; | 2319 | struct ieee80211_tx_info *info; |
2320 | 2320 | ||
@@ -2323,7 +2323,7 @@ static void iwl_free_skb(struct iwl_op_mode *op_mode, struct sk_buff *skb) | |||
2323 | dev_kfree_skb_any(skb); | 2323 | dev_kfree_skb_any(skb); |
2324 | } | 2324 | } |
2325 | 2325 | ||
2326 | static void iwl_set_hw_rfkill_state(struct iwl_op_mode *op_mode, bool state) | 2326 | void iwl_set_hw_rfkill_state(struct iwl_op_mode *op_mode, bool state) |
2327 | { | 2327 | { |
2328 | struct iwl_priv *priv = IWL_OP_MODE_GET_DVM(op_mode); | 2328 | struct iwl_priv *priv = IWL_OP_MODE_GET_DVM(op_mode); |
2329 | 2329 | ||
diff --git a/drivers/net/wireless/iwlwifi/iwl-agn.h b/drivers/net/wireless/iwlwifi/iwl-agn.h index 4485a0c83851..a321b65e4272 100644 --- a/drivers/net/wireless/iwlwifi/iwl-agn.h +++ b/drivers/net/wireless/iwlwifi/iwl-agn.h | |||
@@ -495,4 +495,85 @@ do { \ | |||
495 | } while (0) | 495 | } while (0) |
496 | #endif /* CONFIG_IWLWIFI_DEBUG */ | 496 | #endif /* CONFIG_IWLWIFI_DEBUG */ |
497 | 497 | ||
498 | /* API method exported for mvm hybrid state */ | ||
499 | void iwl_setup_deferred_work(struct iwl_priv *priv); | ||
500 | int iwl_send_wimax_coex(struct iwl_priv *priv); | ||
501 | int iwl_send_bt_env(struct iwl_priv *priv, u8 action, u8 type); | ||
502 | void iwl_debug_config(struct iwl_priv *priv); | ||
503 | int iwl_alloc_traffic_mem(struct iwl_priv *priv); | ||
504 | void iwl_set_hw_params(struct iwl_priv *priv); | ||
505 | void iwl_init_context(struct iwl_priv *priv, u32 ucode_flags); | ||
506 | int iwl_init_drv(struct iwl_priv *priv); | ||
507 | void iwl_uninit_drv(struct iwl_priv *priv); | ||
508 | void iwl_send_bt_config(struct iwl_priv *priv); | ||
509 | void iwl_rf_kill_ct_config(struct iwl_priv *priv); | ||
510 | int iwl_setup_interface(struct iwl_priv *priv, struct iwl_rxon_context *ctx); | ||
511 | void iwl_teardown_interface(struct iwl_priv *priv, | ||
512 | struct ieee80211_vif *vif, | ||
513 | bool mode_change); | ||
514 | int iwl_full_rxon_required(struct iwl_priv *priv, struct iwl_rxon_context *ctx); | ||
515 | void iwlagn_update_qos(struct iwl_priv *priv, struct iwl_rxon_context *ctx); | ||
516 | void iwlagn_check_needed_chains(struct iwl_priv *priv, | ||
517 | struct iwl_rxon_context *ctx, | ||
518 | struct ieee80211_bss_conf *bss_conf); | ||
519 | void iwlagn_chain_noise_reset(struct iwl_priv *priv); | ||
520 | int iwlagn_update_beacon(struct iwl_priv *priv, | ||
521 | struct ieee80211_vif *vif); | ||
522 | void iwl_tt_handler(struct iwl_priv *priv); | ||
523 | void iwl_op_mode_dvm_stop(struct iwl_op_mode *op_mode); | ||
524 | void iwl_stop_sw_queue(struct iwl_op_mode *op_mode, int queue); | ||
525 | void iwl_set_hw_rfkill_state(struct iwl_op_mode *op_mode, bool state); | ||
526 | void iwl_free_skb(struct iwl_op_mode *op_mode, struct sk_buff *skb); | ||
527 | void iwl_nic_error(struct iwl_op_mode *op_mode); | ||
528 | void iwl_cmd_queue_full(struct iwl_op_mode *op_mode); | ||
529 | void iwl_nic_config(struct iwl_op_mode *op_mode); | ||
530 | int iwlagn_mac_set_tim(struct ieee80211_hw *hw, | ||
531 | struct ieee80211_sta *sta, bool set); | ||
532 | void iwlagn_mac_rssi_callback(struct ieee80211_hw *hw, | ||
533 | enum ieee80211_rssi_event rssi_event); | ||
534 | int iwlagn_mac_cancel_remain_on_channel(struct ieee80211_hw *hw); | ||
535 | int iwlagn_mac_tx_last_beacon(struct ieee80211_hw *hw); | ||
536 | void iwlagn_mac_flush(struct ieee80211_hw *hw, bool drop); | ||
537 | void iwl_wake_sw_queue(struct iwl_op_mode *op_mode, int queue); | ||
538 | void iwlagn_mac_channel_switch(struct ieee80211_hw *hw, | ||
539 | struct ieee80211_channel_switch *ch_switch); | ||
540 | int iwlagn_mac_sta_state(struct ieee80211_hw *hw, | ||
541 | struct ieee80211_vif *vif, | ||
542 | struct ieee80211_sta *sta, | ||
543 | enum ieee80211_sta_state old_state, | ||
544 | enum ieee80211_sta_state new_state); | ||
545 | int iwlagn_mac_ampdu_action(struct ieee80211_hw *hw, | ||
546 | struct ieee80211_vif *vif, | ||
547 | enum ieee80211_ampdu_mlme_action action, | ||
548 | struct ieee80211_sta *sta, u16 tid, u16 *ssn, | ||
549 | u8 buf_size); | ||
550 | int iwlagn_mac_hw_scan(struct ieee80211_hw *hw, | ||
551 | struct ieee80211_vif *vif, | ||
552 | struct cfg80211_scan_request *req); | ||
553 | void iwlagn_mac_sta_notify(struct ieee80211_hw *hw, | ||
554 | struct ieee80211_vif *vif, | ||
555 | enum sta_notify_cmd cmd, | ||
556 | struct ieee80211_sta *sta); | ||
557 | void iwlagn_configure_filter(struct ieee80211_hw *hw, | ||
558 | unsigned int changed_flags, | ||
559 | unsigned int *total_flags, | ||
560 | u64 multicast); | ||
561 | int iwlagn_mac_conf_tx(struct ieee80211_hw *hw, | ||
562 | struct ieee80211_vif *vif, u16 queue, | ||
563 | const struct ieee80211_tx_queue_params *params); | ||
564 | void iwlagn_mac_set_rekey_data(struct ieee80211_hw *hw, | ||
565 | struct ieee80211_vif *vif, | ||
566 | struct cfg80211_gtk_rekey_data *data); | ||
567 | void iwlagn_mac_update_tkip_key(struct ieee80211_hw *hw, | ||
568 | struct ieee80211_vif *vif, | ||
569 | struct ieee80211_key_conf *keyconf, | ||
570 | struct ieee80211_sta *sta, | ||
571 | u32 iv32, u16 *phase1key); | ||
572 | int iwlagn_mac_set_key(struct ieee80211_hw *hw, enum set_key_cmd cmd, | ||
573 | struct ieee80211_vif *vif, | ||
574 | struct ieee80211_sta *sta, | ||
575 | struct ieee80211_key_conf *key); | ||
576 | void iwlagn_mac_stop(struct ieee80211_hw *hw); | ||
577 | void iwlagn_mac_tx(struct ieee80211_hw *hw, struct sk_buff *skb); | ||
578 | int iwlagn_mac_suspend(struct ieee80211_hw *hw, struct cfg80211_wowlan *wowlan); | ||
498 | #endif /* __iwl_agn_h__ */ | 579 | #endif /* __iwl_agn_h__ */ |
diff --git a/drivers/net/wireless/iwlwifi/iwl-mac80211.c b/drivers/net/wireless/iwlwifi/iwl-mac80211.c index d98249369784..3f82ff4f3afe 100644 --- a/drivers/net/wireless/iwlwifi/iwl-mac80211.c +++ b/drivers/net/wireless/iwlwifi/iwl-mac80211.c | |||
@@ -333,7 +333,7 @@ static int iwlagn_mac_start(struct ieee80211_hw *hw) | |||
333 | return 0; | 333 | return 0; |
334 | } | 334 | } |
335 | 335 | ||
336 | static void iwlagn_mac_stop(struct ieee80211_hw *hw) | 336 | void iwlagn_mac_stop(struct ieee80211_hw *hw) |
337 | { | 337 | { |
338 | struct iwl_priv *priv = IWL_MAC80211_GET_DVM(hw); | 338 | struct iwl_priv *priv = IWL_MAC80211_GET_DVM(hw); |
339 | 339 | ||
@@ -361,9 +361,9 @@ static void iwlagn_mac_stop(struct ieee80211_hw *hw) | |||
361 | IWL_DEBUG_MAC80211(priv, "leave\n"); | 361 | IWL_DEBUG_MAC80211(priv, "leave\n"); |
362 | } | 362 | } |
363 | 363 | ||
364 | static void iwlagn_mac_set_rekey_data(struct ieee80211_hw *hw, | 364 | void iwlagn_mac_set_rekey_data(struct ieee80211_hw *hw, |
365 | struct ieee80211_vif *vif, | 365 | struct ieee80211_vif *vif, |
366 | struct cfg80211_gtk_rekey_data *data) | 366 | struct cfg80211_gtk_rekey_data *data) |
367 | { | 367 | { |
368 | struct iwl_priv *priv = IWL_MAC80211_GET_DVM(hw); | 368 | struct iwl_priv *priv = IWL_MAC80211_GET_DVM(hw); |
369 | 369 | ||
@@ -389,8 +389,7 @@ static void iwlagn_mac_set_rekey_data(struct ieee80211_hw *hw, | |||
389 | 389 | ||
390 | #ifdef CONFIG_PM_SLEEP | 390 | #ifdef CONFIG_PM_SLEEP |
391 | 391 | ||
392 | static int iwlagn_mac_suspend(struct ieee80211_hw *hw, | 392 | int iwlagn_mac_suspend(struct ieee80211_hw *hw, struct cfg80211_wowlan *wowlan) |
393 | struct cfg80211_wowlan *wowlan) | ||
394 | { | 393 | { |
395 | struct iwl_priv *priv = IWL_MAC80211_GET_DVM(hw); | 394 | struct iwl_priv *priv = IWL_MAC80211_GET_DVM(hw); |
396 | struct iwl_rxon_context *ctx = &priv->contexts[IWL_RXON_CTX_BSS]; | 395 | struct iwl_rxon_context *ctx = &priv->contexts[IWL_RXON_CTX_BSS]; |
@@ -499,7 +498,7 @@ static int iwlagn_mac_resume(struct ieee80211_hw *hw) | |||
499 | 498 | ||
500 | #endif | 499 | #endif |
501 | 500 | ||
502 | static void iwlagn_mac_tx(struct ieee80211_hw *hw, struct sk_buff *skb) | 501 | void iwlagn_mac_tx(struct ieee80211_hw *hw, struct sk_buff *skb) |
503 | { | 502 | { |
504 | struct iwl_priv *priv = IWL_MAC80211_GET_DVM(hw); | 503 | struct iwl_priv *priv = IWL_MAC80211_GET_DVM(hw); |
505 | 504 | ||
@@ -510,21 +509,21 @@ static void iwlagn_mac_tx(struct ieee80211_hw *hw, struct sk_buff *skb) | |||
510 | dev_kfree_skb_any(skb); | 509 | dev_kfree_skb_any(skb); |
511 | } | 510 | } |
512 | 511 | ||
513 | static void iwlagn_mac_update_tkip_key(struct ieee80211_hw *hw, | 512 | void iwlagn_mac_update_tkip_key(struct ieee80211_hw *hw, |
514 | struct ieee80211_vif *vif, | 513 | struct ieee80211_vif *vif, |
515 | struct ieee80211_key_conf *keyconf, | 514 | struct ieee80211_key_conf *keyconf, |
516 | struct ieee80211_sta *sta, | 515 | struct ieee80211_sta *sta, |
517 | u32 iv32, u16 *phase1key) | 516 | u32 iv32, u16 *phase1key) |
518 | { | 517 | { |
519 | struct iwl_priv *priv = IWL_MAC80211_GET_DVM(hw); | 518 | struct iwl_priv *priv = IWL_MAC80211_GET_DVM(hw); |
520 | 519 | ||
521 | iwl_update_tkip_key(priv, vif, keyconf, sta, iv32, phase1key); | 520 | iwl_update_tkip_key(priv, vif, keyconf, sta, iv32, phase1key); |
522 | } | 521 | } |
523 | 522 | ||
524 | static int iwlagn_mac_set_key(struct ieee80211_hw *hw, enum set_key_cmd cmd, | 523 | int iwlagn_mac_set_key(struct ieee80211_hw *hw, enum set_key_cmd cmd, |
525 | struct ieee80211_vif *vif, | 524 | struct ieee80211_vif *vif, |
526 | struct ieee80211_sta *sta, | 525 | struct ieee80211_sta *sta, |
527 | struct ieee80211_key_conf *key) | 526 | struct ieee80211_key_conf *key) |
528 | { | 527 | { |
529 | struct iwl_priv *priv = IWL_MAC80211_GET_DVM(hw); | 528 | struct iwl_priv *priv = IWL_MAC80211_GET_DVM(hw); |
530 | struct iwl_vif_priv *vif_priv = (void *)vif->drv_priv; | 529 | struct iwl_vif_priv *vif_priv = (void *)vif->drv_priv; |
@@ -624,11 +623,11 @@ static int iwlagn_mac_set_key(struct ieee80211_hw *hw, enum set_key_cmd cmd, | |||
624 | return ret; | 623 | return ret; |
625 | } | 624 | } |
626 | 625 | ||
627 | static int iwlagn_mac_ampdu_action(struct ieee80211_hw *hw, | 626 | int iwlagn_mac_ampdu_action(struct ieee80211_hw *hw, |
628 | struct ieee80211_vif *vif, | 627 | struct ieee80211_vif *vif, |
629 | enum ieee80211_ampdu_mlme_action action, | 628 | enum ieee80211_ampdu_mlme_action action, |
630 | struct ieee80211_sta *sta, u16 tid, u16 *ssn, | 629 | struct ieee80211_sta *sta, u16 tid, u16 *ssn, |
631 | u8 buf_size) | 630 | u8 buf_size) |
632 | { | 631 | { |
633 | struct iwl_priv *priv = IWL_MAC80211_GET_DVM(hw); | 632 | struct iwl_priv *priv = IWL_MAC80211_GET_DVM(hw); |
634 | int ret = -EINVAL; | 633 | int ret = -EINVAL; |
@@ -750,11 +749,11 @@ static int iwlagn_mac_sta_remove(struct ieee80211_hw *hw, | |||
750 | return ret; | 749 | return ret; |
751 | } | 750 | } |
752 | 751 | ||
753 | static int iwlagn_mac_sta_state(struct ieee80211_hw *hw, | 752 | int iwlagn_mac_sta_state(struct ieee80211_hw *hw, |
754 | struct ieee80211_vif *vif, | 753 | struct ieee80211_vif *vif, |
755 | struct ieee80211_sta *sta, | 754 | struct ieee80211_sta *sta, |
756 | enum ieee80211_sta_state old_state, | 755 | enum ieee80211_sta_state old_state, |
757 | enum ieee80211_sta_state new_state) | 756 | enum ieee80211_sta_state new_state) |
758 | { | 757 | { |
759 | struct iwl_priv *priv = IWL_MAC80211_GET_DVM(hw); | 758 | struct iwl_priv *priv = IWL_MAC80211_GET_DVM(hw); |
760 | struct iwl_vif_priv *vif_priv = (void *)vif->drv_priv; | 759 | struct iwl_vif_priv *vif_priv = (void *)vif->drv_priv; |
@@ -833,8 +832,8 @@ static int iwlagn_mac_sta_state(struct ieee80211_hw *hw, | |||
833 | return ret; | 832 | return ret; |
834 | } | 833 | } |
835 | 834 | ||
836 | static void iwlagn_mac_channel_switch(struct ieee80211_hw *hw, | 835 | void iwlagn_mac_channel_switch(struct ieee80211_hw *hw, |
837 | struct ieee80211_channel_switch *ch_switch) | 836 | struct ieee80211_channel_switch *ch_switch) |
838 | { | 837 | { |
839 | struct iwl_priv *priv = IWL_MAC80211_GET_DVM(hw); | 838 | struct iwl_priv *priv = IWL_MAC80211_GET_DVM(hw); |
840 | const struct iwl_channel_info *ch_info; | 839 | const struct iwl_channel_info *ch_info; |
@@ -929,10 +928,10 @@ void iwl_chswitch_done(struct iwl_priv *priv, bool is_success) | |||
929 | ieee80211_chswitch_done(ctx->vif, is_success); | 928 | ieee80211_chswitch_done(ctx->vif, is_success); |
930 | } | 929 | } |
931 | 930 | ||
932 | static void iwlagn_configure_filter(struct ieee80211_hw *hw, | 931 | void iwlagn_configure_filter(struct ieee80211_hw *hw, |
933 | unsigned int changed_flags, | 932 | unsigned int changed_flags, |
934 | unsigned int *total_flags, | 933 | unsigned int *total_flags, |
935 | u64 multicast) | 934 | u64 multicast) |
936 | { | 935 | { |
937 | struct iwl_priv *priv = IWL_MAC80211_GET_DVM(hw); | 936 | struct iwl_priv *priv = IWL_MAC80211_GET_DVM(hw); |
938 | __le32 filter_or = 0, filter_nand = 0; | 937 | __le32 filter_or = 0, filter_nand = 0; |
@@ -979,7 +978,7 @@ static void iwlagn_configure_filter(struct ieee80211_hw *hw, | |||
979 | FIF_BCN_PRBRESP_PROMISC | FIF_CONTROL; | 978 | FIF_BCN_PRBRESP_PROMISC | FIF_CONTROL; |
980 | } | 979 | } |
981 | 980 | ||
982 | static void iwlagn_mac_flush(struct ieee80211_hw *hw, bool drop) | 981 | void iwlagn_mac_flush(struct ieee80211_hw *hw, bool drop) |
983 | { | 982 | { |
984 | struct iwl_priv *priv = IWL_MAC80211_GET_DVM(hw); | 983 | struct iwl_priv *priv = IWL_MAC80211_GET_DVM(hw); |
985 | 984 | ||
@@ -1106,7 +1105,7 @@ static int iwlagn_mac_remain_on_channel(struct ieee80211_hw *hw, | |||
1106 | return err; | 1105 | return err; |
1107 | } | 1106 | } |
1108 | 1107 | ||
1109 | static int iwlagn_mac_cancel_remain_on_channel(struct ieee80211_hw *hw) | 1108 | int iwlagn_mac_cancel_remain_on_channel(struct ieee80211_hw *hw) |
1110 | { | 1109 | { |
1111 | struct iwl_priv *priv = IWL_MAC80211_GET_DVM(hw); | 1110 | struct iwl_priv *priv = IWL_MAC80211_GET_DVM(hw); |
1112 | 1111 | ||
@@ -1123,8 +1122,8 @@ static int iwlagn_mac_cancel_remain_on_channel(struct ieee80211_hw *hw) | |||
1123 | return 0; | 1122 | return 0; |
1124 | } | 1123 | } |
1125 | 1124 | ||
1126 | static void iwlagn_mac_rssi_callback(struct ieee80211_hw *hw, | 1125 | void iwlagn_mac_rssi_callback(struct ieee80211_hw *hw, |
1127 | enum ieee80211_rssi_event rssi_event) | 1126 | enum ieee80211_rssi_event rssi_event) |
1128 | { | 1127 | { |
1129 | struct iwl_priv *priv = IWL_MAC80211_GET_DVM(hw); | 1128 | struct iwl_priv *priv = IWL_MAC80211_GET_DVM(hw); |
1130 | 1129 | ||
@@ -1148,8 +1147,8 @@ static void iwlagn_mac_rssi_callback(struct ieee80211_hw *hw, | |||
1148 | IWL_DEBUG_MAC80211(priv, "leave\n"); | 1147 | IWL_DEBUG_MAC80211(priv, "leave\n"); |
1149 | } | 1148 | } |
1150 | 1149 | ||
1151 | static int iwlagn_mac_set_tim(struct ieee80211_hw *hw, | 1150 | int iwlagn_mac_set_tim(struct ieee80211_hw *hw, |
1152 | struct ieee80211_sta *sta, bool set) | 1151 | struct ieee80211_sta *sta, bool set) |
1153 | { | 1152 | { |
1154 | struct iwl_priv *priv = IWL_MAC80211_GET_DVM(hw); | 1153 | struct iwl_priv *priv = IWL_MAC80211_GET_DVM(hw); |
1155 | 1154 | ||
@@ -1158,9 +1157,9 @@ static int iwlagn_mac_set_tim(struct ieee80211_hw *hw, | |||
1158 | return 0; | 1157 | return 0; |
1159 | } | 1158 | } |
1160 | 1159 | ||
1161 | static int iwlagn_mac_conf_tx(struct ieee80211_hw *hw, | 1160 | int iwlagn_mac_conf_tx(struct ieee80211_hw *hw, |
1162 | struct ieee80211_vif *vif, u16 queue, | 1161 | struct ieee80211_vif *vif, u16 queue, |
1163 | const struct ieee80211_tx_queue_params *params) | 1162 | const struct ieee80211_tx_queue_params *params) |
1164 | { | 1163 | { |
1165 | struct iwl_priv *priv = IWL_MAC80211_GET_DVM(hw); | 1164 | struct iwl_priv *priv = IWL_MAC80211_GET_DVM(hw); |
1166 | struct iwl_vif_priv *vif_priv = (void *)vif->drv_priv; | 1165 | struct iwl_vif_priv *vif_priv = (void *)vif->drv_priv; |
@@ -1202,7 +1201,7 @@ static int iwlagn_mac_conf_tx(struct ieee80211_hw *hw, | |||
1202 | return 0; | 1201 | return 0; |
1203 | } | 1202 | } |
1204 | 1203 | ||
1205 | static int iwlagn_mac_tx_last_beacon(struct ieee80211_hw *hw) | 1204 | int iwlagn_mac_tx_last_beacon(struct ieee80211_hw *hw) |
1206 | { | 1205 | { |
1207 | struct iwl_priv *priv = IWL_MAC80211_GET_DVM(hw); | 1206 | struct iwl_priv *priv = IWL_MAC80211_GET_DVM(hw); |
1208 | 1207 | ||
@@ -1218,8 +1217,7 @@ static int iwl_set_mode(struct iwl_priv *priv, struct iwl_rxon_context *ctx) | |||
1218 | return iwlagn_commit_rxon(priv, ctx); | 1217 | return iwlagn_commit_rxon(priv, ctx); |
1219 | } | 1218 | } |
1220 | 1219 | ||
1221 | static int iwl_setup_interface(struct iwl_priv *priv, | 1220 | int iwl_setup_interface(struct iwl_priv *priv, struct iwl_rxon_context *ctx) |
1222 | struct iwl_rxon_context *ctx) | ||
1223 | { | 1221 | { |
1224 | struct ieee80211_vif *vif = ctx->vif; | 1222 | struct ieee80211_vif *vif = ctx->vif; |
1225 | int err; | 1223 | int err; |
@@ -1322,9 +1320,9 @@ static int iwlagn_mac_add_interface(struct ieee80211_hw *hw, | |||
1322 | return err; | 1320 | return err; |
1323 | } | 1321 | } |
1324 | 1322 | ||
1325 | static void iwl_teardown_interface(struct iwl_priv *priv, | 1323 | void iwl_teardown_interface(struct iwl_priv *priv, |
1326 | struct ieee80211_vif *vif, | 1324 | struct ieee80211_vif *vif, |
1327 | bool mode_change) | 1325 | bool mode_change) |
1328 | { | 1326 | { |
1329 | struct iwl_rxon_context *ctx = iwl_rxon_ctx_from_vif(vif); | 1327 | struct iwl_rxon_context *ctx = iwl_rxon_ctx_from_vif(vif); |
1330 | 1328 | ||
@@ -1465,9 +1463,9 @@ static int iwlagn_mac_change_interface(struct ieee80211_hw *hw, | |||
1465 | return err; | 1463 | return err; |
1466 | } | 1464 | } |
1467 | 1465 | ||
1468 | static int iwlagn_mac_hw_scan(struct ieee80211_hw *hw, | 1466 | int iwlagn_mac_hw_scan(struct ieee80211_hw *hw, |
1469 | struct ieee80211_vif *vif, | 1467 | struct ieee80211_vif *vif, |
1470 | struct cfg80211_scan_request *req) | 1468 | struct cfg80211_scan_request *req) |
1471 | { | 1469 | { |
1472 | struct iwl_priv *priv = IWL_MAC80211_GET_DVM(hw); | 1470 | struct iwl_priv *priv = IWL_MAC80211_GET_DVM(hw); |
1473 | int ret; | 1471 | int ret; |
@@ -1522,7 +1520,7 @@ static void iwl_sta_modify_ps_wake(struct iwl_priv *priv, int sta_id) | |||
1522 | iwl_send_add_sta(priv, &cmd, CMD_ASYNC); | 1520 | iwl_send_add_sta(priv, &cmd, CMD_ASYNC); |
1523 | } | 1521 | } |
1524 | 1522 | ||
1525 | static void iwlagn_mac_sta_notify(struct ieee80211_hw *hw, | 1523 | void iwlagn_mac_sta_notify(struct ieee80211_hw *hw, |
1526 | struct ieee80211_vif *vif, | 1524 | struct ieee80211_vif *vif, |
1527 | enum sta_notify_cmd cmd, | 1525 | enum sta_notify_cmd cmd, |
1528 | struct ieee80211_sta *sta) | 1526 | struct ieee80211_sta *sta) |
diff --git a/drivers/net/wireless/iwlwifi/iwl-ucode.c b/drivers/net/wireless/iwlwifi/iwl-ucode.c index e78f20ececc8..539171945610 100644 --- a/drivers/net/wireless/iwlwifi/iwl-ucode.c +++ b/drivers/net/wireless/iwlwifi/iwl-ucode.c | |||
@@ -178,7 +178,7 @@ int iwl_init_alive_start(struct iwl_priv *priv) | |||
178 | return 0; | 178 | return 0; |
179 | } | 179 | } |
180 | 180 | ||
181 | static int iwl_send_wimax_coex(struct iwl_priv *priv) | 181 | int iwl_send_wimax_coex(struct iwl_priv *priv) |
182 | { | 182 | { |
183 | struct iwl_wimax_coex_cmd coex_cmd; | 183 | struct iwl_wimax_coex_cmd coex_cmd; |
184 | 184 | ||