[PATCH V4 2/2] ath10k: Fix interrupt storm
Michal Kazior
michal.kazior at tieto.com
Mon Mar 2 04:07:29 PST 2015
On 2 March 2015 at 12:28, Vasanthakumar Thiagarajan
<vthiagar at qti.qualcomm.com> wrote:
[...]
> +static bool ath10k_mac_should_disable_promisc(struct ath10k *ar)
> +{
> + struct ath10k_vif *arvif;
> +
> + if (!(ar->filter_flags & FIF_PROMISC_IN_BSS))
> + return true;
> +
> + if (!ar->num_started_vdevs)
> + return false;
> +
> + list_for_each_entry(arvif, &ar->arvifs, list)
> + if (arvif->vdev_type != WMI_VDEV_TYPE_AP)
> + return false;
> +
> + ath10k_dbg(ar, ATH10K_DBG_MAC,
> + "mac disabling promiscuous mode because vdev is started\n");
> + ar->filter_flags &= ~FIF_PROMISC_IN_BSS;
ar->filter_flags shouldn't be changed. Especially in a function which
shouldn't have side-effects.
Michał
More information about the ath10k
mailing list