diff options
| author | Roy Marples <roy@marples.name> | 2009-01-01 20:51:04 +0000 |
|---|---|---|
| committer | Roy Marples <roy@marples.name> | 2009-01-01 20:51:04 +0000 |
| commit | c53cf4ef4b332cd1ff0cb1b0dc23fc193aebb892 (patch) | |
| tree | bc4b3e699a9a40ecf7eb74249ca0c89f2ccb7f61 /net.c | |
| parent | 91a44b91b06f127a98ae7f64e377e59d47eba329 (diff) | |
| download | dhcpcd-c53cf4ef4b332cd1ff0cb1b0dc23fc193aebb892.tar.xz | |
You can now add a configure block per ssid if the interface is wireless.
Diffstat (limited to 'net.c')
| -rw-r--r-- | net.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,6 +1,6 @@ /* * dhcpcd - DHCP client daemon - * Copyright 2006-2008 Roy Marples <roy@marples.name> + * Copyright 2006-2009 Roy Marples <roy@marples.name> * All rights reserved * Redistribution and use in source and binary forms, with or without @@ -196,7 +196,7 @@ 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 (if_wireless(ifname) == 0) + if (getifssid(ifname, iface->ssid) != -1) iface->metric += 100; #ifdef SIOCGIFHWADDR |
