Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 00fc90c8 authored by John W. Linville's avatar John W. Linville
Browse files

minstrel_ht: remove unnecessary NULL check in minstrel_ht_update_caps



If sta is NULL, we will have problems long before we get here...

Reported-by: default avatarDan Carpenter <error27@gmail.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
Cc: Felix Fietkau <nbd@openwrt.org>
parent a6e492b9
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -636,7 +636,7 @@ minstrel_ht_update_caps(void *priv, struct ieee80211_supported_band *sband,
	int i;

	/* fall back to the old minstrel for legacy stations */
	if (sta && !sta->ht_cap.ht_supported) {
	if (!sta->ht_cap.ht_supported) {
		msp->is_ht = false;
		memset(&msp->legacy, 0, sizeof(msp->legacy));
		msp->legacy.r = msp->ratelist;