summaryrefslogtreecommitdiffstats
path: root/package/hostapd-rtk/files/realtek.sh
diff options
context:
space:
mode:
authorRoman Yeryomin <roman@advem.lv>2014-03-11 00:56:25 +0200
committerRoman Yeryomin <roman@advem.lv>2014-03-11 00:56:25 +0200
commitc98eff7a7e5f1bbb3250d745f128fde6b6dda38a (patch)
treec6cdb538570ee1bfb61d048d6525d0e42df0a424 /package/hostapd-rtk/files/realtek.sh
parent68861cc62872ac7a2cf40acc70c4a8688660bc8e (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/realtek.sh')
-rwxr-xr-xpackage/hostapd-rtk/files/realtek.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/package/hostapd-rtk/files/realtek.sh b/package/hostapd-rtk/files/realtek.sh
index 27ba1f1e2..092d7843c 100755
--- a/package/hostapd-rtk/files/realtek.sh
+++ b/package/hostapd-rtk/files/realtek.sh
@@ -304,7 +304,7 @@ detect_realtek() {
config wifi-device wlan$devidx
option type realtek
option channel 11
- option macaddr $(cat /sys/class/net/${dev}/address)
+ option macaddr $(rtkmib --get wmac0)
#TODO: enable after realtek merge with hostapd
#option hwmode 11ng
option htmode HT40-