projects
/
openwrt
/
staging
/
wigyori.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
df9275b
)
mac80211: fix check for existing config section from r48426
author
Felix Fietkau
<nbd@openwrt.org>
Thu, 21 Jan 2016 15:51:52 +0000
(15:51 +0000)
committer
Felix Fietkau
<nbd@openwrt.org>
Thu, 21 Jan 2016 15:51:52 +0000
(15:51 +0000)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 48439
package/kernel/mac80211/files/lib/wifi/mac80211.sh
patch
|
blob
|
history
diff --git
a/package/kernel/mac80211/files/lib/wifi/mac80211.sh
b/package/kernel/mac80211/files/lib/wifi/mac80211.sh
index 1be99ec22b07e2d3e03ca985a0ec037854cd31a3..92a9fce74468beb60d67401afef0f4c117079584 100644
(file)
--- a/
package/kernel/mac80211/files/lib/wifi/mac80211.sh
+++ b/
package/kernel/mac80211/files/lib/wifi/mac80211.sh
@@
-9,9
+9,9
@@
lookup_phy() {
local devpath
config_get devpath "$device" path
[ -n "$devpath" ] && {
- for
_phy in /sys/devices/$devpath/ieee80211/phy*
; do
- case "$(readlink -f /sys/class/ieee80211/$
_
phy/device)" in
- *$devpath) return
0
;;
+ for
phy in $(ls /sys/class/ieee80211 2>/dev/null)
; do
+ case "$(readlink -f /sys/class/ieee80211/$phy/device)" in
+ *$devpath) return;;
esac
done
}