Merge pull request #2943 from enkiller/wlan
[components][drivers][wlan] WLAN 支持被动扫描
This commit is contained in:
commit
94b0b0cd2c
|
@ -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_min = -1;
|
||||||
scan_info.channel_max = -1;
|
scan_info.channel_max = -1;
|
||||||
}
|
}
|
||||||
|
scan_info.passive = info->hidden ? RT_TRUE : RT_FALSE;
|
||||||
p_scan_info = &scan_info;
|
p_scan_info = &scan_info;
|
||||||
}
|
}
|
||||||
result = rt_device_control(RT_DEVICE(device), RT_WLAN_CMD_SCAN, p_scan_info);
|
result = rt_device_control(RT_DEVICE(device), RT_WLAN_CMD_SCAN, p_scan_info);
|
||||||
|
|
|
@ -476,6 +476,7 @@ struct rt_scan_info
|
||||||
rt_uint8_t bssid[6];
|
rt_uint8_t bssid[6];
|
||||||
rt_int16_t channel_min;
|
rt_int16_t channel_min;
|
||||||
rt_int16_t channel_max;
|
rt_int16_t channel_max;
|
||||||
|
rt_bool_t passive;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct rt_wlan_dev_ops
|
struct rt_wlan_dev_ops
|
||||||
|
|
Loading…
Reference in New Issue