summaryrefslogtreecommitdiffstats
path: root/dhcpcd.c
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2014-09-10 01:46:58 +0000
committerRoy Marples <roy@marples.name>2014-09-10 01:46:58 +0000
commit67ed6c5fdc76fa237307750d84251de7857f7e99 (patch)
tree222a295dad91aa2076420b8403173728aa6ca711 /dhcpcd.c
parent681c71eccec20e3977bd29e376fb325d843cb56e (diff)
downloaddhcpcd-67ed6c5fdc76fa237307750d84251de7857f7e99.tar.xz
Use the nl80211 interface on Linux to get the wireless SSID.
If this is not found in the system headers, fall back to assuming WEXT. This has been done because the WEXT module has been marked as deprecated for a while now and I'm getting bored of people asking me why their wireless wasn't working. Bloated dhcpcd by another 600 bytes as a result.
Diffstat (limited to 'dhcpcd.c')
-rw-r--r--dhcpcd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dhcpcd.c b/dhcpcd.c
index 85a0db45..dd684147 100644
--- a/dhcpcd.c
+++ b/dhcpcd.c
@@ -574,7 +574,7 @@ dhcpcd_handlecarrier(struct dhcpcd_ctx *ctx, int carrier, unsigned int flags,
dhcpcd_handleinterface(ctx, 0, ifp->name);
#endif
if (ifp->wireless)
- if_getssid(ifp->name, ifp->ssid);
+ if_getssid(ifp);
configure_interface(ifp, ctx->argc, ctx->argv);
script_runreason(ifp, "CARRIER");
dhcpcd_startinterface(ifp);