diff options
| author | Roy Marples <roy@marples.name> | 2009-01-22 22:52:41 +0000 |
|---|---|---|
| committer | Roy Marples <roy@marples.name> | 2009-01-22 22:52:41 +0000 |
| commit | bf91047e8fabb1fd4d9a756b1d95ab0cb96773a5 (patch) | |
| tree | 0a859ff4838791391d3748deabe4b3685dac419d /net.c | |
| parent | 596f836904f3d971768aa4fb0b468282bc276c24 (diff) | |
| download | dhcpcd-bf91047e8fabb1fd4d9a756b1d95ab0cb96773a5.tar.xz | |
Report the fact we're wireless and our ssid
Diffstat (limited to 'net.c')
| -rw-r--r-- | net.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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)); |
