mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2025-01-17 18:34:03 -05:00
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
@ -57,7 +57,8 @@ static u8 ieee802_11_erp_info(struct hostapd_data *hapd)
|
|||||||
}
|
}
|
||||||
break;
|
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;
|
erp |= ERP_INFO_BARKER_PREAMBLE_MODE;
|
||||||
|
|
||||||
return erp;
|
return erp;
|
||||||
|
Loading…
Reference in New Issue
Block a user