hostapd: Fix Max SP Length derivation from QoS Info ol_r8.a8.01 ol_r8.a8.02 ol_r8.a8.03 ol_r8.a8.04 ol_r8.a8.05
author | Srinivasan B <srinivasanb@posedge.com> | |
Sat, 16 Feb 2013 09:15:13 +0000 (11:15 +0200) | ||
committer | Eliad Peller <eliad@wizery.com> | |
Wed, 11 Sep 2013 10:27:58 +0000 (13:27 +0300) | ||
commit | 242787265f9f3321321199662237986532822b87 | |
tree | 71d4da66c4ecf07b8cae412782db24f563706acc | tree | snapshot (tar.xz tar.gz zip) |
parent | 4e538d3b54e1978c7ebcb811256bdcce4f6fe0ff | commit | diff |
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>
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 | diff | blob | history |