hostapd: Add alternative format for configuring SSID
The new ssid2 parameter can be used as an alternative mechanism for configuring SSID for hostapd. It uses the same formats that wpa_supplicant uses in the configuration file for strings. Signed-hostap: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
b87d70c88a
commit
e122bb70b8
6 changed files with 44 additions and 16 deletions
|
@ -566,3 +566,15 @@ char * wpa_config_parse_string(const char *value, size_t *len)
|
|||
return (char *) str;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
int is_hex(const u8 *data, size_t len)
|
||||
{
|
||||
size_t i;
|
||||
|
||||
for (i = 0; i < len; i++) {
|
||||
if (data[i] < 32 || data[i] >= 127)
|
||||
return 1;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
|
|
@ -447,6 +447,7 @@ size_t printf_decode(u8 *buf, size_t maxlen, const char *str);
|
|||
const char * wpa_ssid_txt(const u8 *ssid, size_t ssid_len);
|
||||
|
||||
char * wpa_config_parse_string(const char *value, size_t *len);
|
||||
int is_hex(const u8 *data, size_t len);
|
||||
|
||||
static inline int is_zero_ether_addr(const u8 *a)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue