summaryrefslogtreecommitdiff
path: root/components
diff options
context:
space:
mode:
authortangyuxin <[email protected]>2019-08-11 15:17:04 +0800
committertangyuxin <[email protected]>2019-08-11 15:17:04 +0800
commit70dd41d24bfba6e45755a4a4c1309041222ca712 (patch)
tree630b68e612b715ab357cb69b870a054a5a8648a4 /components
parent882ba628bc0b43eb5ad1414180c3c4029d3f508b (diff)
[components][drivers][wlan] WLAN 支持被动扫描
Diffstat (limited to 'components')
-rw-r--r--components/drivers/wlan/wlan_dev.c1
-rw-r--r--components/drivers/wlan/wlan_dev.h1
2 files changed, 2 insertions, 0 deletions
diff --git a/components/drivers/wlan/wlan_dev.c b/components/drivers/wlan/wlan_dev.c
index 375b27fb10..cbfd50a6c3 100644
--- a/components/drivers/wlan/wlan_dev.c
+++ b/components/drivers/wlan/wlan_dev.c
@@ -545,6 +545,7 @@ rt_err_t rt_wlan_dev_scan(struct rt_wlan_device *device, struct rt_wlan_info *in
scan_info.channel_min = -1;
scan_info.channel_max = -1;
}
+ scan_info.passive = info->hidden ? RT_TRUE : RT_FALSE;
p_scan_info = &scan_info;
}
result = rt_device_control(RT_DEVICE(device), RT_WLAN_CMD_SCAN, p_scan_info);
diff --git a/components/drivers/wlan/wlan_dev.h b/components/drivers/wlan/wlan_dev.h
index 96b22bc456..43d6506d6f 100644
--- a/components/drivers/wlan/wlan_dev.h
+++ b/components/drivers/wlan/wlan_dev.h
@@ -476,6 +476,7 @@ struct rt_scan_info
rt_uint8_t bssid[6];
rt_int16_t channel_min;
rt_int16_t channel_max;
+ rt_bool_t passive;
};
struct rt_wlan_dev_ops