Skip to content

Commit

Permalink
fix naming of physical layer for 22MB and 33MB data rates
Browse files Browse the repository at this point in the history
  • Loading branch information
tomaspinho committed Mar 25, 2020
1 parent 9b66ef4 commit 109257b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 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,
IEEE80211_PBCC_RATE_22MB,
IEEE80211_PBCC_RATE_33MB
};

inline bool match_ranges(u16 EID, u32 value)
Expand Down
5 changes: 3 additions & 2 deletions include/ieee80211.h
Original file line number Diff line number Diff line change
Expand Up @@ -813,12 +813,13 @@ 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
#define IEEE80211_PBCC_RATE_22MB 0x2c
#define IEEE80211_PBCC_RATE_33MB 0x42

#define IEEE80211_BASIC_RATE_MASK 0x80

#define IEEE80211_CCK_RATE_1MB_MASK (1<<0)
Expand Down

0 comments on commit 109257b

Please sign in to comment.