mac80211: Let userspace send action frames over mesh interfaces
Javier Cardona [Tue, 3 May 2011 23:57:08 +0000 (16:57 -0700)]
Signed-off-by: Javier Cardona <javier@cozybit.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>

net/wireless/mlme.c

index 16881fe..493b939 100644 (file)
@@ -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;