diff options
author | Roman Yeryomin <roman@advem.lv> | 2014-03-11 00:56:25 +0200 |
---|---|---|
committer | Roman Yeryomin <roman@advem.lv> | 2014-03-11 00:56:25 +0200 |
commit | c98eff7a7e5f1bbb3250d745f128fde6b6dda38a (patch) | |
tree | c6cdb538570ee1bfb61d048d6525d0e42df0a424 /package/hostapd-rtk/files/hostapd.sh | |
parent | 68861cc62872ac7a2cf40acc70c4a8688660bc8e (diff) |
Read wifi calibration data and MAC address from MIB.
Signed-off-by: Roman Yeryomin <roman@advem.lv>
Diffstat (limited to 'package/hostapd-rtk/files/hostapd.sh')
-rw-r--r-- | package/hostapd-rtk/files/hostapd.sh | 6 |
1 files changed, 6 insertions, 0 deletions
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 |