]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: add functions to create PS Poll and Nullfunc templates
authorKalle Valo <kalle.valo@nokia.com>
Tue, 5 Jan 2010 18:16:19 +0000 (20:16 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 12 Jan 2010 18:51:24 +0000 (13:51 -0500)
commitac52c9cf1daa6076148cc44e1311168efcef883f
tree9933e1f178d0cfc8acf69eaf5b7652acaa8825e5
parent6e300b9f2bb8fca0cdb19f862d679c90f2b700b3
mac80211: add functions to create PS Poll and Nullfunc templates

Some hardware, for example wl1251 and wl1271, handle the transmission
of power save related frames in hardware, but the driver is responsible
for creating the templates. It's better to create the templates in mac80211,
that way all drivers can benefit from this.

Add two new functions, ieee80211_pspoll_get() and ieee80211_nullfunc_get()
which drivers need to call to get the frame. Drivers are also responsible
for updating the templates after each association.

Also new struct ieee80211_hdr_3addr is added to ieee80211.h to make it
easy to calculate length of the Nullfunc frame.

Signed-off-by: Kalle Valo <kalle.valo@nokia.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
include/linux/ieee80211.h
include/net/mac80211.h
net/mac80211/tx.c