From c98eff7a7e5f1bbb3250d745f128fde6b6dda38a Mon Sep 17 00:00:00 2001 From: Roman Yeryomin Date: Tue, 11 Mar 2014 00:56:25 +0200 Subject: Read wifi calibration data and MAC address from MIB. Signed-off-by: Roman Yeryomin --- package/hostapd-rtk/files/hostapd.sh | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'package/hostapd-rtk/files/hostapd.sh') diff --git a/package/hostapd-rtk/files/hostapd.sh b/package/hostapd-rtk/files/hostapd.sh index 45ce0af07..b977db81e 100644 --- a/package/hostapd-rtk/files/hostapd.sh +++ b/package/hostapd-rtk/files/hostapd.sh @@ -279,6 +279,7 @@ hostapd_setup_vif() { local vif="$1" local driver="$2" local ifname device channel hwmode + local calibration hostapd_cfg= @@ -316,6 +317,11 @@ hostapd_setup_vif() { # enable Space-Time Block Coding for better throughput append hostapd_cfg "stbc=1" "$N" + + #TODO: make hostapd immune to invalid options + # just skip pwrlevel5G for now + calibration=$(rtkmib --get wcal | grep -v pwrlevel5G) + append hostapd_cfg "$calibration" "$N" fi case "$hwmode" in -- cgit v1.2.3