MLK-19517-07 brcmfmac: remove "arp_hostip_clear" from "brcmf_netdev_stop"
authorWright Feng <wright.feng@cypress.com>
Fri, 25 May 2018 07:02:04 +0000 (02:02 -0500)
committerLeonard Crestez <leonard.crestez@nxp.com>
Wed, 17 Apr 2019 23:51:34 +0000 (02:51 +0300)
commitb981b3c9651c36bf2bf997261d4025b37f52d16c
treeefb8ca31224a65a6edf60b179c4582c8dea9bff8
parent34e52cd3aa1f047100284f3500db0a8874a0982e
MLK-19517-07 brcmfmac: remove "arp_hostip_clear" from "brcmf_netdev_stop"

The firmware does not respond ARP request and causes ping failed with
following steps.

1. Bring up interface
   ifconfig wlan0 up or start wpa_supplicant
2. Set the IP address
   ifconfig wlan0 192.168.100.10
3. Bring down interface or
   ifconfig wlan0 down or kill wpa_supplicant
4. Bring up interface again and set the same IP address
5. Connect to AP(192.168.100.1) and ping to AP will be failed.

FMAC clears arp_hostip when bringing down the interface, but not set it
back if setting the same IP address. We are able to see the IP address
in interface info(inconfig wlan0) but the ping still cannot work because
the firmware ARP offload does not respond the ARP request.
Because of that, we remove "arp_hostip_clear" from function
"brcmf_netdev_stop"

Signed-off-by: Wright Feng <wright.feng@cypress.com>
Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
(cherry picked from commit: 840f43680465c41ab40be3758f9dc91a91175d98)
Signed-off-by: Vipul Kumar <vipul_kumar@mentor.com>
drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c