mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-19 13:48:06 +00:00
mac80211: fix check for existing config section from r48426
Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 48439
This commit is contained in:
parent
df9275b25e
commit
d13a1ce9d7
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user