Skip to content

Commit bc00a91

Browse files
committed
cfg80211: remove racy beacon_interval assignment
In case of AP mode, the beacon interval is already reset to zero inside cfg80211_stop_ap(), and in the other modes it isn't relevant. Remove the assignment to remove a potential race since the assignment isn't properly locked. Reported-by: Michal Kazior <michal.kazior@tieto.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
1 parent 1c37a72 commit bc00a91

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

‎net/wireless/core.c‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -788,8 +788,6 @@ void cfg80211_leave(struct cfg80211_registered_device *rdev,
788788
default:
789789
break;
790790
}
791-
792-
wdev->beacon_interval = 0;
793791
}
794792

795793
static int cfg80211_netdev_notifier_call(struct notifier_block *nb,

0 commit comments

Comments
 (0)