Skip to content

Commit

Permalink
Refactor: define constants for new supplier data rates
Browse files Browse the repository at this point in the history
  • Loading branch information
tomaspinho committed Mar 25, 2020
1 parent 901aee3 commit f796747
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/rtw_wlan_util.c
Original file line number Diff line number Diff line change
Expand Up @@ -2286,12 +2286,12 @@ u8 support_rate_ranges[] = {
IEEE80211_OFDM_RATE_9MB,
IEEE80211_OFDM_RATE_12MB,
IEEE80211_OFDM_RATE_18MB,
IEEE80211_OFDM_RATE_22MB,
IEEE80211_OFDM_RATE_24MB,
IEEE80211_OFDM_RATE_36MB,
IEEE80211_OFDM_RATE_33MB,
IEEE80211_OFDM_RATE_48MB,
IEEE80211_OFDM_RATE_54MB,
0x2c, // 22MB
0x42, // 33MB
};

inline bool match_ranges(u16 EID, u32 value)
Expand Down
2 changes: 2 additions & 0 deletions include/ieee80211.h
Original file line number Diff line number Diff line change
Expand Up @@ -813,7 +813,9 @@ struct ieee80211_snap_hdr {
#define IEEE80211_OFDM_RATE_9MB 0x12
#define IEEE80211_OFDM_RATE_12MB 0x18
#define IEEE80211_OFDM_RATE_18MB 0x24
#define IEEE80211_OFDM_RATE_22MB 0x2c
#define IEEE80211_OFDM_RATE_24MB 0x30
#define IEEE80211_OFDM_RATE_33MB 0x42
#define IEEE80211_OFDM_RATE_36MB 0x48
#define IEEE80211_OFDM_RATE_48MB 0x60
#define IEEE80211_OFDM_RATE_54MB 0x6C
Expand Down

0 comments on commit f796747

Please sign in to comment.