summaryrefslogtreecommitdiffstats
path: root/if.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 /if.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 'if.c')
-rw-r--r--if.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/if.c b/if.c
index ba374452..7057419a 100644
--- a/if.c
+++ b/if.c
@@ -421,7 +421,7 @@ if_discover(struct dhcpcd_ctx *ctx, int argc, char * const *argv)
/* We reserve the 100 range for virtual interfaces, if and when
* we can work them out. */
ifp->metric = 200 + ifp->index;
- if (if_getssid(ifp->name, ifp->ssid) != -1) {
+ if (if_getssid(ifp) != -1) {
ifp->wireless = 1;
ifp->metric += 100;
}