OSDN Git Service

mac80211: mesh: clean up rx_bcn_presp API
authorJohannes Berg <johannes.berg@intel.com>
Mon, 20 Sep 2021 13:40:07 +0000 (15:40 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Thu, 23 Sep 2021 14:26:33 +0000 (16:26 +0200)
commita5b983c6073140b624f64e79fea6d33c3e4315a0
tree1f89fc75684fc6ecd6526f9d1ad8c1de4ff331bd
parent01f84f0ed3b431b9aa40ad0af7d6849056fd3064
mac80211: mesh: clean up rx_bcn_presp API

We currently pass the entire elements to the rx_bcn_presp()
method, but only need mesh_config. Additionally, we use the
length of the elements to calculate back the entire frame's
length, but that's confusing - just pass the length of the
frame instead.

Link: https://lore.kernel.org/r/20210920154009.a18ed3d2da6c.I1824b773a0fbae4453e1433c184678ca14e8df45@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/ieee80211_i.h
net/mac80211/mesh.c
net/mac80211/mesh_sync.c