Commit ade4c649 authored by Wey-Yi Guy's avatar Wey-Yi Guy Committed by John W. Linville

iwlagn: rename all the mac80211 callback functions

Use the same calling style for all the mac80211 callback functions
Signed-off-by: default avatarWey-Yi Guy <wey-yi.w.guy@intel.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 770c72c4
...@@ -239,7 +239,7 @@ static int iwl5000_hw_channel_switch(struct iwl_priv *priv, ...@@ -239,7 +239,7 @@ static int iwl5000_hw_channel_switch(struct iwl_priv *priv,
{ {
/* /*
* MULTI-FIXME * MULTI-FIXME
* See iwl_mac_channel_switch. * See iwlagn_mac_channel_switch.
*/ */
struct iwl_rxon_context *ctx = &priv->contexts[IWL_RXON_CTX_BSS]; struct iwl_rxon_context *ctx = &priv->contexts[IWL_RXON_CTX_BSS];
struct iwl5000_channel_switch_cmd cmd; struct iwl5000_channel_switch_cmd cmd;
......
...@@ -187,7 +187,7 @@ static int iwl6000_hw_channel_switch(struct iwl_priv *priv, ...@@ -187,7 +187,7 @@ static int iwl6000_hw_channel_switch(struct iwl_priv *priv,
{ {
/* /*
* MULTI-FIXME * MULTI-FIXME
* See iwl_mac_channel_switch. * See iwlagn_mac_channel_switch.
*/ */
struct iwl_rxon_context *ctx = &priv->contexts[IWL_RXON_CTX_BSS]; struct iwl_rxon_context *ctx = &priv->contexts[IWL_RXON_CTX_BSS];
struct iwl6000_channel_switch_cmd cmd; struct iwl6000_channel_switch_cmd cmd;
......
...@@ -565,7 +565,7 @@ struct iwlagn_ucode_capabilities { ...@@ -565,7 +565,7 @@ struct iwlagn_ucode_capabilities {
}; };
static void iwl_ucode_callback(const struct firmware *ucode_raw, void *context); static void iwl_ucode_callback(const struct firmware *ucode_raw, void *context);
static int iwl_mac_setup_register(struct iwl_priv *priv, static int iwlagn_mac_setup_register(struct iwl_priv *priv,
struct iwlagn_ucode_capabilities *capa); struct iwlagn_ucode_capabilities *capa);
#define UCODE_EXPERIMENTAL_INDEX 100 #define UCODE_EXPERIMENTAL_INDEX 100
...@@ -1136,7 +1136,7 @@ static void iwl_ucode_callback(const struct firmware *ucode_raw, void *context) ...@@ -1136,7 +1136,7 @@ static void iwl_ucode_callback(const struct firmware *ucode_raw, void *context)
* *
* 9. Setup and register with mac80211 and debugfs * 9. Setup and register with mac80211 and debugfs
**************************************************/ **************************************************/
err = iwl_mac_setup_register(priv, &ucode_capa); err = iwlagn_mac_setup_register(priv, &ucode_capa);
if (err) if (err)
goto out_unbind; goto out_unbind;
...@@ -1642,7 +1642,7 @@ iwlagn_iface_combinations_p2p[] = { ...@@ -1642,7 +1642,7 @@ iwlagn_iface_combinations_p2p[] = {
* Not a mac80211 entry point function, but it fits in with all the * Not a mac80211 entry point function, but it fits in with all the
* other mac80211 functions grouped here. * other mac80211 functions grouped here.
*/ */
static int iwl_mac_setup_register(struct iwl_priv *priv, static int iwlagn_mac_setup_register(struct iwl_priv *priv,
struct iwlagn_ucode_capabilities *capa) struct iwlagn_ucode_capabilities *capa)
{ {
int ret; int ret;
...@@ -2761,7 +2761,7 @@ static void iwlagn_disable_roc_work(struct work_struct *work) ...@@ -2761,7 +2761,7 @@ static void iwlagn_disable_roc_work(struct work_struct *work)
mutex_unlock(&priv->shrd->mutex); mutex_unlock(&priv->shrd->mutex);
} }
static int iwl_mac_remain_on_channel(struct ieee80211_hw *hw, static int iwlagn_mac_remain_on_channel(struct ieee80211_hw *hw,
struct ieee80211_channel *channel, struct ieee80211_channel *channel,
enum nl80211_channel_type channel_type, enum nl80211_channel_type channel_type,
int duration) int duration)
...@@ -2825,7 +2825,7 @@ static int iwl_mac_remain_on_channel(struct ieee80211_hw *hw, ...@@ -2825,7 +2825,7 @@ static int iwl_mac_remain_on_channel(struct ieee80211_hw *hw,
return err; return err;
} }
static int iwl_mac_cancel_remain_on_channel(struct ieee80211_hw *hw) static int iwlagn_mac_cancel_remain_on_channel(struct ieee80211_hw *hw)
{ {
struct iwl_priv *priv = hw->priv; struct iwl_priv *priv = hw->priv;
...@@ -2842,8 +2842,10 @@ static int iwl_mac_cancel_remain_on_channel(struct ieee80211_hw *hw) ...@@ -2842,8 +2842,10 @@ static int iwl_mac_cancel_remain_on_channel(struct ieee80211_hw *hw)
return 0; return 0;
} }
static int iwl_mac_tx_sync(struct ieee80211_hw *hw, struct ieee80211_vif *vif, static int iwlagn_mac_tx_sync(struct ieee80211_hw *hw,
const u8 *bssid, enum ieee80211_tx_sync_type type) struct ieee80211_vif *vif,
const u8 *bssid,
enum ieee80211_tx_sync_type type)
{ {
struct iwl_priv *priv = hw->priv; struct iwl_priv *priv = hw->priv;
struct iwl_vif_priv *vif_priv = (void *)vif->drv_priv; 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,7 +2892,7 @@ static int iwl_mac_tx_sync(struct ieee80211_hw *hw, struct ieee80211_vif *vif,
return ret; return ret;
} }
static void iwl_mac_finish_tx_sync(struct ieee80211_hw *hw, static void iwlagn_mac_finish_tx_sync(struct ieee80211_hw *hw,
struct ieee80211_vif *vif, struct ieee80211_vif *vif,
const u8 *bssid, const u8 *bssid,
enum ieee80211_tx_sync_type type) enum ieee80211_tx_sync_type type)
...@@ -3067,7 +3069,7 @@ static void iwl_uninit_drv(struct iwl_priv *priv) ...@@ -3067,7 +3069,7 @@ static void iwl_uninit_drv(struct iwl_priv *priv)
#endif #endif
} }
static void iwl_mac_rssi_callback(struct ieee80211_hw *hw, static void iwlagn_mac_rssi_callback(struct ieee80211_hw *hw,
enum ieee80211_rssi_event rssi_event) enum ieee80211_rssi_event rssi_event)
{ {
struct iwl_priv *priv = hw->priv; struct iwl_priv *priv = hw->priv;
...@@ -3092,7 +3094,7 @@ static void iwl_mac_rssi_callback(struct ieee80211_hw *hw, ...@@ -3092,7 +3094,7 @@ static void iwl_mac_rssi_callback(struct ieee80211_hw *hw,
IWL_DEBUG_MAC80211(priv, "leave\n"); IWL_DEBUG_MAC80211(priv, "leave\n");
} }
static int iwl_mac_set_tim(struct ieee80211_hw *hw, static int iwlagn_mac_set_tim(struct ieee80211_hw *hw,
struct ieee80211_sta *sta, bool set) struct ieee80211_sta *sta, bool set)
{ {
struct iwl_priv *priv = hw->priv; struct iwl_priv *priv = hw->priv;
...@@ -3110,32 +3112,32 @@ struct ieee80211_ops iwlagn_hw_ops = { ...@@ -3110,32 +3112,32 @@ struct ieee80211_ops iwlagn_hw_ops = {
.suspend = iwlagn_mac_suspend, .suspend = iwlagn_mac_suspend,
.resume = iwlagn_mac_resume, .resume = iwlagn_mac_resume,
#endif #endif
.add_interface = iwl_mac_add_interface, .add_interface = iwlagn_mac_add_interface,
.remove_interface = iwl_mac_remove_interface, .remove_interface = iwlagn_mac_remove_interface,
.change_interface = iwl_mac_change_interface, .change_interface = iwlagn_mac_change_interface,
.config = iwlagn_mac_config, .config = iwlagn_mac_config,
.configure_filter = iwlagn_configure_filter, .configure_filter = iwlagn_configure_filter,
.set_key = iwlagn_mac_set_key, .set_key = iwlagn_mac_set_key,
.update_tkip_key = iwlagn_mac_update_tkip_key, .update_tkip_key = iwlagn_mac_update_tkip_key,
.set_rekey_data = iwlagn_mac_set_rekey_data, .set_rekey_data = iwlagn_mac_set_rekey_data,
.conf_tx = iwl_mac_conf_tx, .conf_tx = iwlagn_mac_conf_tx,
.bss_info_changed = iwlagn_bss_info_changed, .bss_info_changed = iwlagn_bss_info_changed,
.ampdu_action = iwlagn_mac_ampdu_action, .ampdu_action = iwlagn_mac_ampdu_action,
.hw_scan = iwl_mac_hw_scan, .hw_scan = iwlagn_mac_hw_scan,
.sta_notify = iwlagn_mac_sta_notify, .sta_notify = iwlagn_mac_sta_notify,
.sta_add = iwlagn_mac_sta_add, .sta_add = iwlagn_mac_sta_add,
.sta_remove = iwl_mac_sta_remove, .sta_remove = iwlagn_mac_sta_remove,
.channel_switch = iwlagn_mac_channel_switch, .channel_switch = iwlagn_mac_channel_switch,
.flush = iwlagn_mac_flush, .flush = iwlagn_mac_flush,
.tx_last_beacon = iwl_mac_tx_last_beacon, .tx_last_beacon = iwlagn_mac_tx_last_beacon,
.remain_on_channel = iwl_mac_remain_on_channel, .remain_on_channel = iwlagn_mac_remain_on_channel,
.cancel_remain_on_channel = iwl_mac_cancel_remain_on_channel, .cancel_remain_on_channel = iwlagn_mac_cancel_remain_on_channel,
.rssi_callback = iwl_mac_rssi_callback, .rssi_callback = iwlagn_mac_rssi_callback,
CFG80211_TESTMODE_CMD(iwl_testmode_cmd) CFG80211_TESTMODE_CMD(iwlagn_mac_testmode_cmd)
CFG80211_TESTMODE_DUMP(iwl_testmode_dump) CFG80211_TESTMODE_DUMP(iwlagn_mac_testmode_dump)
.tx_sync = iwl_mac_tx_sync, .tx_sync = iwlagn_mac_tx_sync,
.finish_tx_sync = iwl_mac_finish_tx_sync, .finish_tx_sync = iwlagn_mac_finish_tx_sync,
.set_tim = iwl_mac_set_tim, .set_tim = iwlagn_mac_set_tim,
}; };
static u32 iwl_hw_detect(struct iwl_priv *priv) static u32 iwl_hw_detect(struct iwl_priv *priv)
...@@ -3378,7 +3380,7 @@ void __devexit iwl_remove(struct iwl_priv * priv) ...@@ -3378,7 +3380,7 @@ void __devexit iwl_remove(struct iwl_priv * priv)
iwl_dbgfs_unregister(priv); iwl_dbgfs_unregister(priv);
/* ieee80211_unregister_hw call wil cause iwl_mac_stop to /* ieee80211_unregister_hw call wil cause iwlagn_mac_stop to
* to be called and iwl_down since we are removing the device * to be called and iwl_down since we are removing the device
* we need to set STATUS_EXIT_PENDING bit. * we need to set STATUS_EXIT_PENDING bit.
*/ */
...@@ -3404,7 +3406,7 @@ void __devexit iwl_remove(struct iwl_priv * priv) ...@@ -3404,7 +3406,7 @@ void __devexit iwl_remove(struct iwl_priv * priv)
/*netif_stop_queue(dev); */ /*netif_stop_queue(dev); */
flush_workqueue(priv->shrd->workqueue); flush_workqueue(priv->shrd->workqueue);
/* ieee80211_unregister_hw calls iwl_mac_stop, which flushes /* ieee80211_unregister_hw calls iwlagn_mac_stop, which flushes
* priv->shrd->workqueue... so we can't take down the workqueue * priv->shrd->workqueue... so we can't take down the workqueue
* until now... */ * until now... */
destroy_workqueue(priv->shrd->workqueue); destroy_workqueue(priv->shrd->workqueue);
......
...@@ -252,20 +252,22 @@ extern int iwlagn_init_alive_start(struct iwl_priv *priv); ...@@ -252,20 +252,22 @@ extern int iwlagn_init_alive_start(struct iwl_priv *priv);
extern int iwl_alive_start(struct iwl_priv *priv); extern int iwl_alive_start(struct iwl_priv *priv);
/* svtool */ /* svtool */
#ifdef CONFIG_IWLWIFI_DEVICE_SVTOOL #ifdef CONFIG_IWLWIFI_DEVICE_SVTOOL
extern int iwl_testmode_cmd(struct ieee80211_hw *hw, void *data, int len); extern int iwlagn_mac_testmode_cmd(struct ieee80211_hw *hw, void *data,
extern int iwl_testmode_dump(struct ieee80211_hw *hw, struct sk_buff *skb, int len);
extern int iwlagn_mac_testmode_dump(struct ieee80211_hw *hw,
struct sk_buff *skb,
struct netlink_callback *cb, struct netlink_callback *cb,
void *data, int len); void *data, int len);
extern void iwl_testmode_init(struct iwl_priv *priv); extern void iwl_testmode_init(struct iwl_priv *priv);
extern void iwl_testmode_cleanup(struct iwl_priv *priv); extern void iwl_testmode_cleanup(struct iwl_priv *priv);
#else #else
static inline static inline
int iwl_testmode_cmd(struct ieee80211_hw *hw, void *data, int len) int iwlagn_mac_testmode_cmd(struct ieee80211_hw *hw, void *data, int len)
{ {
return -ENOSYS; return -ENOSYS;
} }
static inline static inline
int iwl_testmode_dump(struct ieee80211_hw *hw, struct sk_buff *skb, int iwlagn_mac_testmode_dump(struct ieee80211_hw *hw, struct sk_buff *skb,
struct netlink_callback *cb, struct netlink_callback *cb,
void *data, int len) void *data, int len)
{ {
......
...@@ -804,7 +804,7 @@ void iwl_chswitch_done(struct iwl_priv *priv, bool is_success) ...@@ -804,7 +804,7 @@ void iwl_chswitch_done(struct iwl_priv *priv, bool is_success)
{ {
/* /*
* MULTI-FIXME * MULTI-FIXME
* See iwl_mac_channel_switch. * See iwlagn_mac_channel_switch.
*/ */
struct iwl_rxon_context *ctx = &priv->contexts[IWL_RXON_CTX_BSS]; struct iwl_rxon_context *ctx = &priv->contexts[IWL_RXON_CTX_BSS];
...@@ -1123,7 +1123,7 @@ int iwl_send_statistics_request(struct iwl_priv *priv, u8 flags, bool clear) ...@@ -1123,7 +1123,7 @@ int iwl_send_statistics_request(struct iwl_priv *priv, u8 flags, bool clear)
&statistics_cmd); &statistics_cmd);
} }
int iwl_mac_conf_tx(struct ieee80211_hw *hw, int iwlagn_mac_conf_tx(struct ieee80211_hw *hw,
struct ieee80211_vif *vif, u16 queue, struct ieee80211_vif *vif, u16 queue,
const struct ieee80211_tx_queue_params *params) const struct ieee80211_tx_queue_params *params)
{ {
...@@ -1170,7 +1170,7 @@ int iwl_mac_conf_tx(struct ieee80211_hw *hw, ...@@ -1170,7 +1170,7 @@ int iwl_mac_conf_tx(struct ieee80211_hw *hw,
return 0; return 0;
} }
int iwl_mac_tx_last_beacon(struct ieee80211_hw *hw) int iwlagn_mac_tx_last_beacon(struct ieee80211_hw *hw)
{ {
struct iwl_priv *priv = hw->priv; struct iwl_priv *priv = hw->priv;
...@@ -1223,7 +1223,8 @@ static int iwl_setup_interface(struct iwl_priv *priv, ...@@ -1223,7 +1223,8 @@ static int iwl_setup_interface(struct iwl_priv *priv,
return 0; return 0;
} }
int iwl_mac_add_interface(struct ieee80211_hw *hw, struct ieee80211_vif *vif) int iwlagn_mac_add_interface(struct ieee80211_hw *hw,
struct ieee80211_vif *vif)
{ {
struct iwl_priv *priv = hw->priv; struct iwl_priv *priv = hw->priv;
struct iwl_vif_priv *vif_priv = (void *)vif->drv_priv; struct iwl_vif_priv *vif_priv = (void *)vif->drv_priv;
...@@ -1319,7 +1320,7 @@ static void iwl_teardown_interface(struct iwl_priv *priv, ...@@ -1319,7 +1320,7 @@ static void iwl_teardown_interface(struct iwl_priv *priv,
priv->bt_traffic_load = priv->last_bt_traffic_load; priv->bt_traffic_load = priv->last_bt_traffic_load;
} }
void iwl_mac_remove_interface(struct ieee80211_hw *hw, void iwlagn_mac_remove_interface(struct ieee80211_hw *hw,
struct ieee80211_vif *vif) struct ieee80211_vif *vif)
{ {
struct iwl_priv *priv = hw->priv; struct iwl_priv *priv = hw->priv;
...@@ -1651,7 +1652,8 @@ int iwl_force_reset(struct iwl_priv *priv, int mode, bool external) ...@@ -1651,7 +1652,8 @@ int iwl_force_reset(struct iwl_priv *priv, int mode, bool external)
return 0; return 0;
} }
int iwl_mac_change_interface(struct ieee80211_hw *hw, struct ieee80211_vif *vif, int iwlagn_mac_change_interface(struct ieee80211_hw *hw,
struct ieee80211_vif *vif,
enum nl80211_iftype newtype, bool newp2p) enum nl80211_iftype newtype, bool newp2p)
{ {
struct iwl_priv *priv = hw->priv; struct iwl_priv *priv = hw->priv;
......
...@@ -236,10 +236,10 @@ struct iwl_cfg { ...@@ -236,10 +236,10 @@ struct iwl_cfg {
* L i b * * L i b *
***************************/ ***************************/
int iwl_mac_conf_tx(struct ieee80211_hw *hw, int iwlagn_mac_conf_tx(struct ieee80211_hw *hw,
struct ieee80211_vif *vif, u16 queue, struct ieee80211_vif *vif, u16 queue,
const struct ieee80211_tx_queue_params *params); const struct ieee80211_tx_queue_params *params);
int iwl_mac_tx_last_beacon(struct ieee80211_hw *hw); int iwlagn_mac_tx_last_beacon(struct ieee80211_hw *hw);
void iwl_set_rxon_hwcrypto(struct iwl_priv *priv, struct iwl_rxon_context *ctx, void iwl_set_rxon_hwcrypto(struct iwl_priv *priv, struct iwl_rxon_context *ctx,
int hw_decrypt); int hw_decrypt);
int iwl_check_rxon_cmd(struct iwl_priv *priv, struct iwl_rxon_context *ctx); int iwl_check_rxon_cmd(struct iwl_priv *priv, struct iwl_rxon_context *ctx);
...@@ -259,11 +259,11 @@ bool iwl_is_ht40_tx_allowed(struct iwl_priv *priv, ...@@ -259,11 +259,11 @@ bool iwl_is_ht40_tx_allowed(struct iwl_priv *priv,
void iwl_connection_init_rx_config(struct iwl_priv *priv, void iwl_connection_init_rx_config(struct iwl_priv *priv,
struct iwl_rxon_context *ctx); struct iwl_rxon_context *ctx);
void iwl_set_rate(struct iwl_priv *priv); void iwl_set_rate(struct iwl_priv *priv);
int iwl_mac_add_interface(struct ieee80211_hw *hw, int iwlagn_mac_add_interface(struct ieee80211_hw *hw,
struct ieee80211_vif *vif); struct ieee80211_vif *vif);
void iwl_mac_remove_interface(struct ieee80211_hw *hw, void iwlagn_mac_remove_interface(struct ieee80211_hw *hw,
struct ieee80211_vif *vif); struct ieee80211_vif *vif);
int iwl_mac_change_interface(struct ieee80211_hw *hw, int iwlagn_mac_change_interface(struct ieee80211_hw *hw,
struct ieee80211_vif *vif, struct ieee80211_vif *vif,
enum nl80211_iftype newtype, bool newp2p); enum nl80211_iftype newtype, bool newp2p);
int iwl_cmd_echo_test(struct iwl_priv *priv); int iwl_cmd_echo_test(struct iwl_priv *priv);
...@@ -322,7 +322,7 @@ void iwl_init_scan_params(struct iwl_priv *priv); ...@@ -322,7 +322,7 @@ void iwl_init_scan_params(struct iwl_priv *priv);
int iwl_scan_cancel(struct iwl_priv *priv); int iwl_scan_cancel(struct iwl_priv *priv);
void iwl_scan_cancel_timeout(struct iwl_priv *priv, unsigned long ms); void iwl_scan_cancel_timeout(struct iwl_priv *priv, unsigned long ms);
void iwl_force_scan_end(struct iwl_priv *priv); void iwl_force_scan_end(struct iwl_priv *priv);
int iwl_mac_hw_scan(struct ieee80211_hw *hw, int iwlagn_mac_hw_scan(struct ieee80211_hw *hw,
struct ieee80211_vif *vif, struct ieee80211_vif *vif,
struct cfg80211_scan_request *req); struct cfg80211_scan_request *req);
void iwl_internal_short_hw_scan(struct iwl_priv *priv); void iwl_internal_short_hw_scan(struct iwl_priv *priv);
......
...@@ -154,7 +154,7 @@ static int iwl_rx_csa(struct iwl_priv *priv, struct iwl_rx_mem_buffer *rxb, ...@@ -154,7 +154,7 @@ static int iwl_rx_csa(struct iwl_priv *priv, struct iwl_rx_mem_buffer *rxb,
struct iwl_csa_notification *csa = &(pkt->u.csa_notif); struct iwl_csa_notification *csa = &(pkt->u.csa_notif);
/* /*
* MULTI-FIXME * MULTI-FIXME
* See iwl_mac_channel_switch. * See iwlagn_mac_channel_switch.
*/ */
struct iwl_rxon_context *ctx = &priv->contexts[IWL_RXON_CTX_BSS]; struct iwl_rxon_context *ctx = &priv->contexts[IWL_RXON_CTX_BSS];
struct iwl_rxon_cmd *rxon = (void *)&ctx->active; struct iwl_rxon_cmd *rxon = (void *)&ctx->active;
......
...@@ -940,7 +940,7 @@ int __must_check iwl_scan_initiate(struct iwl_priv *priv, ...@@ -940,7 +940,7 @@ int __must_check iwl_scan_initiate(struct iwl_priv *priv,
return 0; return 0;
} }
int iwl_mac_hw_scan(struct ieee80211_hw *hw, int iwlagn_mac_hw_scan(struct ieee80211_hw *hw,
struct ieee80211_vif *vif, struct ieee80211_vif *vif,
struct cfg80211_scan_request *req) struct cfg80211_scan_request *req)
{ {
......
...@@ -815,7 +815,7 @@ int iwl_send_lq_cmd(struct iwl_priv *priv, struct iwl_rxon_context *ctx, ...@@ -815,7 +815,7 @@ int iwl_send_lq_cmd(struct iwl_priv *priv, struct iwl_rxon_context *ctx,
return ret; return ret;
} }
int iwl_mac_sta_remove(struct ieee80211_hw *hw, int iwlagn_mac_sta_remove(struct ieee80211_hw *hw,
struct ieee80211_vif *vif, struct ieee80211_vif *vif,
struct ieee80211_sta *sta) struct ieee80211_sta *sta)
{ {
......
...@@ -52,7 +52,7 @@ int iwl_add_station_common(struct iwl_priv *priv, struct iwl_rxon_context *ctx, ...@@ -52,7 +52,7 @@ int iwl_add_station_common(struct iwl_priv *priv, struct iwl_rxon_context *ctx,
struct ieee80211_sta *sta, u8 *sta_id_r); struct ieee80211_sta *sta, u8 *sta_id_r);
int iwl_remove_station(struct iwl_priv *priv, const u8 sta_id, int iwl_remove_station(struct iwl_priv *priv, const u8 sta_id,
const u8 *addr); const u8 *addr);
int iwl_mac_sta_remove(struct ieee80211_hw *hw, struct ieee80211_vif *vif, int iwlagn_mac_sta_remove(struct ieee80211_hw *hw, struct ieee80211_vif *vif,
struct ieee80211_sta *sta); struct ieee80211_sta *sta);
u8 iwl_prep_station(struct iwl_priv *priv, struct iwl_rxon_context *ctx, u8 iwl_prep_station(struct iwl_priv *priv, struct iwl_rxon_context *ctx,
......
...@@ -641,7 +641,7 @@ static int iwl_testmode_ownership(struct ieee80211_hw *hw, struct nlattr **tb) ...@@ -641,7 +641,7 @@ static int iwl_testmode_ownership(struct ieee80211_hw *hw, struct nlattr **tb)
* @data: pointer to user space message * @data: pointer to user space message
* @len: length in byte of @data * @len: length in byte of @data
*/ */
int iwl_testmode_cmd(struct ieee80211_hw *hw, void *data, int len) int iwlagn_mac_testmode_cmd(struct ieee80211_hw *hw, void *data, int len)
{ {
struct nlattr *tb[IWL_TM_ATTR_MAX]; struct nlattr *tb[IWL_TM_ATTR_MAX];
struct iwl_priv *priv = hw->priv; struct iwl_priv *priv = hw->priv;
...@@ -706,7 +706,7 @@ int iwl_testmode_cmd(struct ieee80211_hw *hw, void *data, int len) ...@@ -706,7 +706,7 @@ int iwl_testmode_cmd(struct ieee80211_hw *hw, void *data, int len)
return result; return result;
} }
int iwl_testmode_dump(struct ieee80211_hw *hw, struct sk_buff *skb, int iwlagn_mac_testmode_dump(struct ieee80211_hw *hw, struct sk_buff *skb,
struct netlink_callback *cb, struct netlink_callback *cb,
void *data, int len) void *data, int len)
{ {
......
...@@ -1372,8 +1372,9 @@ static int iwl_trans_pcie_suspend(struct iwl_trans *trans) ...@@ -1372,8 +1372,9 @@ static int iwl_trans_pcie_suspend(struct iwl_trans *trans)
{ {
/* /*
* This function is called when system goes into suspend state * This function is called when system goes into suspend state
* mac80211 will call iwl_mac_stop() from the mac80211 suspend function * mac80211 will call iwlagn_mac_stop() from the mac80211 suspend
* first but since iwl_mac_stop() has no knowledge of who the caller is, * function first but since iwlagn_mac_stop() has no knowledge of
* who the caller is,
* it will not call apm_ops.stop() to stop the DMA operation. * it will not call apm_ops.stop() to stop the DMA operation.
* Calling apm_ops.stop here to make sure we stop the DMA. * Calling apm_ops.stop here to make sure we stop the DMA.
* *
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment