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: Joe Perches <joe@perches.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
committed by
John W. Linville
parent
d8c7aae64c
commit
5204267d2f
@@ -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 {
|
||||||
|
Reference in New Issue
Block a user