Search Linux Wireless

Re: [RFC 2/2] cfg80211: scan for missing BSS on connect completion

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

 



On Sat, 2010-02-06 at 13:20 +0000, David Kilroy wrote:

> +	if (wdev->conn2) {
> +		struct cfg80211_bss *bss;
> +
> +		bss = cfg80211_get_bss(wdev->wiphy, NULL, wdev->conn2->bssid,
> +				       wdev->ssid, wdev->ssid_len,
> +				       WLAN_CAPABILITY_ESS,
> +				       WLAN_CAPABILITY_ESS);
> +
> +		if (WARN_ON(!bss))
> +			wdev->sme_state = CFG80211_SME_IDLE;

Can that case happen "legitimately", say the AP crashes right after you
connect, possibly due to the connection?

Even if not, this will leave the driver in a different state than the
state machine here, which we should clean up regardless I think.

johannes

Attachment: signature.asc
Description: This is a digitally signed message part


[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux