rsi: Send rx filter frame to device when interface is down
authorPrameela Rani Garnepudi <prameela.j04cs@gmail.com>
Mon, 10 Jul 2017 12:40:47 +0000 (18:10 +0530)
committerKalle Valo <kvalo@codeaurora.org>
Fri, 28 Jul 2017 14:25:45 +0000 (17:25 +0300)
When interface is down it is better to stop all RX packets to
host. 0xffff will block all packets to host.

Signed-off-by: Prameela Rani Garnepudi <prameela.j04cs@gmail.com>
Signed-off-by: Amitkumar Karwar <amit.karwar@redpinesignals.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/rsi/rsi_91x_mac80211.c

index 36303ae820af4b69b86983c163141db8f13a0968..d094b0ab05ba1850371bc7a7c19934043180516b 100644 (file)
@@ -301,6 +301,10 @@ static void rsi_mac80211_stop(struct ieee80211_hw *hw)
 
        mutex_lock(&common->mutex);
        common->iface_down = true;
+
+       /* Block all rx frames */
+       rsi_send_rx_filter_frame(common, 0xffff);
+
        mutex_unlock(&common->mutex);
 }