From: Prameela Rani Garnepudi Date: Mon, 10 Jul 2017 12:40:47 +0000 (+0530) Subject: rsi: Send rx filter frame to device when interface is down X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=86583258499ce5c3ee0e49f897c2d1c013ebdbd9;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git rsi: Send rx filter frame to device when interface is down 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 Signed-off-by: Amitkumar Karwar Signed-off-by: Kalle Valo --- diff --git a/drivers/net/wireless/rsi/rsi_91x_mac80211.c b/drivers/net/wireless/rsi/rsi_91x_mac80211.c index 36303ae820af..d094b0ab05ba 100644 --- a/drivers/net/wireless/rsi/rsi_91x_mac80211.c +++ b/drivers/net/wireless/rsi/rsi_91x_mac80211.c @@ -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); }