mirror of https://github.com/ARMmbed/mbed-os.git
Merge pull request #8566 from u-blox/github8520issue
Wifi: ublox fix to keep the credentials storedpull/8590/head
commit
1bbcfff8f3
|
@ -220,8 +220,8 @@ nsapi_error_t OdinWiFiInterface::set_credentials(const char *ssid, const char *p
|
|||
osStatus res = _mutex.lock();
|
||||
MBED_ASSERT(res == osOK);
|
||||
|
||||
_sta.ssid = ssid;
|
||||
_sta.passwd = pass;
|
||||
strncpy(_sta.ssid, ssid, cbWLAN_SSID_MAX_LENGTH);
|
||||
strncpy(_sta.passwd, pass, cbWLAN_MAX_PASSPHRASE_LENGTH);
|
||||
_sta.security = security;
|
||||
|
||||
res = _mutex.unlock();
|
||||
|
|
|
@ -262,8 +262,8 @@ private:
|
|||
};
|
||||
|
||||
struct sta_s {
|
||||
const char *ssid;
|
||||
const char *passwd;
|
||||
char ssid[cbWLAN_SSID_MAX_LENGTH];
|
||||
char passwd[cbWLAN_MAX_PASSPHRASE_LENGTH];
|
||||
nsapi_security_t security;
|
||||
uint8_t channel;
|
||||
int timeout_ms;
|
||||
|
|
Loading…
Reference in New Issue