Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[beken-72xx] Allow connecting to specific BSSID if provided #209

Merged
merged 13 commits into from
Jan 6, 2024
Prev Previous commit
Next Next commit
Apply suggestions from code review
  • Loading branch information
kuba2k2 authored Jan 3, 2024
commit ddc9cdbad16ca1d9e5131bb92e724f1c7731b4f0
2 changes: 0 additions & 2 deletions cores/beken-72xx/arduino/libraries/WiFi/WiFiSTA.cpp
Original file line number Diff line number Diff line change
@@ -15,7 +15,6 @@ WiFiClass::begin(const char *ssid, const char *passphrase, int32_t channel, cons

if (bssid) {
strcpy(STA_ADV_CFG.ap_info.ssid, ssid);
memcpy(STA_ADV_CFG.ap_info.bssid, bssid, 6);
if (passphrase) {
strcpy(STA_ADV_CFG.key, passphrase);
STA_ADV_CFG.key_len = strlen(passphrase);
@@ -27,7 +26,6 @@ WiFiClass::begin(const char *ssid, const char *passphrase, int32_t channel, cons
STA_ADV_CFG.wifi_retry_interval = 100;
} else {
strcpy(STA_CFG.wifi_ssid, ssid);
memset(STA_CFG.wifi_bssid, 0x00, 6);
if (passphrase) {
strcpy(STA_CFG.wifi_key, passphrase);
} else {
Loading