diff options
author | sam <sam@FreeBSD.org> | 2005-12-14 01:18:36 +0000 |
---|---|---|
committer | sam <sam@FreeBSD.org> | 2005-12-14 01:18:36 +0000 |
commit | 732b0618d0d13114f01447231ee859125cf0bfde (patch) | |
tree | 3195887a959d4cc37f41ae81078df1dda8dc853a /sys/net80211 | |
parent | 0ca99df92061089df47ff0b23fa2e3584dbf0172 (diff) | |
download | FreeBSD-src-732b0618d0d13114f01447231ee859125cf0bfde.zip FreeBSD-src-732b0618d0d13114f01447231ee859125cf0bfde.tar.gz |
When creating neighbor entries for an ahdemo bss apply the local
settings. In particular this allows us to use QoS frames in a
bss and in turn enables disabling ack's.
Diffstat (limited to 'sys/net80211')
-rw-r--r-- | sys/net80211/ieee80211_node.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/sys/net80211/ieee80211_node.c b/sys/net80211/ieee80211_node.c index dae4c67..254317ca 100644 --- a/sys/net80211/ieee80211_node.c +++ b/sys/net80211/ieee80211_node.c @@ -1096,6 +1096,15 @@ ieee80211_fakeup_adhoc_node(struct ieee80211_node_table *nt, ic->ic_newassoc(ni, 1); /* XXX not right for 802.1x/WPA */ ieee80211_node_authorize(ni); + if (ic->ic_opmode == IEEE80211_M_AHDEMO) { + /* + * Blindly propagate capabilities based on the + * local configuration. In particular this permits + * us to use QoS to disable ACK's. + */ + if (ic->ic_flags & IEEE80211_F_WME) + ni->ni_flags |= IEEE80211_NODE_QOS; + } } return ni; } |