]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
iwlwifi: mvm: don't allow sched scans without matches to be started
authorSasha Levin <sasha.levin@oracle.com>
Mon, 7 Mar 2016 17:23:04 +0000 (12:23 -0500)
committerSasha Levin <sasha.levin@oracle.com>
Mon, 7 Mar 2016 17:23:16 +0000 (12:23 -0500)
commit18ddf12c2de57556909778af1ab31177bf53d5cb
treef5c23f0e36d1ae634cc0c1d7271415c2a74f8a6f
parent891985fa8e08d0c625ee71096fc3d10350eb051b
iwlwifi: mvm: don't allow sched scans without matches to be started

[ Upstream commit 5e56276e7555b34550d51459a801ff75eca8b907 ]

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

Cc: <stable@vger.kernel.org> [3.17+]
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
[SL: Backport to 4.1]
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
drivers/net/wireless/iwlwifi/mvm/mac80211.c