mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-11-28 18:28:23 -05:00
Send HT parameters for new STAs
This depends on a mac80211 patch to add NL80211_ATTR_HT_CAPABILITY (which is not yet in wireless-testing).
This commit is contained in:
parent
f2c290ccf4
commit
00ad53ef68
@ -813,6 +813,16 @@ static int i802_sta_add2(const char *ifname, void *priv,
|
|||||||
NLA_PUT_U16(msg, NL80211_ATTR_STA_LISTEN_INTERVAL,
|
NLA_PUT_U16(msg, NL80211_ATTR_STA_LISTEN_INTERVAL,
|
||||||
params->listen_interval);
|
params->listen_interval);
|
||||||
|
|
||||||
|
#ifdef CONFIG_IEEE80211N
|
||||||
|
#ifdef NL80211_ATTR_HT_CAPABILITY
|
||||||
|
if (params->ht_capabilities) {
|
||||||
|
NLA_PUT(msg, NL80211_ATTR_HT_CAPABILITY,
|
||||||
|
params->ht_capabilities->length,
|
||||||
|
¶ms->ht_capabilities->data);
|
||||||
|
}
|
||||||
|
#endif /* NL80211_ATTR_HT_CAPABILITY */
|
||||||
|
#endif /* CONFIG_IEEE80211N */
|
||||||
|
|
||||||
ret = nl_send_auto_complete(drv->nl_handle, msg);
|
ret = nl_send_auto_complete(drv->nl_handle, msg);
|
||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
goto nla_put_failure;
|
goto nla_put_failure;
|
||||||
|
Loading…
Reference in New Issue
Block a user