mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
mwl8k: add AP firmware handling to ->configure_filter()
Signed-off-by: Lennert Buytenhek <[email protected]> Signed-off-by: John W. Linville <[email protected]>
This commit is contained in:
parent
08b063477e
commit
c0adae2caa
1 changed files with 10 additions and 0 deletions
|
|
@ -3013,6 +3013,16 @@ static void mwl8k_configure_filter(struct ieee80211_hw *hw,
|
|||
struct mwl8k_priv *priv = hw->priv;
|
||||
struct mwl8k_cmd_pkt *cmd = (void *)(unsigned long)multicast;
|
||||
|
||||
/*
|
||||
* AP firmware doesn't allow fine-grained control over
|
||||
* the receive filter.
|
||||
*/
|
||||
if (priv->ap_fw) {
|
||||
*total_flags &= FIF_ALLMULTI | FIF_BCN_PRBRESP_PROMISC;
|
||||
kfree(cmd);
|
||||
return;
|
||||
}
|
||||
|
||||
/*
|
||||
* Enable hardware sniffer mode if FIF_CONTROL or
|
||||
* FIF_OTHER_BSS is requested.
|
||||
|
|
|
|||
Loading…
Reference in a new issue