]> www.infradead.org Git - users/jedix/linux-maple.git/commit
wifi: nl80211: clean up coalescing rule handling
authorJohannes Berg <johannes.berg@intel.com>
Thu, 23 May 2024 10:02:13 +0000 (12:02 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 29 May 2024 08:38:53 +0000 (10:38 +0200)
commit8526f8c877baf3f9e678b31fd7d1066b776775cc
tree54031e2504091b1070bc0f2125a7d025706ebf53
parent6322e0e75a01d30b914fa87470ad00d8db844f72
wifi: nl80211: clean up coalescing rule handling

There's no need to allocate a tiny struct and then
an array again, just allocate the two together and
use __counted_by(). Also unify the freeing.

Reviewed-by: Miriam Rachel Korenblit <miriam.rachel.korenblit@intel.com>
Link: https://msgid.link/20240523120213.48a40cfb96f9.Ia02bf8f8fefbf533c64c5fa26175848d4a3a7899@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
include/net/cfg80211.h
net/wireless/core.c
net/wireless/nl80211.c
net/wireless/nl80211.h