mirror of https://gitee.com/openkylin/linux.git
iwlwifi: mvm: fix scan offloading flag definition
Bit 0 in the scan offloading flags asks the filter to pass all the results (instead of filtering them, by default), rather than the other way around (like it is defined and used today). Fix the flag name appropriately, and fix its user. Signed-off-by: Eliad Peller <eliad@wizery.com> Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
This commit is contained in:
parent
086f7368d4
commit
de33fb5e80
|
@ -530,14 +530,13 @@ struct iwl_scan_offload_schedule {
|
||||||
/*
|
/*
|
||||||
* iwl_scan_offload_flags
|
* iwl_scan_offload_flags
|
||||||
*
|
*
|
||||||
* IWL_SCAN_OFFLOAD_FLAG_FILTER_SSID: filter mode - upload every beacon or match
|
* IWL_SCAN_OFFLOAD_FLAG_PASS_ALL: pass all results - no filtering.
|
||||||
* ssid list.
|
|
||||||
* IWL_SCAN_OFFLOAD_FLAG_CACHED_CHANNEL: add cached channels to partial scan.
|
* IWL_SCAN_OFFLOAD_FLAG_CACHED_CHANNEL: add cached channels to partial scan.
|
||||||
* IWL_SCAN_OFFLOAD_FLAG_ENERGY_SCAN: use energy based scan before partial scan
|
* IWL_SCAN_OFFLOAD_FLAG_ENERGY_SCAN: use energy based scan before partial scan
|
||||||
* on A band.
|
* on A band.
|
||||||
*/
|
*/
|
||||||
enum iwl_scan_offload_flags {
|
enum iwl_scan_offload_flags {
|
||||||
IWL_SCAN_OFFLOAD_FLAG_FILTER_SSID = BIT(0),
|
IWL_SCAN_OFFLOAD_FLAG_PASS_ALL = BIT(0),
|
||||||
IWL_SCAN_OFFLOAD_FLAG_CACHED_CHANNEL = BIT(2),
|
IWL_SCAN_OFFLOAD_FLAG_CACHED_CHANNEL = BIT(2),
|
||||||
IWL_SCAN_OFFLOAD_FLAG_ENERGY_SCAN = BIT(3),
|
IWL_SCAN_OFFLOAD_FLAG_ENERGY_SCAN = BIT(3),
|
||||||
};
|
};
|
||||||
|
|
|
@ -817,11 +817,10 @@ int iwl_mvm_sched_scan_start(struct iwl_mvm *mvm,
|
||||||
IWL_DEBUG_SCAN(mvm,
|
IWL_DEBUG_SCAN(mvm,
|
||||||
"Sending scheduled scan with filtering, filter len %d\n",
|
"Sending scheduled scan with filtering, filter len %d\n",
|
||||||
req->n_match_sets);
|
req->n_match_sets);
|
||||||
scan_req.flags |=
|
|
||||||
cpu_to_le16(IWL_SCAN_OFFLOAD_FLAG_FILTER_SSID);
|
|
||||||
} else {
|
} else {
|
||||||
IWL_DEBUG_SCAN(mvm,
|
IWL_DEBUG_SCAN(mvm,
|
||||||
"Sending Scheduled scan without filtering\n");
|
"Sending Scheduled scan without filtering\n");
|
||||||
|
scan_req.flags |= cpu_to_le16(IWL_SCAN_OFFLOAD_FLAG_PASS_ALL);
|
||||||
}
|
}
|
||||||
|
|
||||||
return iwl_mvm_send_cmd_pdu(mvm, SCAN_OFFLOAD_REQUEST_CMD, CMD_SYNC,
|
return iwl_mvm_send_cmd_pdu(mvm, SCAN_OFFLOAD_REQUEST_CMD, CMD_SYNC,
|
||||||
|
|
Loading…
Reference in New Issue