]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Create a taskqueue for each wireless interface which provides a serialised
authorAndrew Thompson <thompsa@FreeBSD.org>
Sat, 2 May 2009 15:14:18 +0000 (15:14 +0000)
committerAndrew Thompson <thompsa@FreeBSD.org>
Sat, 2 May 2009 15:14:18 +0000 (15:14 +0000)
commit5efea30f039c48ddcdddc0d12150b656f4a2e7b8
tree46c2c9933cb1753f24ffd7c0096b2ba9074180d2
parenta40d9024df6cc7c8d3ca9ebce79a28840f890251
Create a taskqueue for each wireless interface which provides a serialised
sleepable context for net80211 driver callbacks. This removes the need for USB
and firmware based drivers to roll their own code to defer the chip programming
for state changes, scan requests, channel changes and mcast/promisc updates.
When a driver callback completes the hardware state is now guaranteed to have
been updated and is in sync with net80211 layer.

This nukes around 1300 lines of code from the wireless device drivers making
them more readable and less race prone.

The net80211 layer has been updated as follows
 - all state/channel changes are serialised on the taskqueue.
 - ieee80211_new_state() always queues and can now be called from any context
 - scanning runs from a single taskq function and executes to completion. driver
   callbacks are synchronous so the channel, phy mode and rx filters are
   guaranteed to be set in hardware before probe request frames are
   transmitted.

Help and contributions from Sam Leffler.

Reviewed by: sam
31 files changed:
sys/dev/if_ndis/if_ndis.c
sys/dev/if_ndis/if_ndisvar.h
sys/dev/ipw/if_ipw.c
sys/dev/ipw/if_ipwvar.h
sys/dev/iwi/if_iwi.c
sys/dev/iwi/if_iwivar.h
sys/dev/iwn/if_iwn.c
sys/dev/iwn/if_iwnvar.h
sys/dev/usb/wlan/if_rum.c
sys/dev/usb/wlan/if_rumvar.h
sys/dev/usb/wlan/if_uath.c
sys/dev/usb/wlan/if_uathvar.h
sys/dev/usb/wlan/if_ural.c
sys/dev/usb/wlan/if_uralvar.h
sys/dev/usb/wlan/if_zyd.c
sys/dev/usb/wlan/if_zydreg.h
sys/dev/usb/wlan/usb_wlan.h [deleted file]
sys/dev/wi/if_wi.c
sys/dev/wi/if_wivar.h
sys/dev/wpi/if_wpi.c
sys/dev/wpi/if_wpivar.h
sys/net80211/ieee80211.c
sys/net80211/ieee80211_freebsd.h
sys/net80211/ieee80211_ioctl.c
sys/net80211/ieee80211_node.c
sys/net80211/ieee80211_node.h
sys/net80211/ieee80211_proto.c
sys/net80211/ieee80211_scan.c
sys/net80211/ieee80211_scan.h
sys/net80211/ieee80211_scan_sta.c
sys/net80211/ieee80211_var.h