aboutsummaryrefslogtreecommitdiffstats
path: root/package/kernel/mac80211/files/lib/netifd
diff options
context:
space:
mode:
authorJohn Crispin <john@openwrt.org>2015-01-28 12:07:08 +0000
committerJohn Crispin <john@openwrt.org>2015-01-28 12:07:08 +0000
commite0aaac84349638c6fa0fff4a238d8e79caf52def (patch)
tree9f192c45188300a3a400823ebaba15b1c16af3aa /package/kernel/mac80211/files/lib/netifd
parentf28370039680f1feb9afcba6e7b6ebc3f0124373 (diff)
downloadupstream-e0aaac84349638c6fa0fff4a238d8e79caf52def.tar.gz
upstream-e0aaac84349638c6fa0fff4a238d8e79caf52def.tar.bz2
upstream-e0aaac84349638c6fa0fff4a238d8e79caf52def.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> SVN-Revision: 44172
Diffstat (limited to 'package/kernel/mac80211/files/lib/netifd')
0 files changed, 0 insertions, 0 deletions