We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e61ee79 commit 5498366Copy full SHA for 5498366
netutils/esp8266/esp8266.c
@@ -1123,6 +1123,7 @@ static int lesp_parse_cwjap_ans_line(char *ptr, lesp_ap_t *ap)
1123
* "FreeWifi" => ssid
1124
* -90 => rssi
1125
* "00:07:cb:07:b6:00" => mac
1126
+ * 1 => channel
1127
*
1128
* Note: Content of ptr is modified and string in ap point into ptr string.
1129
@@ -1220,6 +1221,14 @@ static int lesp_parse_cwlap_ans_line(char *ptr, lesp_ap_t *ap)
1220
1221
}
1222
1223
break;
1224
+
1225
+ case 5:
1226
+ {
1227
+ int i = atoi(ptr);
1228
1229
+ ap->channel = i;
1230
+ }
1231
+ break;
1232
1233
1234
ptr = ptr_next + 1;
0 commit comments