version 1.1.2.7, 2010/11/02 01:54:58
|
version 1.1.2.8, 2010/11/02 02:12:49
|
Line 184 wifi_vapDestroy(const char *csVAP)
|
Line 184 wifi_vapDestroy(const char *csVAP)
|
} |
} |
|
|
inline int |
inline int |
wifi_leaveWDS(struct ether_addr bssid, struct dwds_if **wds) | wifi_leaveWDS(struct ether_addr bssid, struct dwds_if **wds, char *psVAP, int vapLen) |
{ |
{ |
struct dwds_if *p, **pp; |
struct dwds_if *p, **pp; |
|
|
FTRACE(5); |
FTRACE(5); |
|
|
assert(wds); |
assert(wds); |
|
assert(psVAP); |
|
|
for (pp = wds; (p = *pp); pp = &p->if_next) |
for (pp = wds; (p = *pp); pp = &p->if_next) |
if (!memcmp(p->if_bssid, &bssid, IEEE80211_ADDR_LEN)) |
if (!memcmp(p->if_bssid, &bssid, IEEE80211_ADDR_LEN)) |
break; |
break; |
if (p) { |
if (p) { |
*pp = p->if_next; |
*pp = p->if_next; |
|
strlcpy(psVAP, p->if_name, vapLen); |
if (wifi_vapDestroy(p->if_name) != -1) |
if (wifi_vapDestroy(p->if_name) != -1) |
VERB(1) syslog(LOG_INFO, "BSSID:%s WDS VAP %s destroyed\n", |
VERB(1) syslog(LOG_INFO, "BSSID:%s WDS VAP %s destroyed\n", |
ether_ntoa(&bssid), p->if_name); |
ether_ntoa(&bssid), p->if_name); |