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

Commit aac09fbf authored by Johannes Berg's avatar Johannes Berg Committed by John W. Linville
Browse files

wireless: fix ERP rate flags



In the rate API patch I accidentally reverted the test for
ERP rates, this fixes it. All rates except 1, 2, 5.5 and 11
MBit are ERP rates, not those.

Signed-off-by: default avatarJohannes Berg <johannes@sipsolutions.net>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent b7c50de9
Loading
Loading
Loading
Loading
+4 −4
Original line number Original line Diff line number Diff line
@@ -73,10 +73,10 @@ static void set_mandatory_flags_band(struct ieee80211_supported_band *sband,
				want--;
				want--;
			}
			}


			if (sband->bitrates[i].bitrate == 10 ||
			if (sband->bitrates[i].bitrate != 10 &&
			    sband->bitrates[i].bitrate == 20 ||
			    sband->bitrates[i].bitrate != 20 &&
			    sband->bitrates[i].bitrate == 55 ||
			    sband->bitrates[i].bitrate != 55 &&
			    sband->bitrates[i].bitrate == 110)
			    sband->bitrates[i].bitrate != 110)
				sband->bitrates[i].flags |=
				sband->bitrates[i].flags |=
					IEEE80211_RATE_ERP_G;
					IEEE80211_RATE_ERP_G;
		}
		}