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

Commit 5204267d authored by Joe Perches's avatar Joe Perches Committed by John W. Linville
Browse files

mac80211: Fix likely misuse of | for &



Using | with a constant is always true.
Likely this should have be &.

cc: Ben Greear <greearb@candelatech.com>
Signed-off-by: default avatarJoe Perches <joe@perches.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent d8c7aae6
Loading
Loading
Loading
Loading
+3 −3
Original line number Original line Diff line number Diff line
@@ -533,16 +533,16 @@ static void ieee80211_get_et_stats(struct wiphy *wiphy,
		sinfo.filled = 0;
		sinfo.filled = 0;
		sta_set_sinfo(sta, &sinfo);
		sta_set_sinfo(sta, &sinfo);


		if (sinfo.filled | STATION_INFO_TX_BITRATE)
		if (sinfo.filled & STATION_INFO_TX_BITRATE)
			data[i] = 100000 *
			data[i] = 100000 *
				cfg80211_calculate_bitrate(&sinfo.txrate);
				cfg80211_calculate_bitrate(&sinfo.txrate);
		i++;
		i++;
		if (sinfo.filled | STATION_INFO_RX_BITRATE)
		if (sinfo.filled & STATION_INFO_RX_BITRATE)
			data[i] = 100000 *
			data[i] = 100000 *
				cfg80211_calculate_bitrate(&sinfo.rxrate);
				cfg80211_calculate_bitrate(&sinfo.rxrate);
		i++;
		i++;


		if (sinfo.filled | STATION_INFO_SIGNAL_AVG)
		if (sinfo.filled & STATION_INFO_SIGNAL_AVG)
			data[i] = (u8)sinfo.signal_avg;
			data[i] = (u8)sinfo.signal_avg;
		i++;
		i++;
	} else {
	} else {