[linux-yocto] FW: [PATCH] iwlwifi: mvm: don't allow sched scans without matches to be started
Zheng, Wu
wu.zheng at intel.com
Sun Mar 6 23:05:44 PST 2016
Hi Bruce Ashfield,
Our system platform will use linux-yocto-4.4.
Therefore, Sending the patch again, It is for linux-yocto-4.4.
Thanks.
Best Regards
Zheng Wu
>-----Original Message-----
>From: Zheng, Wu
>Sent: Monday, March 7, 2016 3:09 PM
>To: linux-yocto at yoctoproject.org
>Cc: Ashfield, Bruce (Wind River) <bruce.ashfield at windriver.com>; Zheng, Wu
><wu.zheng at intel.com>; Coelho, Luciano <luciano.coelho at intel.com>;
>Grumbach, Emmanuel <emmanuel.grumbach at intel.com>
>Subject: [PATCH] iwlwifi: mvm: don't allow sched scans without matches to be
>started
>
>commit 5e56276e7555b34550d51459a801ff75eca8b907 upstream.
>
>The firmware can perform a scheduled scan with not matchsets passed, but it
>can't send notification that results were found. Since the userspace then
>cannot know when we got new results and the firmware wouldn't trigger a wake
>in case we are sleeping, it's better not to allow scans without matchsets.
>
>This fixes https://bugzilla.kernel.org/show_bug.cgi?id=110831
>
>Signed-off-by: Luca Coelho <luciano.coelho at intel.com>
>Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach at intel.com>
>Signed-off-by: Wu Zheng <wu.zheng at intel.com>
>---
> drivers/net/wireless/iwlwifi/mvm/scan.c | 4 ++++
> 1 file changed, 4 insertions(+)
>
>diff --git a/drivers/net/wireless/iwlwifi/mvm/scan.c
>b/drivers/net/wireless/iwlwifi/mvm/scan.c
>index d6e0c1b..8215d74 100644
>--- a/drivers/net/wireless/iwlwifi/mvm/scan.c
>+++ b/drivers/net/wireless/iwlwifi/mvm/scan.c
>@@ -1267,6 +1267,10 @@ int iwl_mvm_sched_scan_start(struct iwl_mvm
>*mvm,
> return -EBUSY;
> }
>
>+ /* we don't support "match all" in the firmware */
>+ if (!req->n_match_sets)
>+ return -EOPNOTSUPP;
>+
> ret = iwl_mvm_check_running_scans(mvm, type);
> if (ret)
> return ret;
>--
>2.1.4
More information about the linux-yocto
mailing list