Store entire CS freq_params and not only freq
When CSA flow starts, store the entire struct hostapd_freq_params and not only CS frequency as it was before. The additional freq_params are required to advertise CS supplementary IEs such as secondary channel, wide bandwidth CS, etc. Signed-hostap: Andrei Otcheretianski <andrei.otcheretianski@intel.com>
This commit is contained in:
parent
13daed58c7
commit
8f4713c5c9
4 changed files with 8 additions and 6 deletions
|
@ -206,10 +206,10 @@ static u8 * hostapd_eid_csa(struct hostapd_data *hapd, u8 *eid)
|
|||
{
|
||||
u8 chan;
|
||||
|
||||
if (!hapd->iface->cs_freq)
|
||||
if (!hapd->iface->cs_freq_params.freq)
|
||||
return eid;
|
||||
|
||||
if (ieee80211_freq_to_chan(hapd->iface->cs_freq, &chan) ==
|
||||
if (ieee80211_freq_to_chan(hapd->iface->cs_freq_params.freq, &chan) ==
|
||||
NUM_HOSTAPD_MODES)
|
||||
return eid;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue