mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-11-25 00:38:24 -05:00
Changed NL80211_ATTR_WIPHY_SEC_CHAN_OFFSET to use U32
This commit is contained in:
parent
6dcfad915f
commit
2f4eb31454
@ -485,15 +485,15 @@ static int i802_set_freq2(void *priv, struct hostapd_freq_params *freq)
|
||||
if (freq->ht_enabled) {
|
||||
switch (freq->sec_channel_offset) {
|
||||
case -1:
|
||||
NLA_PUT_U8(msg, NL80211_ATTR_WIPHY_SEC_CHAN_OFFSET,
|
||||
NLA_PUT_U32(msg, NL80211_ATTR_WIPHY_SEC_CHAN_OFFSET,
|
||||
NL80211_SEC_CHAN_BELOW);
|
||||
break;
|
||||
case 1:
|
||||
NLA_PUT_U8(msg, NL80211_ATTR_WIPHY_SEC_CHAN_OFFSET,
|
||||
NLA_PUT_U32(msg, NL80211_ATTR_WIPHY_SEC_CHAN_OFFSET,
|
||||
NL80211_SEC_CHAN_ABOVE);
|
||||
break;
|
||||
default:
|
||||
NLA_PUT_U8(msg, NL80211_ATTR_WIPHY_SEC_CHAN_OFFSET,
|
||||
NLA_PUT_U32(msg, NL80211_ATTR_WIPHY_SEC_CHAN_OFFSET,
|
||||
NL80211_SEC_CHAN_DISABLED);
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user