[PATCH] libertas: make scan result handling more flexible

Dan Williams dcbw at redhat.com
Thu Mar 22 11:08:19 EDT 2007


On Thu, 2007-03-22 at 11:42 -0300, Marcelo Tosatti wrote:
> On Wed, Mar 21, 2007 at 06:54:06PM -0400, Dan Williams wrote:
> > - use a linked list for scan results
> > - age scan results
> > - pass bss_descriptors around instead of indexes into the scan table
> > - lock access to the scan results
> > - stop returning EAGAIN from SIOCGIWSCAN handler
> > 
> > Signed-off-by: Dan Williams <dcbw at redhat.com>
> > 
> > 
> > URL: http://bigw.org/~dan/libertas-scan-handling-cleanup.patch
> 
> Hi Dan,
> 
> Patch looks good, although it does not apply to current libertas-2.6
> tree.
> 
> Also, where is DEFAULT_MAX_SCAN_AGE defined? Can't find it in the patch.
> 
> +       /* Prune old entries from scan table */
> +       list_for_each_entry_safe (iter_bss, safe, &adapter->network_list, list) {
> +               unsigned long stale_time = iter_bss->last_scanned + DEFAULT_MAX_SCAN_AGE;
> +               if (time_before(jiffies, stale_time))
> +                       continue;
> +               list_move_tail (&iter_bss->list, &adapter->network_free_list);
> +               clear_bss_descriptor(iter_bss);
> +       }

include/net/ieee80211.h actually.  I've been trying to use more of those
constants.

Dan





More information about the libertas-dev mailing list