diff options
author | Insun Song <insun.song@broadcom.com> | 2017-05-15 09:27:11 -0700 |
---|---|---|
committer | Mark Salyzyn <salyzyn@google.com> | 2017-05-15 14:49:00 -0700 |
commit | 432855dae96b05b7ce8539f4f2a4f56e67e25ff0 (patch) | |
tree | 138d9915b95b12e4920988eda91b80b2c56b8a57 | |
parent | 77e08a529bf65720113ba9486181d63c3315229c (diff) | |
download | tegra-432855dae96b05b7ce8539f4f2a4f56e67e25ff0.tar.gz |
net: wireless: bcmdhd: arpoe/ndoe IOVAR bug patch
fix the bug which set wrong interface index number to dongle.
that affected P2P mode which use additional BSS interface,
other than Station or AP mode.
Signed-off-by: Insun Song <insun.song@broadcom.com>
Bug: 38309523
Bug: 36000515
Change-Id: I5331811c4e6e74f27c5a2326dad94353a3e66ce1
-rw-r--r-- | drivers/net/wireless/bcmdhd/dhd_common.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/net/wireless/bcmdhd/dhd_common.c b/drivers/net/wireless/bcmdhd/dhd_common.c index 7125148a0f77..7270c6fc2352 100644 --- a/drivers/net/wireless/bcmdhd/dhd_common.c +++ b/drivers/net/wireless/bcmdhd/dhd_common.c @@ -2076,7 +2076,7 @@ dhd_aoe_arp_clr(dhd_pub_t *dhd, int idx) if (dhd->arp_version == 1) idx = 0; - ret = dhd_iovar(dhd, 0, "arp_table_clear", NULL, 0, NULL, 0, TRUE); + ret = dhd_iovar(dhd, idx, "arp_table_clear", NULL, 0, NULL, 0, TRUE); if (ret) DHD_ERROR(("%s failed code %d\n", __FUNCTION__, ret)); } @@ -2090,7 +2090,7 @@ dhd_aoe_hostip_clr(dhd_pub_t *dhd, int idx) if (dhd->arp_version == 1) idx = 0; - ret = dhd_iovar(dhd, 0, "arp_hostip_clear", NULL, 0, NULL, 0, TRUE); + ret = dhd_iovar(dhd, idx, "arp_hostip_clear", NULL, 0, NULL, 0, TRUE); if (ret) DHD_ERROR(("%s failed code %d\n", __FUNCTION__, ret)); } @@ -2104,7 +2104,7 @@ dhd_arp_offload_add_ip(dhd_pub_t *dhd, uint32 ipaddr, int idx) if (dhd->arp_version == 1) idx = 0; - ret = dhd_iovar(dhd, 0, "arp_hostip", (char *)&ipaddr, sizeof(ipaddr), + ret = dhd_iovar(dhd, idx, "arp_hostip", (char *)&ipaddr, sizeof(ipaddr), NULL, 0, TRUE); if (ret) DHD_TRACE(("%s: ARP ip addr add failed, ret = %d\n", @@ -2127,7 +2127,7 @@ dhd_arp_get_arp_hostip_table(dhd_pub_t *dhd, void *buf, int buflen, int idx) if (dhd->arp_version == 1) idx = 0; - ret = dhd_iovar(dhd, 0, "arp_hostip", NULL, 0, (char *)buf, buflen, + ret = dhd_iovar(dhd, idx, "arp_hostip", NULL, 0, (char *)buf, buflen, FALSE); if (ret) { DHD_TRACE(("%s: ioctl WLC_GET_VAR error %d\n", @@ -2187,7 +2187,7 @@ dhd_ndo_add_ip(dhd_pub_t *dhd, char* ipv6addr, int idx) if (dhd == NULL) return -1; - ret = dhd_iovar(dhd, 0, "nd_hostip", (char *)ipv6addr, IPV6_ADDR_LEN, + ret = dhd_iovar(dhd, idx, "nd_hostip", (char *)ipv6addr, IPV6_ADDR_LEN, NULL, 0, TRUE); if (ret) @@ -2211,7 +2211,7 @@ dhd_ndo_remove_ip(dhd_pub_t *dhd, int idx) if (dhd == NULL) return -1; - ret = dhd_iovar(dhd, 0, "nd_hostip_clear", NULL, 0, NULL, 0, TRUE); + ret = dhd_iovar(dhd, idx, "nd_hostip_clear", NULL, 0, NULL, 0, TRUE); if (ret) DHD_ERROR(("%s: ndo ip addr remove failed, ret = %d\n", __FUNCTION__, ret)); |