Skip to content
Snippets Groups Projects
Commit d13a1ce9 authored by Felix Fietkau's avatar Felix Fietkau
Browse files

mac80211: fix check for existing config section from r48426


Signed-off-by: default avatarFelix Fietkau <nbd@openwrt.org>

SVN-Revision: 48439
parent df9275b2
No related branches found
No related tags found
No related merge requests found
...@@ -9,9 +9,9 @@ lookup_phy() { ...@@ -9,9 +9,9 @@ lookup_phy() {
local devpath local devpath
config_get devpath "$device" path config_get devpath "$device" path
[ -n "$devpath" ] && { [ -n "$devpath" ] && {
for _phy in /sys/devices/$devpath/ieee80211/phy*; do for phy in $(ls /sys/class/ieee80211 2>/dev/null); do
case "$(readlink -f /sys/class/ieee80211/$_phy/device)" in case "$(readlink -f /sys/class/ieee80211/$phy/device)" in
*$devpath) return 0;; *$devpath) return;;
esac esac
done done
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment