[PATCH] libertas: make scan result handling more flexible

Marcelo Tosatti marcelo at kvack.org
Thu Mar 22 10:42:23 EDT 2007


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);
+       }




More information about the libertas-dev mailing list