Commit 1ea57b1f authored by Shahar Levi's avatar Shahar Levi Committed by John W. Linville

mac80211: Update device channel in case of HW channel switch supported

The value is not updated properly for drivers that
support HW channel switch.  Since the switch is done entirely by the
driver and we don't call ieee80211_hw_config(), this value remains
untouched.  This patch fixes that by setting the new channel directly in
Signed-off-by: default avatarShahar Levi <>
Signed-off-by: default avatarJohn W. Linville <>
parent 5fbdf4a2
......@@ -390,6 +390,9 @@ static void ieee80211_chswitch_work(struct work_struct *work)
/* call "hw_config" only if doing sw channel switch */
} else {
/* update the device channel directly */
sdata->local-> = sdata->local->oper_channel;
/* XXX: shouldn't really modify cfg80211-owned data! */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment