From 732b0618d0d13114f01447231ee859125cf0bfde Mon Sep 17 00:00:00 2001 From: sam Date: Wed, 14 Dec 2005 01:18:36 +0000 Subject: 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. --- sys/net80211/ieee80211_node.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'sys/net80211/ieee80211_node.c') 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; } -- cgit v1.1