|
@@ -6,6 +6,7 @@
|
|
|
* Change Logs:
|
|
|
* Date Author Notes
|
|
|
* 2018-08-06 tyx the first version
|
|
|
+ * 2023-12-12 Evlers add the wlan join scan function
|
|
|
*/
|
|
|
|
|
|
#include <rthw.h>
|
|
@@ -858,7 +859,7 @@ static void rt_wlan_join_scan_callback(int event, struct rt_wlan_buff *buff, voi
|
|
|
info->ssid.len == tgt_info->ssid.len)
|
|
|
{
|
|
|
/*Get the rssi the max ap*/
|
|
|
- if(info->rssi > tgt_info->rssi)
|
|
|
+ if((info->rssi > tgt_info->rssi) || (tgt_info->rssi == 0))
|
|
|
{
|
|
|
tgt_info->security = info->security;
|
|
|
tgt_info->band = info->band;
|