mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-28 09:31:14 +00:00
iwlwifi: mvm: properly tell the fw that a STA is awake
The firmware API wasn't being used correctly, fix that. Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
This commit is contained in:
parent
8e00cc1261
commit
5af01772ee
1 changed files with 1 additions and 7 deletions
|
@ -1292,17 +1292,11 @@ void iwl_mvm_sta_modify_ps_wake(struct iwl_mvm *mvm,
|
||||||
struct iwl_mvm_add_sta_cmd cmd = {
|
struct iwl_mvm_add_sta_cmd cmd = {
|
||||||
.add_modify = STA_MODE_MODIFY,
|
.add_modify = STA_MODE_MODIFY,
|
||||||
.sta_id = mvmsta->sta_id,
|
.sta_id = mvmsta->sta_id,
|
||||||
.modify_mask = STA_MODIFY_SLEEPING_STA_TX_COUNT,
|
.station_flags_msk = cpu_to_le32(STA_FLG_PS),
|
||||||
.sleep_state_flags = cpu_to_le16(STA_SLEEP_STATE_AWAKE),
|
|
||||||
.mac_id_n_color = cpu_to_le32(mvmsta->mac_id_n_color),
|
.mac_id_n_color = cpu_to_le32(mvmsta->mac_id_n_color),
|
||||||
};
|
};
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
/*
|
|
||||||
* Same modify mask for sleep_tx_count and sleep_state_flags but this
|
|
||||||
* should be fine since if we set the STA as "awake", then
|
|
||||||
* sleep_tx_count is not relevant.
|
|
||||||
*/
|
|
||||||
ret = iwl_mvm_send_cmd_pdu(mvm, ADD_STA, CMD_ASYNC, sizeof(cmd), &cmd);
|
ret = iwl_mvm_send_cmd_pdu(mvm, ADD_STA, CMD_ASYNC, sizeof(cmd), &cmd);
|
||||||
if (ret)
|
if (ret)
|
||||||
IWL_ERR(mvm, "Failed to send ADD_STA command (%d)\n", ret);
|
IWL_ERR(mvm, "Failed to send ADD_STA command (%d)\n", ret);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue