From: Javier Cardona Date: Tue, 3 May 2011 23:57:08 +0000 (-0700) Subject: mac80211: Let userspace send action frames over mesh interfaces X-Git-Tag: v3.0~349^2~16^2~123 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0778a6a3e56cabdc322755f97ad23ee67efad0f0;p=platform%2Fkernel%2Flinux-amlogic.git mac80211: Let userspace send action frames over mesh interfaces Signed-off-by: Javier Cardona Signed-off-by: John W. Linville --- diff --git a/net/wireless/mlme.c b/net/wireless/mlme.c index 16881fe..493b939 100644 --- a/net/wireless/mlme.c +++ b/net/wireless/mlme.c @@ -963,6 +963,16 @@ int cfg80211_mlme_mgmt_tx(struct cfg80211_registered_device *rdev, if (memcmp(mgmt->bssid, dev->dev_addr, ETH_ALEN)) err = -EINVAL; break; + case NL80211_IFTYPE_MESH_POINT: + if (memcmp(mgmt->sa, mgmt->bssid, ETH_ALEN)) { + err = -EINVAL; + break; + } + /* + * check for mesh DA must be done by driver as + * cfg80211 doesn't track the stations + */ + break; default: err = -EOPNOTSUPP; break;