]> git.ipfire.org Git - thirdparty/hostap.git/commit
hostapd: Fix Max SP Length derivation from QoS Info
authorSrinivasan B <srinivasanb@posedge.com>
Sat, 16 Feb 2013 09:15:13 +0000 (11:15 +0200)
committerJouni Malinen <j@w1.fi>
Sat, 16 Feb 2013 09:15:13 +0000 (11:15 +0200)
commitbdaf17489a9e9214554d60eb3e3f58f51306a962
tree7f061fea930886a7eba261ad00f0a55ca5107865
parent122d16f25db3d319ce090860acb3fdd413deaad6
hostapd: Fix Max SP Length derivation from QoS Info

Hostapd provides QoS info of the STA (Service Period & AC mask) to the
kernel during wpa_driver_nl80211_sta_add call. Bit 5 and Bit 6 of QoS
info represents the Max SP length. Fix an issue in the code to fetch the
Max SP by shifting right the QoS info by value WMM_QOSINFO_STA_SP_SHIFT.
(operator ">" is replaced with ">>" operator).

Signed-off-by: Srinivasan <srinivasanb@posedge.com>
src/drivers/driver_nl80211.c