[PATCH 3/3] ath6kl: Unset IFF_LOWER_UP flag on AP mode leave.
Johannes Berg
johannes at sipsolutions.net
Fri Jul 1 16:02:10 PDT 2016
> +++ b/drivers/net/wireless/ath/ath6kl/cfg80211.c
> @@ -2971,7 +2971,11 @@ static int ath6kl_stop_ap(struct wiphy *wiphy,
> struct net_device *dev)
> return -ENOTCONN;
>
> ath6kl_wmi_disconnect_cmd(ar->wmi, vif->fw_vif_idx);
> +
> + spin_lock_bh(&vif->if_lock);
> clear_bit(CONNECTED, &vif->flags);
> + netif_carrier_off(vif->ndev);
> + spin_unlock_bh(&vif->if_lock);
>
The addition of the locking seems rather odd.
johannes
More information about the ath6kl
mailing list