--- embedtools/src/vap.c 2010/11/02 01:54:58 1.1.2.7 +++ embedtools/src/vap.c 2011/06/08 12:45:41 1.2 @@ -184,19 +184,21 @@ wifi_vapDestroy(const char *csVAP) } 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; FTRACE(5); assert(wds); + assert(psVAP); for (pp = wds; (p = *pp); pp = &p->if_next) if (!memcmp(p->if_bssid, &bssid, IEEE80211_ADDR_LEN)) break; if (p) { *pp = p->if_next; + strlcpy(psVAP, p->if_name, vapLen); if (wifi_vapDestroy(p->if_name) != -1) VERB(1) syslog(LOG_INFO, "BSSID:%s WDS VAP %s destroyed\n", ether_ntoa(&bssid), p->if_name);