developer | 59f248e | 2023-07-07 13:47:26 +0800 | [diff] [blame^] | 1 | From b95d01bc1cf24768794d43feac8baae225f2c2d8 Mon Sep 17 00:00:00 2001 |
| 2 | From: StanleyYP Wang <StanleyYP.Wang@mediatek.com> |
| 3 | Date: Thu, 27 Jul 2023 10:25:59 +0800 |
| 4 | Subject: [PATCH 20/21] cfg80211: mtk: fix early return in |
| 5 | cfg80211_stop_background_radar_detection |
| 6 | |
| 7 | Signed-off-by: StanleyYP Wang <StanleyYP.Wang@mediatek.com> |
| 8 | --- |
| 9 | net/wireless/mlme.c | 2 +- |
| 10 | 1 file changed, 1 insertion(+), 1 deletion(-) |
| 11 | |
| 12 | diff --git a/net/wireless/mlme.c b/net/wireless/mlme.c |
| 13 | index 205c1bc..13abfc0 100644 |
| 14 | --- a/net/wireless/mlme.c |
| 15 | +++ b/net/wireless/mlme.c |
| 16 | @@ -1113,9 +1113,9 @@ void cfg80211_stop_background_radar_detection(struct wireless_dev *wdev) |
| 17 | return; |
| 18 | |
| 19 | rdev_set_radar_background(rdev, NULL); |
| 20 | - rdev->background_radar_wdev = NULL; /* Release offchain ownership */ |
| 21 | |
| 22 | __cfg80211_background_cac_event(rdev, wdev, |
| 23 | &rdev->background_radar_chandef, |
| 24 | NL80211_RADAR_CAC_ABORTED); |
| 25 | + rdev->background_radar_wdev = NULL; /* Release offchain ownership */ |
| 26 | } |
| 27 | -- |
| 28 | 2.18.0 |
| 29 | |