Re: [PATCH 3/3] ath6kl: Unset IFF_LOWER_UP flag on AP mode leave.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




> +++ 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

_______________________________________________
ath6kl mailing list
ath6kl@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/ath6kl




[Index of Archives]     [Linux Kernel]     [Linux Wireless]     [Linux Bluetooth]     [Linux WPAN]     [Linux Netdev]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]

  Powered by Linux