• K
    mac80211: add functions to create PS Poll and Nullfunc templates · 7044cc56
    Kalle Valo 提交于
    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: NKalle Valo <kalle.valo@nokia.com>
    Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
    7044cc56
mac80211.h 91.5 KB