diff options
Diffstat (limited to 'drivers/net/wireless/iwlwifi/mvm/sta.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/mvm/sta.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/net/wireless/iwlwifi/mvm/sta.c b/drivers/net/wireless/iwlwifi/mvm/sta.c index c89232c8aa79..7a5b7473eafa 100644 --- a/drivers/net/wireless/iwlwifi/mvm/sta.c +++ b/drivers/net/wireless/iwlwifi/mvm/sta.c | |||
@@ -840,7 +840,7 @@ static const u8 tid_to_ac[] = { | |||
840 | int iwl_mvm_sta_tx_agg_start(struct iwl_mvm *mvm, struct ieee80211_vif *vif, | 840 | int iwl_mvm_sta_tx_agg_start(struct iwl_mvm *mvm, struct ieee80211_vif *vif, |
841 | struct ieee80211_sta *sta, u16 tid, u16 *ssn) | 841 | struct ieee80211_sta *sta, u16 tid, u16 *ssn) |
842 | { | 842 | { |
843 | struct iwl_mvm_sta *mvmsta = (void *)sta->drv_priv; | 843 | struct iwl_mvm_sta *mvmsta = iwl_mvm_sta_from_mac80211(sta); |
844 | struct iwl_mvm_tid_data *tid_data; | 844 | struct iwl_mvm_tid_data *tid_data; |
845 | int txq_id; | 845 | int txq_id; |
846 | 846 | ||
@@ -895,7 +895,7 @@ int iwl_mvm_sta_tx_agg_start(struct iwl_mvm *mvm, struct ieee80211_vif *vif, | |||
895 | int iwl_mvm_sta_tx_agg_oper(struct iwl_mvm *mvm, struct ieee80211_vif *vif, | 895 | int iwl_mvm_sta_tx_agg_oper(struct iwl_mvm *mvm, struct ieee80211_vif *vif, |
896 | struct ieee80211_sta *sta, u16 tid, u8 buf_size) | 896 | struct ieee80211_sta *sta, u16 tid, u8 buf_size) |
897 | { | 897 | { |
898 | struct iwl_mvm_sta *mvmsta = (void *)sta->drv_priv; | 898 | struct iwl_mvm_sta *mvmsta = iwl_mvm_sta_from_mac80211(sta); |
899 | struct iwl_mvm_tid_data *tid_data = &mvmsta->tid_data[tid]; | 899 | struct iwl_mvm_tid_data *tid_data = &mvmsta->tid_data[tid]; |
900 | int queue, fifo, ret; | 900 | int queue, fifo, ret; |
901 | u16 ssn; | 901 | u16 ssn; |
@@ -951,7 +951,7 @@ int iwl_mvm_sta_tx_agg_oper(struct iwl_mvm *mvm, struct ieee80211_vif *vif, | |||
951 | int iwl_mvm_sta_tx_agg_stop(struct iwl_mvm *mvm, struct ieee80211_vif *vif, | 951 | int iwl_mvm_sta_tx_agg_stop(struct iwl_mvm *mvm, struct ieee80211_vif *vif, |
952 | struct ieee80211_sta *sta, u16 tid) | 952 | struct ieee80211_sta *sta, u16 tid) |
953 | { | 953 | { |
954 | struct iwl_mvm_sta *mvmsta = (void *)sta->drv_priv; | 954 | struct iwl_mvm_sta *mvmsta = iwl_mvm_sta_from_mac80211(sta); |
955 | struct iwl_mvm_tid_data *tid_data = &mvmsta->tid_data[tid]; | 955 | struct iwl_mvm_tid_data *tid_data = &mvmsta->tid_data[tid]; |
956 | u16 txq_id; | 956 | u16 txq_id; |
957 | int err; | 957 | int err; |
@@ -1023,7 +1023,7 @@ int iwl_mvm_sta_tx_agg_stop(struct iwl_mvm *mvm, struct ieee80211_vif *vif, | |||
1023 | int iwl_mvm_sta_tx_agg_flush(struct iwl_mvm *mvm, struct ieee80211_vif *vif, | 1023 | int iwl_mvm_sta_tx_agg_flush(struct iwl_mvm *mvm, struct ieee80211_vif *vif, |
1024 | struct ieee80211_sta *sta, u16 tid) | 1024 | struct ieee80211_sta *sta, u16 tid) |
1025 | { | 1025 | { |
1026 | struct iwl_mvm_sta *mvmsta = (void *)sta->drv_priv; | 1026 | struct iwl_mvm_sta *mvmsta = iwl_mvm_sta_from_mac80211(sta); |
1027 | struct iwl_mvm_tid_data *tid_data = &mvmsta->tid_data[tid]; | 1027 | struct iwl_mvm_tid_data *tid_data = &mvmsta->tid_data[tid]; |
1028 | u16 txq_id; | 1028 | u16 txq_id; |
1029 | enum iwl_mvm_agg_state old_state; | 1029 | enum iwl_mvm_agg_state old_state; |
@@ -1416,7 +1416,7 @@ void iwl_mvm_update_tkip_key(struct iwl_mvm *mvm, | |||
1416 | void iwl_mvm_sta_modify_ps_wake(struct iwl_mvm *mvm, | 1416 | void iwl_mvm_sta_modify_ps_wake(struct iwl_mvm *mvm, |
1417 | struct ieee80211_sta *sta) | 1417 | struct ieee80211_sta *sta) |
1418 | { | 1418 | { |
1419 | struct iwl_mvm_sta *mvmsta = (void *)sta->drv_priv; | 1419 | struct iwl_mvm_sta *mvmsta = iwl_mvm_sta_from_mac80211(sta); |
1420 | struct iwl_mvm_add_sta_cmd_v6 cmd = { | 1420 | struct iwl_mvm_add_sta_cmd_v6 cmd = { |
1421 | .add_modify = STA_MODE_MODIFY, | 1421 | .add_modify = STA_MODE_MODIFY, |
1422 | .sta_id = mvmsta->sta_id, | 1422 | .sta_id = mvmsta->sta_id, |
@@ -1438,7 +1438,7 @@ void iwl_mvm_sta_modify_sleep_tx_count(struct iwl_mvm *mvm, | |||
1438 | u16 sleep_state_flags = | 1438 | u16 sleep_state_flags = |
1439 | (reason == IEEE80211_FRAME_RELEASE_UAPSD) ? | 1439 | (reason == IEEE80211_FRAME_RELEASE_UAPSD) ? |
1440 | STA_SLEEP_STATE_UAPSD : STA_SLEEP_STATE_PS_POLL; | 1440 | STA_SLEEP_STATE_UAPSD : STA_SLEEP_STATE_PS_POLL; |
1441 | struct iwl_mvm_sta *mvmsta = (void *)sta->drv_priv; | 1441 | struct iwl_mvm_sta *mvmsta = iwl_mvm_sta_from_mac80211(sta); |
1442 | struct iwl_mvm_add_sta_cmd_v6 cmd = { | 1442 | struct iwl_mvm_add_sta_cmd_v6 cmd = { |
1443 | .add_modify = STA_MODE_MODIFY, | 1443 | .add_modify = STA_MODE_MODIFY, |
1444 | .sta_id = mvmsta->sta_id, | 1444 | .sta_id = mvmsta->sta_id, |