]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
mac80211: fix typo in action frame handling
authorJohannes Berg <johannes@sipsolutions.net>
Mon, 8 Sep 2008 14:31:48 +0000 (16:31 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 11 Sep 2008 19:53:35 +0000 (15:53 -0400)
This says chan_switch.action_code but really means
measurement.action_code, of course the actual offset in
the frame is the same, it's just harder to understand
this way.

Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/mac80211/mlme.c

index eb1832aa1fe5d737c12226d1e7facb8fbbd055c4..2341e5b3c248f5bb802e3cf2464da6edd9550ee1 100644 (file)
@@ -2996,7 +2996,7 @@ static void ieee80211_rx_mgmt_action(struct ieee80211_sub_if_data *sdata,
        case WLAN_CATEGORY_SPECTRUM_MGMT:
                if (local->hw.conf.channel->band != IEEE80211_BAND_5GHZ)
                        break;
-               switch (mgmt->u.action.u.chan_switch.action_code) {
+               switch (mgmt->u.action.u.measurement.action_code) {
                case WLAN_ACTION_SPCT_MSR_REQ:
                        if (len < (IEEE80211_MIN_ACTION_SIZE +
                                   sizeof(mgmt->u.action.u.measurement)))