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 <prameela.j04cs@gmail.com>
Signed-off-by: Amitkumar Karwar <amit.karwar@redpinesignals.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
This commit is contained in:
Prameela Rani Garnepudi 2017-07-10 18:10:47 +05:30 committed by Kalle Valo
parent 5059afacee
commit 8658325849

View 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);
}