mac80211: Properly set work-item channel-type.
authorBen Greear <greearb@candelatech.com>
Mon, 7 Feb 2011 21:44:34 +0000 (13:44 -0800)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 9 Feb 2011 21:09:45 +0000 (16:09 -0500)
Some were indirectly set to NO_HT (zero), but I think
it's better to explicitly set it in case the enum ever
changes.  In cfg.c, it seems the channel-type was just
ignored (and thus always set to NO_HT).

Signed-off-by: Ben Greear <greearb@candelatech.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/mac80211/cfg.c
net/mac80211/mlme.c

index 845c76d58d254097915efec5c897ebd04f3e0b0c..f7a1f08ec3e07e4e171927954658f26f72e63dc7 100644 (file)
@@ -1862,6 +1862,7 @@ static int ieee80211_mgmt_tx(struct wiphy *wiphy, struct net_device *dev,
 
        wk->type = IEEE80211_WORK_OFFCHANNEL_TX;
        wk->chan = chan;
+       wk->chan_type = channel_type;
        wk->sdata = sdata;
        wk->done = ieee80211_offchan_tx_done;
        wk->offchan_tx.frame = skb;
index f77adf1a520ec757609d6abad7d8ec9362a869be..d89e87866e518d642ba1222b3cb44a6f71f1ea12 100644 (file)
@@ -2294,6 +2294,7 @@ int ieee80211_mgd_auth(struct ieee80211_sub_if_data *sdata,
        else
                wk->type = IEEE80211_WORK_DIRECT_PROBE;
        wk->chan = req->bss->channel;
+       wk->chan_type = NL80211_CHAN_NO_HT;
        wk->sdata = sdata;
        wk->done = ieee80211_probe_auth_done;
 
@@ -2443,6 +2444,7 @@ int ieee80211_mgd_assoc(struct ieee80211_sub_if_data *sdata,
                memcpy(wk->assoc.prev_bssid, req->prev_bssid, ETH_ALEN);
 
        wk->chan = req->bss->channel;
+       wk->chan_type = NL80211_CHAN_NO_HT;
        wk->sdata = sdata;
        wk->done = ieee80211_assoc_done;
        if (!bss->dtim_period &&