[PATCH] Support for DPP key-type while saving supplicant configuration

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 NULL in the wpa_supplicant config file. Adding support for DPP in key-type in key management.


Signed-off-by: Rohit Damodaran <Rohit_Damodaran@xxxxxxxxxxx>
---
 wpa_supplicant/config.c | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/wpa_supplicant/config.c b/wpa_supplicant/config.c
index c43960697..a05f5b432 100644
--- a/wpa_supplicant/config.c
+++ b/wpa_supplicant/config.c
@@ -1002,6 +1002,18 @@ static char * wpa_config_write_key_mgmt(const struct parse_data *data,
     }
 #endif /* CONFIG_SUITEB192 */
 
+#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 */
+
 #ifdef CONFIG_FILS
     if (ssid->key_mgmt & WPA_KEY_MGMT_FILS_SHA256) {
         ret = os_snprintf(pos, end - pos, "%sFILS-SHA256",
-- 
2.14.1


    
_______________________________________________
Hostap mailing list
Hostap@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/hostap




[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux