The [datasheet](https://www.espressif.com/sites/default/files/documentation/2c-esp8266_non_os_sdk_api_reference_en.pdf) page 89 describes prototype: `uint8 wifi_get_channel(void)` The source code returns `int32_t`: https://github.com/esp8266/Arduino/blob/bc2b13ae1691f94f9844fa1b0a740cda12107dae/libraries/ESP8266WiFi/src/ESP8266WiFiGeneric.cpp#L257 Proposal to change prototype to: ```c++ uint8_t ESP8266WiFiGenericClass::channel(void); ```