Date: Sat, 2 May 2009 15:14:18 +0000 (UTC) From: Andrew Thompson <thompsa@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/sys/dev/if_ndis if_ndis.c if_ndisvar.h src/sys/dev/ipw if_ipw.c if_ipwvar.h src/sys/dev/iwi if_iwi.c if_iwivar.h src/sys/dev/iwn if_iwn.c if_iwnvar.h src/sys/dev/usb/wlan if_rum.c if_rumvar.h if_uath.c if_uathvar.h ... Message-ID: <200905021515.n42FFSlv066093@repoman.freebsd.org>
index | next in thread | raw e-mail
thompsa 2009-05-02 15:14:18 UTC
FreeBSD src repository
Modified files:
sys/dev/if_ndis if_ndis.c if_ndisvar.h
sys/dev/ipw if_ipw.c if_ipwvar.h
sys/dev/iwi if_iwi.c if_iwivar.h
sys/dev/iwn if_iwn.c if_iwnvar.h
sys/dev/usb/wlan if_rum.c if_rumvar.h if_uath.c
if_uathvar.h if_ural.c if_uralvar.h
if_zyd.c if_zydreg.h
sys/dev/wi if_wi.c if_wivar.h
sys/dev/wpi if_wpi.c if_wpivar.h
sys/net80211 ieee80211.c ieee80211_freebsd.h
ieee80211_ioctl.c ieee80211_node.c
ieee80211_node.h ieee80211_proto.c
ieee80211_scan.c ieee80211_scan.h
ieee80211_scan_sta.c ieee80211_var.h
Removed files:
sys/dev/usb/wlan usb_wlan.h
Log:
SVN rev 191746 on 2009-05-02 15:14:18Z by thompsa
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
Revision Changes Path
1.158 +55 -90 src/sys/dev/if_ndis/if_ndis.c
1.39 +1 -4 src/sys/dev/if_ndis/if_ndisvar.h
1.43 +38 -100 src/sys/dev/ipw/if_ipw.c
1.9 +0 -8 src/sys/dev/ipw/if_ipwvar.h
1.66 +88 -227 src/sys/dev/iwi/if_iwi.c
1.18 +1 -32 src/sys/dev/iwi/if_iwivar.h
1.14 +103 -223 src/sys/dev/iwn/if_iwn.c
1.2 +3 -32 src/sys/dev/iwn/if_iwnvar.h
1.12 +108 -277 src/sys/dev/usb/wlan/if_rum.c
1.5 +1 -22 src/sys/dev/usb/wlan/if_rumvar.h
1.3 +6 -12 src/sys/dev/usb/wlan/if_uath.c
1.2 +0 -1 src/sys/dev/usb/wlan/if_uathvar.h
1.12 +110 -280 src/sys/dev/usb/wlan/if_ural.c
1.5 +1 -19 src/sys/dev/usb/wlan/if_uralvar.h
1.8 +92 -269 src/sys/dev/usb/wlan/if_zyd.c
1.3 +0 -21 src/sys/dev/usb/wlan/if_zydreg.h
1.3 +0 -56 src/sys/dev/usb/wlan/usb_wlan.h (dead)
1.225 +13 -59 src/sys/dev/wi/if_wi.c
1.34 +0 -4 src/sys/dev/wi/if_wivar.h
1.24 +58 -194 src/sys/dev/wpi/if_wpi.c
1.5 +3 -38 src/sys/dev/wpi/if_wpivar.h
1.72 +20 -3 src/sys/net80211/ieee80211.c
1.31 +1 -0 src/sys/net80211/ieee80211_freebsd.h
1.87 +1 -3 src/sys/net80211/ieee80211_ioctl.c
1.127 +15 -3 src/sys/net80211/ieee80211_node.c
1.46 +2 -0 src/sys/net80211/ieee80211_node.h
1.59 +171 -44 src/sys/net80211/ieee80211_proto.c
1.15 +207 -200 src/sys/net80211/ieee80211_scan.c
1.7 +1 -0 src/sys/net80211/ieee80211_scan.h
1.25 +3 -3 src/sys/net80211/ieee80211_scan_sta.c
1.84 +33 -5 src/sys/net80211/ieee80211_var.h
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200905021515.n42FFSlv066093>
