cfg80211/mac80211: make ieee80211_send_layer2_update a public function
PATCH 1/1 cfg80211/mac80211: make ieee80211_send_layer2_update a public function
Make ieee80211_send_layer2_update() a common function so other drivers can re-use it.
Add support in wil6210 to send L2UF on behalf of newly associated station by calling the common function.
Change-Id Ic2daa1b8392122931103eb5a963e14f8270818bb
Signed-off-by Dedy Lansky <[email protected]>
--- drivers/net/wireless/ath/wil6210/wmi.c | 2 ++ include/net/cfg80211.h | 11 ++++++++ net/mac80211/cfg.c | 48 ++-------------------------------- net/wireless/util.c | 45 +++++++++++++++++++++++++++++++ 4 files changed, 60 insertions(+), 46 deletions(-)
drivers/net/wireless/ath/wil6210/wmi.c +2 -0
@@ -962,6 +962,8 @@ static void wmi_evt_connect(struct wil6210_vif *vif, int id, void *d, int len) }cfg80211_new_sta (ndev, evt->bssid, sinfo,GFP_KERNEL ); +if (wdev->iftype ==NL80211_IFTYPE_AP ) +cfg80211_send_layer2_update (ndev, wil->sta[evt->cid].addr);kfree (sinfo); }else {
include/net/cfg80211.h +11 -0
@@ -4733,6 +4733,17 @@ const u8 *cfg80211_find_vendor_ie(unsigned int oui, int oui_type, const u8 *ies, int len);/** +* cfg80211_send_layer2_update - send layer 2 update frame +* +* @dev: network device +* @addr: STA MAC address +* +* Wireless drivers can use this function to update forwarding tables in bridge +* devices upon STA association. +*/ +void cfg80211_send_layer2_update (struct net_device *dev,const u8 *addr); + +/** * DOC: Regulatory enforcement infrastructure * * TODO
net/mac80211/cfg.c +2 -46
66 lines not on this page · raw message
net/wireless/util.c +45 -0
48 lines not on this page · raw message
Signature · 1 line
1.9.1
Quoted 7 lines · Dedy Lansky
Make
ieee80211_send_layer2_update()a common function so other drivers can re-use it.
Add support in wil6210 to send L2UF on behalf of newly associated station by calling the common function.Change-Id: Ic2daa1b8392122931103eb5a963e14f8270818bb
Applied, but without the wil6210 support - please make a separate patch for that. I also stripped the Change-Id :)
johannes