aboutsummaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@nbd.name>2021-06-24 15:56:12 +0200
committerFelix Fietkau <nbd@nbd.name>2021-06-24 15:56:46 +0200
commit1818b038d7275273adbd525b5ee76bc60b7d628c (patch)
treee380e0b82275f83d240514e66fbf123ab863fe63 /package
parent3342d574be08db8926273678291497769d2365e9 (diff)
downloadupstream-1818b038d7275273adbd525b5ee76bc60b7d628c.tar.gz
upstream-1818b038d7275273adbd525b5ee76bc60b7d628c.tar.bz2
upstream-1818b038d7275273adbd525b5ee76bc60b7d628c.zip
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@nbd.name>
Diffstat (limited to 'package')
-rw-r--r--package/network/services/hostapd/files/hostapd.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/package/network/services/hostapd/files/hostapd.sh b/package/network/services/hostapd/files/hostapd.sh
index a32e1652ac..7d035a299b 100644
--- a/package/network/services/hostapd/files/hostapd.sh
+++ b/package/network/services/hostapd/files/hostapd.sh
@@ -298,6 +298,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
@@ -529,7 +530,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 proxy_arp 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
@@ -577,6 +579,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"