From fe8a6dd2991d54c3eb84cb12764c1316d19bac4e Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Thu, 14 Jun 2012 18:48:33 +0200 Subject: ignore mac80211 devices specified in /etc/config/network --- system-linux.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'system-linux.c') diff --git a/system-linux.c b/system-linux.c index c7b8b8f..ceb5ac5 100644 --- a/system-linux.c +++ b/system-linux.c @@ -769,6 +769,16 @@ static void system_add_link_modes(struct blob_buf *b, __u32 mask) } } +bool +system_if_force_external(const char *ifname) +{ + char buf[64]; + struct stat s; + + snprintf(buf, sizeof(buf), "/sys/class/net/%s/phy80211", ifname); + return stat(buf, &s) == 0; +} + int system_if_dump_info(struct device *dev, struct blob_buf *b) { -- cgit v1.2.3