mirror of
https://github.com/hak5/wifipineapple-openwrt.git
synced 2025-10-29 16:57:19 +00:00
iwinfo: don't report associations for broadcom wds interfaces
The associations list for Broadcom WDS interfaces are duplicate to those reported by the corresponding AP interface; so there is no need to report them again. Signed-off-by: Nathan Hintz <nlhintz@hotmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38746 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
@@ -55,6 +55,9 @@ static struct wl_maclist * wl_read_assoclist(const char *ifname)
|
||||
struct wl_maclist *macs;
|
||||
int maclen = 4 + WL_MAX_STA_COUNT * 6;
|
||||
|
||||
if (strstr(ifname, "wds"))
|
||||
return NULL;
|
||||
|
||||
if ((macs = (struct wl_maclist *) malloc(maclen)) != NULL)
|
||||
{
|
||||
memset(macs, 0, maclen);
|
||||
|
||||
Reference in New Issue
Block a user