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.
This commit is contained in:
parent
702934a163
commit
a0fad21014
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue