git: f82316f67883 - main - net80211: move IEEE80211_F_WME check to vap for consistency

From: Bjoern A. Zeeb <bz_at_FreeBSD.org>
Date: Thu, 29 Sep 2022 12:57:13 UTC
The branch main has been updated by bz:

URL: https://cgit.FreeBSD.org/src/commit/?id=f82316f67883b53ee0f79bf28be32dfa7d64d5e3

commit f82316f67883b53ee0f79bf28be32dfa7d64d5e3
Author:     Bjoern A. Zeeb <bz@FreeBSD.org>
AuthorDate: 2022-09-26 20:57:41 +0000
Commit:     Bjoern A. Zeeb <bz@FreeBSD.org>
CommitDate: 2022-09-29 12:54:23 +0000

    net80211: move IEEE80211_F_WME check to vap for consistency
    
    The IEEE80211_F_WME checks done on the ic were changed to be per-vap
    back in the time when multi-bss was introduced or earlier in 2008.
    This one was left out but given it is a (re-)accos-req case I see
    no reason not to use the vap value here for consistency too.
    
    Sponsored by:   The FreeBSD Foundation
    MFC after:      1 week
    Reviewed by:    adrian
    Differential Revision: https://reviews.freebsd.org/D36733
---
 sys/net80211/ieee80211_output.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/net80211/ieee80211_output.c b/sys/net80211/ieee80211_output.c
index c24ce3981b20..07cc8ed1c3ed 100644
--- a/sys/net80211/ieee80211_output.c
+++ b/sys/net80211/ieee80211_output.c
@@ -2896,7 +2896,7 @@ ieee80211_send_mgmt(struct ieee80211_node *ni, int type, int arg)
 		}
 
 		frm = ieee80211_add_wpa(frm, vap);
-		if ((ic->ic_flags & IEEE80211_F_WME) &&
+		if ((vap->iv_flags & IEEE80211_F_WME) &&
 		    ni->ni_ies.wme_ie != NULL)
 			frm = ieee80211_add_wme_info(frm, &ic->ic_wme, ni);