enum wifi_bandwidth_t not complete
Posted: Thu Dec 22, 2016 8:29 pm
Hi,
esp_err_t esp_wifi_get_bandwidth(wifi_interface_t ifx, wifi_bandwidth_t *bw);
wifi_bandwidth_t sta_wifi_bandwidth;
esp_wifi_get_bandwidth(WIFI_IF_STA, &sta_wifi_bandwidth);
printf("debug: value is %u"
,sta_wifi_bandwidth);
result-> debug: value is 2
same for AP_IF
typedef enum {
WIFI_BW_HT20 = 0, /* Bandwidth is HT20 */
WIFI_BW_HT40, /* Bandwidth is HT40 */
WIFI_???????, /* enum for value 2 is missing */
} wifi_bandwidth_t;
esp_err_t esp_wifi_get_bandwidth(wifi_interface_t ifx, wifi_bandwidth_t *bw);
wifi_bandwidth_t sta_wifi_bandwidth;
esp_wifi_get_bandwidth(WIFI_IF_STA, &sta_wifi_bandwidth);
printf("debug: value is %u"
,sta_wifi_bandwidth);
result-> debug: value is 2
same for AP_IF
typedef enum {
WIFI_BW_HT20 = 0, /* Bandwidth is HT20 */
WIFI_BW_HT40, /* Bandwidth is HT40 */
WIFI_???????, /* enum for value 2 is missing */
} wifi_bandwidth_t;