Add Wide Bandwidth Channel Switch element
When switching to a VHT channel with width greater than 20 MHz, add Wide Bandwidth Channel Switch element. This element is added in Beacon and Probe Response frames inside Channel Switch Wrapper element. Signed-off-by: Andrei Otcheretianski <andrei.otcheretianski@intel.com>
This commit is contained in:
parent
9438e9c785
commit
244d4d8bff
3 changed files with 57 additions and 0 deletions
|
@ -347,6 +347,9 @@ static u8 * hostapd_add_csa_elems(struct hostapd_data *hapd, u8 *pos,
|
|||
/* save an offset to the counter - should be last byte */
|
||||
*csa_counter_off = pos - start - 1;
|
||||
pos = hostapd_eid_secondary_channel(hapd, pos);
|
||||
#ifdef CONFIG_IEEE80211AC
|
||||
pos = hostapd_eid_wb_chsw_wrapper(hapd, pos);
|
||||
#endif /* CONFIG_IEEE80211AC */
|
||||
}
|
||||
|
||||
return pos;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue