arjenhiemstra/ithowifi

Cannot switch off AP mode

Closed this issue · 1 comments

Describe the bug
After firmware upgrade to 2.7.2, AP mode suddenly went on. I try to switch it off by setting the AP timeout to zero, but it remains in Active state, even after a reboot.

To Reproduce
Happens always.

Expected behaviour
AP mode switched off after setting AP timeout to zero

Screenshots
image

Device information

  • Firmware version 2.7.2
  • Hardware revision cve 2
  • Type/model number Itho (on sticker outside the box)
  • CC1101 RF module enabled no
  • In case of wifi issues, wifi access point make and model: Meraki MR33,42

Desktop (please complete the following information):

  • OS: [e.g. iOS] Windows
  • Browser [e.g. chrome, safari] Edge
  • Version [e.g. 22] latest

Thanks for spotting this! I found the issue:

setupWiFigeneric();
if (!loadWifiConfig("flash"))
{
E_LOG("Setup: Wifi config load failed");
}

The order is wrong here. setupWiFigeneric call should be after config load...
This was apparently masked by an immediate shutdown of the AP code somewhere else in the code but that is not triggered anymore in 2.7.2 due to some other changes.

I'll fix the issue and release 2.7.3 probably later today.