Browse Source

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 <[email protected]>

SVN-Revision: 38746
Hauke Mehrtens 12 years ago
parent
commit
20d64e929f
1 changed files with 3 additions and 0 deletions
  1. 3 0
      package/network/utils/iwinfo/src/iwinfo_wl.c

+ 3 - 0
package/network/utils/iwinfo/src/iwinfo_wl.c

@@ -55,6 +55,9 @@ static struct wl_maclist * wl_read_assoclist(const char *ifname)
 	struct wl_maclist *macs;
 	struct wl_maclist *macs;
 	int maclen = 4 + WL_MAX_STA_COUNT * 6;
 	int maclen = 4 + WL_MAX_STA_COUNT * 6;
 
 
+	if (strstr(ifname, "wds"))
+		return NULL;
+
 	if ((macs = (struct wl_maclist *) malloc(maclen)) != NULL)
 	if ((macs = (struct wl_maclist *) malloc(maclen)) != NULL)
 	{
 	{
 		memset(macs, 0, maclen);
 		memset(macs, 0, maclen);