aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2010-09-05 10:11:42 (GMT)
committerJouni Malinen <j@w1.fi>2010-09-05 14:36:55 (GMT)
commit08fbc372b44bcd273e335edf15f751c5dbb8a508 (patch)
tree4e3b03cbaeae63ebfe342a23f4f08c13a5850ba7
parent00bb72c0a9a96123db6bc235938406adbafb480c (diff)
downloadhostap-07-08fbc372b44bcd273e335edf15f751c5dbb8a508.zip
hostap-07-08fbc372b44bcd273e335edf15f751c5dbb8a508.tar.gz
hostap-07-08fbc372b44bcd273e335edf15f751c5dbb8a508.tar.bz2
Indicate Barker Preamble Mode in ERP IE also based on local configuration
While this is not strictly speaking required based on dynamic configuration (i.e., dot11ShortPreambleOptionImplemented is static value based on implementation, not runtime configuration), it is better to follow local configuration parameter for short preamble in addition to the associated station capabilities. (cherry picked from commit a0fad21014923a9b7b36ebeebb623f3cbb44e076)
-rw-r--r--src/ap/beacon.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ap/beacon.c b/src/ap/beacon.c
index bdc2c0a..004cc8a 100644
--- a/src/ap/beacon.c
+++ b/src/ap/beacon.c
@@ -57,7 +57,8 @@ static u8 ieee802_11_erp_info(struct hostapd_data *hapd)
}
break;
}
- if (hapd->iface->num_sta_no_short_preamble > 0)
+ if (hapd->iface->num_sta_no_short_preamble > 0 ||
+ hapd->iconf->preamble == LONG_PREAMBLE)
erp |= ERP_INFO_BARKER_PREAMBLE_MODE;
return erp;