aboutsummaryrefslogtreecommitdiffstats
path: root/docs/network.tex
diff options
context:
space:
mode:
authorJohn Crispin <blogic@openwrt.org>2015-01-28 12:07:08 +0000
committerJohn Crispin <blogic@openwrt.org>2015-01-28 12:07:08 +0000
commit49ec79e12616a1b221acef6a1bf111c86fc329c5 (patch)
treef8edf0524e982284f23a287aa61eee4f4663b921 /docs/network.tex
parent27c1ce0c378467fb21e04248c19894d605204fa7 (diff)
downloadmaster-187ad058-49ec79e12616a1b221acef6a1bf111c86fc329c5.tar.gz
master-187ad058-49ec79e12616a1b221acef6a1bf111c86fc329c5.tar.bz2
master-187ad058-49ec79e12616a1b221acef6a1bf111c86fc329c5.zip
mac80211: fix fallback to macaddr
If '/sys/class/ieee80211/phyN' is not a symlink, the call to readlink produces either an empty path (if /sys/class/ieee80211/phyN/device doesn't exist) or a path that begins with '/sys/class/ieee80211' (which does not work with the subsequent line to strip '/sys/devices' from the beginning of the path). Modify the checks to detect these conditions, and fallback to using the macaddr. Signed-off-by: Nathan Hintz <nlhintz@hotmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44172 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'docs/network.tex')
0 files changed, 0 insertions, 0 deletions