mac80211: Let userspace send action frames over mesh interfaces
authorJavier Cardona <javier@cozybit.com>
Tue, 3 May 2011 23:57:08 +0000 (16:57 -0700)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 11 May 2011 18:37:47 +0000 (14:37 -0400)
Signed-off-by: Javier Cardona <javier@cozybit.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/wireless/mlme.c

index 16881fea4ce6e1917ea36b39b83dfb6ca6916278..493b939970cd6cbefbd7ebad18cbf6c4d1405ed5 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;