|
@@ -840,7 +840,7 @@ static const u8 tid_to_ac[] = {
|
|
|
int iwl_mvm_sta_tx_agg_start(struct iwl_mvm *mvm, struct ieee80211_vif *vif,
|
|
int iwl_mvm_sta_tx_agg_start(struct iwl_mvm *mvm, struct ieee80211_vif *vif,
|
|
|
struct ieee80211_sta *sta, u16 tid, u16 *ssn)
|
|
struct ieee80211_sta *sta, u16 tid, u16 *ssn)
|
|
|
{
|
|
{
|
|
|
- struct iwl_mvm_sta *mvmsta = (void *)sta->drv_priv;
|
|
|
|
|
|
|
+ struct iwl_mvm_sta *mvmsta = iwl_mvm_sta_from_mac80211(sta);
|
|
|
struct iwl_mvm_tid_data *tid_data;
|
|
struct iwl_mvm_tid_data *tid_data;
|
|
|
int txq_id;
|
|
int txq_id;
|
|
|
|
|
|
|
@@ -895,7 +895,7 @@ int iwl_mvm_sta_tx_agg_start(struct iwl_mvm *mvm, struct ieee80211_vif *vif,
|
|
|
int iwl_mvm_sta_tx_agg_oper(struct iwl_mvm *mvm, struct ieee80211_vif *vif,
|
|
int iwl_mvm_sta_tx_agg_oper(struct iwl_mvm *mvm, struct ieee80211_vif *vif,
|
|
|
struct ieee80211_sta *sta, u16 tid, u8 buf_size)
|
|
struct ieee80211_sta *sta, u16 tid, u8 buf_size)
|
|
|
{
|
|
{
|
|
|
- struct iwl_mvm_sta *mvmsta = (void *)sta->drv_priv;
|
|
|
|
|
|
|
+ struct iwl_mvm_sta *mvmsta = iwl_mvm_sta_from_mac80211(sta);
|
|
|
struct iwl_mvm_tid_data *tid_data = &mvmsta->tid_data[tid];
|
|
struct iwl_mvm_tid_data *tid_data = &mvmsta->tid_data[tid];
|
|
|
int queue, fifo, ret;
|
|
int queue, fifo, ret;
|
|
|
u16 ssn;
|
|
u16 ssn;
|
|
@@ -951,7 +951,7 @@ int iwl_mvm_sta_tx_agg_oper(struct iwl_mvm *mvm, struct ieee80211_vif *vif,
|
|
|
int iwl_mvm_sta_tx_agg_stop(struct iwl_mvm *mvm, struct ieee80211_vif *vif,
|
|
int iwl_mvm_sta_tx_agg_stop(struct iwl_mvm *mvm, struct ieee80211_vif *vif,
|
|
|
struct ieee80211_sta *sta, u16 tid)
|
|
struct ieee80211_sta *sta, u16 tid)
|
|
|
{
|
|
{
|
|
|
- struct iwl_mvm_sta *mvmsta = (void *)sta->drv_priv;
|
|
|
|
|
|
|
+ struct iwl_mvm_sta *mvmsta = iwl_mvm_sta_from_mac80211(sta);
|
|
|
struct iwl_mvm_tid_data *tid_data = &mvmsta->tid_data[tid];
|
|
struct iwl_mvm_tid_data *tid_data = &mvmsta->tid_data[tid];
|
|
|
u16 txq_id;
|
|
u16 txq_id;
|
|
|
int err;
|
|
int err;
|
|
@@ -1023,7 +1023,7 @@ int iwl_mvm_sta_tx_agg_stop(struct iwl_mvm *mvm, struct ieee80211_vif *vif,
|
|
|
int iwl_mvm_sta_tx_agg_flush(struct iwl_mvm *mvm, struct ieee80211_vif *vif,
|
|
int iwl_mvm_sta_tx_agg_flush(struct iwl_mvm *mvm, struct ieee80211_vif *vif,
|
|
|
struct ieee80211_sta *sta, u16 tid)
|
|
struct ieee80211_sta *sta, u16 tid)
|
|
|
{
|
|
{
|
|
|
- struct iwl_mvm_sta *mvmsta = (void *)sta->drv_priv;
|
|
|
|
|
|
|
+ struct iwl_mvm_sta *mvmsta = iwl_mvm_sta_from_mac80211(sta);
|
|
|
struct iwl_mvm_tid_data *tid_data = &mvmsta->tid_data[tid];
|
|
struct iwl_mvm_tid_data *tid_data = &mvmsta->tid_data[tid];
|
|
|
u16 txq_id;
|
|
u16 txq_id;
|
|
|
enum iwl_mvm_agg_state old_state;
|
|
enum iwl_mvm_agg_state old_state;
|
|
@@ -1416,7 +1416,7 @@ void iwl_mvm_update_tkip_key(struct iwl_mvm *mvm,
|
|
|
void iwl_mvm_sta_modify_ps_wake(struct iwl_mvm *mvm,
|
|
void iwl_mvm_sta_modify_ps_wake(struct iwl_mvm *mvm,
|
|
|
struct ieee80211_sta *sta)
|
|
struct ieee80211_sta *sta)
|
|
|
{
|
|
{
|
|
|
- struct iwl_mvm_sta *mvmsta = (void *)sta->drv_priv;
|
|
|
|
|
|
|
+ struct iwl_mvm_sta *mvmsta = iwl_mvm_sta_from_mac80211(sta);
|
|
|
struct iwl_mvm_add_sta_cmd_v6 cmd = {
|
|
struct iwl_mvm_add_sta_cmd_v6 cmd = {
|
|
|
.add_modify = STA_MODE_MODIFY,
|
|
.add_modify = STA_MODE_MODIFY,
|
|
|
.sta_id = mvmsta->sta_id,
|
|
.sta_id = mvmsta->sta_id,
|
|
@@ -1438,7 +1438,7 @@ void iwl_mvm_sta_modify_sleep_tx_count(struct iwl_mvm *mvm,
|
|
|
u16 sleep_state_flags =
|
|
u16 sleep_state_flags =
|
|
|
(reason == IEEE80211_FRAME_RELEASE_UAPSD) ?
|
|
(reason == IEEE80211_FRAME_RELEASE_UAPSD) ?
|
|
|
STA_SLEEP_STATE_UAPSD : STA_SLEEP_STATE_PS_POLL;
|
|
STA_SLEEP_STATE_UAPSD : STA_SLEEP_STATE_PS_POLL;
|
|
|
- struct iwl_mvm_sta *mvmsta = (void *)sta->drv_priv;
|
|
|
|
|
|
|
+ struct iwl_mvm_sta *mvmsta = iwl_mvm_sta_from_mac80211(sta);
|
|
|
struct iwl_mvm_add_sta_cmd_v6 cmd = {
|
|
struct iwl_mvm_add_sta_cmd_v6 cmd = {
|
|
|
.add_modify = STA_MODE_MODIFY,
|
|
.add_modify = STA_MODE_MODIFY,
|
|
|
.sta_id = mvmsta->sta_id,
|
|
.sta_id = mvmsta->sta_id,
|