Allow advertising of U-APSD functionality in Beacon

hostapd does not implement UAPSD functionality. However, if U-APSD
functionality is implemented outside hostapd, add support to advertise
the functionality in beacon.

Signed-off-by: yogeshp@marvell.com
This commit is contained in:
Yogesh Ashok Powar 2010-04-11 11:32:15 +03:00 committed by Jouni Malinen
parent 86d4f806da
commit 721abef9b3
6 changed files with 12 additions and 0 deletions

View file

@ -270,6 +270,7 @@ struct hostapd_bss_config {
int ignore_broadcast_ssid;
int wmm_enabled;
int wmm_uapsd;
struct hostapd_vlan *vlan, *vlan_tail;

View file

@ -71,6 +71,9 @@ u8 * hostapd_eid_wmm(struct hostapd_data *hapd, u8 *eid)
wmm->version = WMM_VERSION;
wmm->qos_info = hapd->parameter_set_count & 0xf;
if (hapd->conf->wmm_uapsd)
wmm->qos_info |= 0x80;
/* fill in a parameter set record for each AC */
for (e = 0; e < 4; e++) {
struct wmm_ac_parameter *ac = &wmm->ac[e];

View file

@ -142,6 +142,7 @@ struct wpa_auth_config {
int eapol_version;
int peerkey;
int wmm_enabled;
int wmm_uapsd;
int okc;
#ifdef CONFIG_IEEE80211W
enum mfp_options ieee80211w;

View file

@ -47,6 +47,7 @@ static void hostapd_wpa_auth_conf(struct hostapd_bss_config *conf,
wconf->eapol_version = conf->eapol_version;
wconf->peerkey = conf->peerkey;
wconf->wmm_enabled = conf->wmm_enabled;
wconf->wmm_uapsd = conf->wmm_uapsd;
wconf->okc = conf->okc;
#ifdef CONFIG_IEEE80211W
wconf->ieee80211w = conf->ieee80211w;