Search Linux Wireless

Re: [PATCH 2/2 V2] mac80211: add direct probe before association

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

 



Hi,

I was just pondering rewriting parts of the state machine (and you've
already seen the other cleanups I did today) and found this:

> +	/* Direct probe is sent to broadcast address as some APs
> +	 * will not answer to direct packet in unassociated state.
> +	 */
> +	ieee80211_send_probe_req(dev, NULL,
> +				 ifsta->ssid, ifsta->ssid_len);

> +	/* direct probe may be part of the association flow */
> +	if (test_and_clear_bit(IEEE80211_STA_REQ_DIRECT_PROBE,
> +							&ifsta->request)) {
> +		printk(KERN_DEBUG "%s direct probe responded\n", dev->name);
> +		ieee80211_authenticate(dev, ifsta);

Doesn't the latter code have to check that the sender is the correct
one? First we broadcast the probe request, and then we may be getting
one from a different AP but still clear our direct probe association
flow step, no?

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