提交 86583258 编写于 作者: P Prameela Rani Garnepudi 提交者: Kalle Valo

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: NPrameela Rani Garnepudi <prameela.j04cs@gmail.com>
Signed-off-by: NAmitkumar Karwar <amit.karwar@redpinesignals.com>
Signed-off-by: NKalle Valo <kvalo@codeaurora.org>
上级 5059afac
...@@ -301,6 +301,10 @@ static void rsi_mac80211_stop(struct ieee80211_hw *hw) ...@@ -301,6 +301,10 @@ static void rsi_mac80211_stop(struct ieee80211_hw *hw)
mutex_lock(&common->mutex); mutex_lock(&common->mutex);
common->iface_down = true; common->iface_down = true;
/* Block all rx frames */
rsi_send_rx_filter_frame(common, 0xffff);
mutex_unlock(&common->mutex); mutex_unlock(&common->mutex);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册