cwespressif commented on a change in pull request #3793:
URL: https://github.com/apache/incubator-nuttx/pull/3793#discussion_r641917971
##########
File path: arch/risc-v/src/esp32c3/esp32c3_wifi_utils.c
##########
@@ -143,6 +154,36 @@ int esp_wifi_start_scan(struct iwreq *iwr)
config->ssid = &target_ssid[0];
config->ssid[req->essid_len] = '\0';
}
+
+ if (iwr->u.data.flags & IW_SCAN_THIS_FREQ &&
+ req->num_channels > 0)
+ {
+ /* Scan specific channels */
+
+ if (req->num_channels == 1)
+ {
+ config->channel = req->channel_list[0].m;
+ g_channel_num = req->num_channels;
+ }
+ else
+ {
+ DEBUGASSERT(req->num_channels <= CHANNEL_MAX_NUM);
+ for (i = 0; i < req->num_channels; i++)
+ {
+ g_channel_num = req->num_channels;
+ g_channel_list[i] = req->channel_list[i].m;
+ }
Review comment:
Done
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]