[openwrt/openwrt] hostapd: add support for providing vendor specific IE elements

LEDE Commits lede-commits at lists.infradead.org
Tue Nov 23 09:44:45 PST 2021


nbd pushed a commit to openwrt/openwrt.git, branch openwrt-21.02:
https://git.openwrt.org/0243f094659be149cf1128b9d03b6e20ae6b920d

commit 0243f094659be149cf1128b9d03b6e20ae6b920d
Author: Felix Fietkau <nbd at nbd.name>
AuthorDate: Thu Jun 24 15:56:12 2021 +0200

    hostapd: add support for providing vendor specific IE elements
    
    They can be added as hex digit strings via the 'vendor_elements' option
    
    Signed-off-by: Felix Fietkau <nbd at nbd.name>
    (cherry-picked from commit 1818b038d7275273adbd525b5ee76bc60b7d628c)
---
 package/network/services/hostapd/files/hostapd.sh | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/package/network/services/hostapd/files/hostapd.sh b/package/network/services/hostapd/files/hostapd.sh
index c61654e6e8..e4812c9ee5 100644
--- a/package/network/services/hostapd/files/hostapd.sh
+++ b/package/network/services/hostapd/files/hostapd.sh
@@ -292,6 +292,7 @@ hostapd_common_add_bss_config() {
 	config_add_boolean wnm_sleep_mode wnm_sleep_mode_no_keys bss_transition
 	config_add_int time_advertisement
 	config_add_string time_zone
+	config_add_string vendor_elements
 
 	config_add_boolean ieee80211k rrm_neighbor_report rrm_beacon_report
 
@@ -521,7 +522,8 @@ hostapd_set_bss_options() {
 		multi_ap multi_ap_backhaul_ssid multi_ap_backhaul_key skip_inactivity_poll \
 		airtime_bss_weight airtime_bss_limit airtime_sta_weight \
 		multicast_to_unicast per_sta_vif \
-		eap_server eap_user_file ca_cert server_cert private_key private_key_passwd server_id
+		eap_server eap_user_file ca_cert server_cert private_key private_key_passwd server_id \
+		vendor_elements
 
 	set_default isolate 0
 	set_default maxassoc 0
@@ -569,6 +571,7 @@ hostapd_set_bss_options() {
 	append bss_conf "uapsd_advertisement_enabled=$uapsd" "$N"
 	append bss_conf "utf8_ssid=$utf8_ssid" "$N"
 	append bss_conf "multi_ap=$multi_ap" "$N"
+	[ -n "$vendor_elements" ] && append bss_conf "vendor_elements=$vendor_elements" "$N"
 
 	[ "$tdls_prohibit" -gt 0 ] && append bss_conf "tdls_prohibit=$tdls_prohibit" "$N"
 



More information about the lede-commits mailing list