hostapd: Add testing option to use only ECSA
Some APs don't include a CSA IE when an ECSA IE is generated, and mac80211 used to fail following their channel switch. Add a testing option to hostapd to allow reproducing the behavior. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
This commit is contained in:
parent
fa53d74c9e
commit
2b6e121676
5 changed files with 13 additions and 0 deletions
|
@ -297,6 +297,11 @@ static u8 * hostapd_eid_wpa(struct hostapd_data *hapd, u8 *eid, size_t len)
|
|||
|
||||
static u8 * hostapd_eid_csa(struct hostapd_data *hapd, u8 *eid)
|
||||
{
|
||||
#ifdef CONFIG_TESTING_OPTIONS
|
||||
if (hapd->iface->cs_oper_class && hapd->iconf->ecsa_ie_only)
|
||||
return eid;
|
||||
#endif /* CONFIG_TESTING_OPTIONS */
|
||||
|
||||
if (!hapd->cs_freq_params.channel)
|
||||
return eid;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue