]> granicus.if.org Git - esp-idf/commitdiff
wifi: fix issue in setting channel before sniffer is enabled
authorqiyueixa <qiyuexia@espressif.com>
Fri, 24 Feb 2017 07:19:31 +0000 (15:19 +0800)
committerqiyueixa <qiyuexia@espressif.com>
Fri, 24 Feb 2017 07:19:31 +0000 (15:19 +0800)
components/esp32/include/esp_wifi.h
components/esp32/lib

index 0f7e2996e8bb09644b23fc6715a8875984672a77..9f3b1ed70d2d79711872c24233636db3116114df 100755 (executable)
@@ -422,6 +422,7 @@ esp_err_t esp_wifi_get_bandwidth(wifi_interface_t ifx, wifi_bandwidth_t *bw);
   * @brief     Set primary/secondary channel of ESP32
   *
   * @attention 1. This is a special API for sniffer
+  * @attention 2. This API should be called after esp_wifi_start() or esp_wifi_set_promiscuous()
   *
   * @param     primary  for HT20, primary is the channel number, for HT40, primary is the primary channel
   * @param     second   for HT20, second is ignored, for HT40, second is the second channel
index ed85cf9156f2ef358c29d07fb849a73c5758eecb..0be74cb72fba4502a685c9f0df26689592018f78 160000 (submodule)
@@ -1 +1 @@
-Subproject commit ed85cf9156f2ef358c29d07fb849a73c5758eecb
+Subproject commit 0be74cb72fba4502a685c9f0df26689592018f78