diff options
author | Gatis Paeglis <gatis.paeglis@theqtcompany.com> | 2016-01-18 12:41:54 +0100 |
---|---|---|
committer | Gatis Paeglis <gatis.paeglis@theqtcompany.com> | 2016-01-25 09:13:47 +0000 |
commit | c82dd728746f3df9ededdd3beb651dd97449c6d2 (patch) | |
tree | f4535c9793dc0e828f9b6f9c5798ac8616e34954 /src/wifi/qwifisupplicant_p.h | |
parent | ccbfa0884072c26979a6475de71635c19a474cca (diff) |
Fix SSID decoding
Allocate sufficient buffer size.
Change-Id: Id2c885d132814553a93b9baa026fa044d667527b
Task-number: QTEE-1038
Reviewed-by: Teemu Holappa <teemu.holappa@theqtcompany.com>
Diffstat (limited to 'src/wifi/qwifisupplicant_p.h')
-rw-r--r-- | src/wifi/qwifisupplicant_p.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/wifi/qwifisupplicant_p.h b/src/wifi/qwifisupplicant_p.h index f904925..3b18380 100644 --- a/src/wifi/qwifisupplicant_p.h +++ b/src/wifi/qwifisupplicant_p.h @@ -43,12 +43,10 @@ public: void closeSupplicantConnection(); int waitForEvent(char *buf, size_t buflen); bool sendCommand(const QString &command, QByteArray *reply); - static QString decodeHexEncoded(const QString &encoded); + static QString decodeSsid(const QString &encoded); protected: int receiveEvent(char *reply, size_t *reply_len); - static int hex2num(char c); - static int hex2byte(const char *hex); private: wpa_ctrl *ctrl_conn; |