iwlwifi: add sta_id to WOWLAN_CONFIG_CMD
WoWlan feature within the FW uses the station id for various of reasons. Thus we need to add this information to the command. Signed-off-by: Haim Dreyfuss <haim.dreyfuss@intel.com> Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
This commit is contained in:
committed by
Luca Coelho
parent
e5f3f215d0
commit
f005fd88e9
@ -396,6 +396,7 @@ enum iwl_wowlan_flags {
|
|||||||
* @is_11n_connection: indicates HT connection
|
* @is_11n_connection: indicates HT connection
|
||||||
* @offloading_tid: TID reserved for firmware use
|
* @offloading_tid: TID reserved for firmware use
|
||||||
* @flags: extra flags, see &enum iwl_wowlan_flags
|
* @flags: extra flags, see &enum iwl_wowlan_flags
|
||||||
|
* @sta_id: station ID for wowlan.
|
||||||
* @reserved: reserved
|
* @reserved: reserved
|
||||||
*/
|
*/
|
||||||
struct iwl_wowlan_config_cmd {
|
struct iwl_wowlan_config_cmd {
|
||||||
@ -406,8 +407,9 @@ struct iwl_wowlan_config_cmd {
|
|||||||
u8 is_11n_connection;
|
u8 is_11n_connection;
|
||||||
u8 offloading_tid;
|
u8 offloading_tid;
|
||||||
u8 flags;
|
u8 flags;
|
||||||
u8 reserved[2];
|
u8 sta_id;
|
||||||
} __packed; /* WOWLAN_CONFIG_API_S_VER_4 */
|
u8 reserved;
|
||||||
|
} __packed; /* WOWLAN_CONFIG_API_S_VER_5 */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* WOWLAN_TSC_RSC_PARAMS
|
* WOWLAN_TSC_RSC_PARAMS
|
||||||
|
@ -904,6 +904,8 @@ iwl_mvm_netdetect_config(struct iwl_mvm *mvm,
|
|||||||
wowlan_config_cmd.wakeup_filter |=
|
wowlan_config_cmd.wakeup_filter |=
|
||||||
cpu_to_le32(IWL_WOWLAN_WAKEUP_RF_KILL_DEASSERT);
|
cpu_to_le32(IWL_WOWLAN_WAKEUP_RF_KILL_DEASSERT);
|
||||||
|
|
||||||
|
wowlan_config_cmd.sta_id = mvm->aux_sta.sta_id;
|
||||||
|
|
||||||
ret = iwl_mvm_send_cmd_pdu(mvm, WOWLAN_CONFIGURATION, 0,
|
ret = iwl_mvm_send_cmd_pdu(mvm, WOWLAN_CONFIGURATION, 0,
|
||||||
sizeof(wowlan_config_cmd),
|
sizeof(wowlan_config_cmd),
|
||||||
&wowlan_config_cmd);
|
&wowlan_config_cmd);
|
||||||
@ -1011,6 +1013,8 @@ static int __iwl_mvm_suspend(struct ieee80211_hw *hw,
|
|||||||
} else {
|
} else {
|
||||||
struct iwl_wowlan_config_cmd wowlan_config_cmd = {};
|
struct iwl_wowlan_config_cmd wowlan_config_cmd = {};
|
||||||
|
|
||||||
|
wowlan_config_cmd.sta_id = mvmvif->ap_sta_id;
|
||||||
|
|
||||||
ap_sta = rcu_dereference_protected(
|
ap_sta = rcu_dereference_protected(
|
||||||
mvm->fw_id_to_mac_id[mvmvif->ap_sta_id],
|
mvm->fw_id_to_mac_id[mvmvif->ap_sta_id],
|
||||||
lockdep_is_held(&mvm->mutex));
|
lockdep_is_held(&mvm->mutex));
|
||||||
|
Reference in New Issue
Block a user