mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-11-28 18:28:23 -05:00
DPP: Support DPP key_mgmt saving to wpa_supplicant configuration
In the existing code, there was no "DPP" string available to the DPP key management type for configuration parser of wpa supplicant. When the configuration is saved, the key management string was left out from the config file. Fix this by adding support for writing key_mgmt=DPP option. Signed-off-by: Rohit Damodaran <Rohit_Damodaran@comcast.com>
This commit is contained in:
parent
3a80672e22
commit
ad6a92472d
@ -1043,6 +1043,18 @@ static char * wpa_config_write_key_mgmt(const struct parse_data *data,
|
||||
#endif /* CONFIG_IEEE80211R */
|
||||
#endif /* CONFIG_FILS */
|
||||
|
||||
#ifdef CONFIG_DPP
|
||||
if (ssid->key_mgmt & WPA_KEY_MGMT_DPP) {
|
||||
ret = os_snprintf(pos, end - pos, "%sDPP",
|
||||
pos == buf ? "" : " ");
|
||||
if (os_snprintf_error(end - pos, ret)) {
|
||||
end[-1] = '\0';
|
||||
return buf;
|
||||
}
|
||||
pos += ret;
|
||||
}
|
||||
#endif /* CONFIG_DPP */
|
||||
|
||||
if (pos == buf) {
|
||||
os_free(buf);
|
||||
buf = NULL;
|
||||
|
Loading…
Reference in New Issue
Block a user