wlan: support active/passive scan selection via DRIVER command
The wlan driver currently supports switching between active and
passive scanning behavior via a private wireless entensions API.
Port this support to the device ioctl so that the behavior can
be controlled via the wpa_cli DRIVER command.
Change-Id: Ie50bf1280977473d86b672c11acfc88037b1a7ae
CRs-fixed: 490348
diff --git a/CORE/HDD/src/wlan_hdd_main.c b/CORE/HDD/src/wlan_hdd_main.c
index 605b712..7045bb2 100644
--- a/CORE/HDD/src/wlan_hdd_main.c
+++ b/CORE/HDD/src/wlan_hdd_main.c
@@ -2052,6 +2052,14 @@
pAdapter->macAddressCurrent.bytes);
}
}
+ else if (strncmp(command, "SCAN-ACTIVE", 11) == 0)
+ {
+ pHddCtx->scan_info.scan_mode = eSIR_ACTIVE_SCAN;
+ }
+ else if (strncmp(command, "SCAN-PASSIVE", 12) == 0)
+ {
+ pHddCtx->scan_info.scan_mode = eSIR_PASSIVE_SCAN;
+ }
else {
hddLog( VOS_TRACE_LEVEL_WARN, "%s: Unsupported GUI command %s",
__func__, command);