Skip to content

Commit

Permalink
wlcore: update channel also when channel type has changed
Browse files Browse the repository at this point in the history
We were not updating wl->channel_type when only the type has changed
in wl12xx_config_vif.  This was causing problems when restarting the
AP role in the same channel as before.

Signed-off-by: Luciano Coelho <coelho@ti.com>
  • Loading branch information
Luciano Coelho committed Feb 27, 2012
1 parent 24c27a3 commit 1d59bd9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/net/wireless/ti/wlcore/main.c
Expand Up @@ -2353,7 +2353,8 @@ static int wl12xx_config_vif(struct wl1271 *wl, struct wl12xx_vif *wlvif,
/* if the channel changes while joined, join again */
if (changed & IEEE80211_CONF_CHANGE_CHANNEL &&
((wlvif->band != conf->channel->band) ||
(wlvif->channel != channel))) {
(wlvif->channel != channel) ||
wlvif->channel_type != conf->channel_type)) {
/* send all pending packets */
wl1271_tx_work_locked(wl);
wlvif->band = conf->channel->band;
Expand Down

0 comments on commit 1d59bd9

Please sign in to comment.