nl80211: add api to abort a scan request on tx
authorSam Leffler <sleffler@chromium.org>
Mon, 23 May 2011 21:34:14 +0000 (14:34 -0700)
committerGrant Grundler <grundler@google.com>
Thu, 24 May 2012 22:17:14 +0000 (15:17 -0700)
commitfcd5eb5f7c0d1a5f5eeec3539f2b9a36562fea03
treed764b04ba9bd3aefdcaad094a8f1bb52851afd5f
parent337a216266fc25c1f0c24457810e83b89ab97d97
nl80211: add api to abort a scan request on tx

Add NL80211_ATTR_SCAN_FLAGS to nl80211's NL80211_CMD_TRIGGER_SCAN and
define a flag to indicate outbound traffic should abort a scan request.

Signed-off-by: sleffler@chromium.org
BUG=chromium-os:11485
TEST=manual:run iw event -f in the background; run ping -i .25 <host>; wait for wpa_supplicant to issue a bgscan; note that the scan is aborted due to the ping; issue iw dev wlan0 scan and note the scan is not aborted and the ping packets are noticeably delayed

Change-Id: I27050f0e7b0485e2bc52f4dbd7fec9125436e238
Reviewed-on: http://gerrit.chromium.org/gerrit/5744
Reviewed-by: Gary Morain <gmorain@chromium.org>
Reviewed-by: Paul Stewart <pstew@chromium.org>
Commit-Ready: Sam Leffler <sleffler@chromium.org>
Tested-by: Sam Leffler <sleffler@chromium.org>
include/linux/nl80211.h
net/wireless/nl80211.c