summaryrefslogtreecommitdiffstats
path: root/net.c
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2009-01-22 22:52:41 +0000
committerRoy Marples <roy@marples.name>2009-01-22 22:52:41 +0000
commitbf91047e8fabb1fd4d9a756b1d95ab0cb96773a5 (patch)
tree0a859ff4838791391d3748deabe4b3685dac419d /net.c
parent596f836904f3d971768aa4fb0b468282bc276c24 (diff)
downloaddhcpcd-bf91047e8fabb1fd4d9a756b1d95ab0cb96773a5.tar.xz
Report the fact we're wireless and our ssid
Diffstat (limited to 'net.c')
-rw-r--r--net.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/net.c b/net.c
index ed580cc5..18cf53bb 100644
--- a/net.c
+++ b/net.c
@@ -196,8 +196,10 @@ init_interface(const char *ifname)
/* We reserve the 100 range for virtual interfaces, if and when
* we can work them out. */
iface->metric = 200 + if_nametoindex(iface->name);
- if (getifssid(ifname, iface->ssid) != -1)
+ if (getifssid(ifname, iface->ssid) != -1) {
+ iface->wireless = 1;
iface->metric += 100;
+ }
#ifdef SIOCGIFHWADDR
strlcpy(ifr.ifr_name, ifname, sizeof(ifr.ifr_name));