mirror of
https://github.com/SpacehuhnTech/esp8266_deauther.git
synced 2025-12-22 07:10:51 -08:00
Fixed mac setting
This commit is contained in:
@@ -686,11 +686,11 @@ void SerialInterface::runCommand(String input) {
|
|||||||
uint8_t mac[6];
|
uint8_t mac[6];
|
||||||
|
|
||||||
prnt(CLI_SYSTEM_AP_MAC);
|
prnt(CLI_SYSTEM_AP_MAC);
|
||||||
wifi_get_macaddr(0x01, mac);
|
wifi_get_macaddr(SOFTAP_IF, mac);
|
||||||
prntln(macToStr(mac));
|
prntln(macToStr(mac));
|
||||||
|
|
||||||
prnt(CLI_SYSTEM_ST_MAC);
|
prnt(CLI_SYSTEM_ST_MAC);
|
||||||
wifi_get_macaddr(0x00, mac);
|
wifi_get_macaddr(STATION_IF, mac);
|
||||||
prntln(macToStr(mac));
|
prntln(macToStr(mac));
|
||||||
|
|
||||||
FSInfo fs_info;
|
FSInfo fs_info;
|
||||||
|
|||||||
@@ -93,8 +93,8 @@ void Settings::reset() {
|
|||||||
setWebSpiffs(false);
|
setWebSpiffs(false);
|
||||||
setLedEnabled(true);
|
setLedEnabled(true);
|
||||||
setMaxCh(14);
|
setMaxCh(14);
|
||||||
wifi_get_macaddr(0x00, macSt);
|
wifi_get_macaddr(STATION_IF, macSt);
|
||||||
wifi_get_macaddr(0x01, macAP);
|
wifi_get_macaddr(SOFTAP_IF, macAP);
|
||||||
|
|
||||||
// SCAN
|
// SCAN
|
||||||
setChTime(384);
|
setChTime(384);
|
||||||
|
|||||||
@@ -83,6 +83,12 @@ void setup() {
|
|||||||
// get time
|
// get time
|
||||||
currentTime = millis();
|
currentTime = millis();
|
||||||
|
|
||||||
|
// load settings
|
||||||
|
settings.load();
|
||||||
|
|
||||||
|
// set mac for access point
|
||||||
|
wifi_set_macaddr(SOFTAP_IF, settings.getMacAP());
|
||||||
|
|
||||||
// start WiFi
|
// start WiFi
|
||||||
WiFi.mode(WIFI_OFF);
|
WiFi.mode(WIFI_OFF);
|
||||||
wifi_set_opmode(STATION_MODE);
|
wifi_set_opmode(STATION_MODE);
|
||||||
@@ -90,8 +96,8 @@ void setup() {
|
|||||||
scan.sniffer(buf, len);
|
scan.sniffer(buf, len);
|
||||||
});
|
});
|
||||||
|
|
||||||
// load settings
|
// set mac for station
|
||||||
settings.load();
|
wifi_set_macaddr(STATION_IF, settings.getMacSt());
|
||||||
|
|
||||||
// start display
|
// start display
|
||||||
if (settings.getDisplayInterface()){
|
if (settings.getDisplayInterface()){
|
||||||
|
|||||||
Reference in New Issue
Block a user