Re: [PATCH] wifi: don't remove AP upon link lost event



On Thu, May 9, 2013 at 5:19 PM, Dan Williams <dcbw redhat com> wrote:
So the code in link_timeout_cb() only gets run when the wifi device is
already connected and then somehow gets disconnected.  Were you hitting
this issue while connected to the AP, getting disconnected, and then the
AP rejected the reconnect?

You are frighteningly familiar with this code. That is exactly what happens.

This patch will break the AP-out-of-range or AP-turned-off cases; so
instead of your patch, does this one fix your issue?  We're already
tracking whether or not the supplicant can talk to the AP, and the AP
shouldn't be rejecting you during the AUTH phase, just the ASSOC phase.
So with this patch, if when the supplicant reconnects it's able to get
to the ASSOC phase, the AP shouldn't get removed from the list on link
timeout.

I had assumed that the AP-out-of-range and similar cases would be
handled with a signal from the supplicant saying "BSS removed".
Anyway, your patch works.

Thanks
Daniel


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