summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2014-09-15 23:05:20 +0000
committerRoy Marples <roy@marples.name>2014-09-15 23:05:20 +0000
commitf7d83c0dfcb2f59cdff41e7892ea507ecac2f639 (patch)
tree504bac22905dac5aa4a8810bc151ea0b23c1d6cc /configure
parent2e21d85f7a63e938b34c11cde49c380ee8ccd183 (diff)
downloaddhcpcd-f7d83c0dfcb2f59cdff41e7892ea507ecac2f639.tar.xz
It's possible to configure a Linux kernel with nl80211 where the
SSID won't be reported, but is available via WEXT. This is very silly, but dhcpcd still needs to work. Thus enable both protocols and use nl80211 if WEXT fails.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure7
1 files changed, 6 insertions, 1 deletions
diff --git a/configure b/configure
index 4a94e15d..eb793c52 100755
--- a/configure
+++ b/configure
@@ -432,9 +432,14 @@ EOF
echo "#define HAVE_NL80211_H" >>$CONFIG_H
else
echo "no"
- echo "DHCPCD_SRCS+= if-linux-wext.c" >>$CONFIG_MK
fi
rm -f _nl80211.c _nl80211
+
+ # Even though we have nl80211, we only use it as a fallback
+ # because it's currently possible to configure a kernel
+ # where the SSID associated to won't be reported by nl80211
+ # but will be via WEXT.
+ echo "DHCPCD_SRCS+= if-linux-wext.c" >>$CONFIG_MK
fi
abort=false