mac80211: fix mesh action frame handling
authorJohannes Berg <johannes@sipsolutions.net>
Thu, 18 Sep 2008 10:24:20 +0000 (12:24 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 24 Sep 2008 20:18:03 +0000 (16:18 -0400)
When I split off the action frame handling I made the code drop
all action frames we don't want to handle. This is wrong since
some action frames are actually handled via rx_h_mgmt through
being queued to the sta/mesh implementations.

Thanks to Li YanBo for noticing the problem.

Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Cc: Li YanBo <dreamfly281@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/mac80211/rx.c

index 2efa4dd47b5d80e35f13fa0ad8976ec0acb2d369..c489865761bc64f3254b8a01ac9b13e8b179c0c2 100644 (file)
@@ -1557,7 +1557,7 @@ ieee80211_rx_h_action(struct ieee80211_rx_data *rx)
         */
        if (sdata->vif.type != NL80211_IFTYPE_STATION &&
            sdata->vif.type != NL80211_IFTYPE_ADHOC)
-               return RX_DROP_MONITOR;
+               return RX_CONTINUE;
 
        switch (mgmt->u.action.category) {
        case WLAN_CATEGORY_BACK: