wifi: mac80211: tx: simplify control port frame transmission

ieee80211_tx_control_port() already does most of the necessary work,
much of which is repeated by __ieee80211_subif_start_xmit(). Most
work in the latter function is completely unnecessary since these
are special frames we built directly here (long enough, etc.)

Call ieee80211_build_hdr() and ieee80211_xmit() directly instead.

It also means some errors can now be reported to userspace rather
than frames silently getting dropped, but that's a good thing.

Link: https://patch.msgid.link/20260803141309.292711-11-johannes@sipsolutions.net
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
This commit is contained in:
Johannes Berg 2026-08-03 16:08:38 +02:00
commit d5a014204a