ipw2200: expire and use oldest BSS on adhoc create
authorDan Williams <dcbw@redhat.com>
Thu, 29 May 2008 18:38:28 +0000 (14:38 -0400)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 4 Jun 2008 19:57:10 +0000 (15:57 -0400)
commita6d4eae80157830af9c9d80de2daf6611696a34e
tree7b6aca539eb62f212d0e6906408ddaaefccf79f8
parentb212f3378a9cfca4da52d7c7e6f79ead8ec287fc
ipw2200: expire and use oldest BSS on adhoc create

If there are no networks on the free list, expire the oldest one when
creating a new adhoc network.  Because ipw2200 and the ieee80211 stack
don't actually cull old networks and place them back on the free list
unless they are needed for new probe responses, over time the free list
would become empty and creating an adhoc network would fail due to the !
list_empty(...) check.

Signed-off-by: Dan Williams <dcbw@redhat.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ipw2200.c