mac80211: Don't echo missing physical device errors to wireless config file
authorVasilis Tsiligiannis <acinonyx@openwrt.gr>
Tue, 22 Dec 2009 21:45:08 +0000 (21:45 +0000)
committerVasilis Tsiligiannis <acinonyx@openwrt.gr>
Tue, 22 Dec 2009 21:45:08 +0000 (21:45 +0000)
SVN-Revision: 18896

package/mac80211/files/lib/wifi/mac80211.sh

index 6d144a95c9eda831ea07d0c493b4f0b76d719a53..adfd948db5c6333173a1a94b0d439c18336ed2b1 100644 (file)
@@ -281,7 +281,7 @@ enable_mac80211() {
 check_device() {
        config_get phy "$1" phy
        [ -z "$phy" ] && {
-               find_mac80211_phy "$1" || return 0
+               find_mac80211_phy "$1" >/dev/null || return 0
                config_get phy "$1" phy
        }
        [ "$phy" = "$dev" ] && found=1