From: Johannes Berg Date: Mon, 23 Jan 2017 08:29:09 +0000 (+0100) Subject: mac80211: don't try to sleep in rate_control_rate_init() X-Git-Tag: v4.9.68~43 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=dee48e57ae22d8dedb37eda71e029e731034b0e6;p=platform%2Fkernel%2Flinux-amlogic.git mac80211: don't try to sleep in rate_control_rate_init() [ Upstream commit 115865fa0826ed18ca04717cf72d0fe874c0fe7f ] In my previous patch, I missed that rate_control_rate_init() is called from some places that cannot sleep, so it cannot call ieee80211_recalc_min_chandef(). Remove that call for now to fix the context bug, we'll have to find a different way to fix the minimum channel width issue. Fixes: 96aa2e7cf126 ("mac80211: calculate min channel width correctly") Reported-by: Xiaolong Ye (via lkp-robot) Signed-off-by: Johannes Berg Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- diff --git a/net/mac80211/rate.c b/net/mac80211/rate.c index 9e2641d45587..206698bc93f4 100644 --- a/net/mac80211/rate.c +++ b/net/mac80211/rate.c @@ -40,8 +40,6 @@ void rate_control_rate_init(struct sta_info *sta) ieee80211_sta_set_rx_nss(sta); - ieee80211_recalc_min_chandef(sta->sdata); - if (!ref) return;