Skip to content
This repository has been archived by the owner on Sep 7, 2020. It is now read-only.

Commit

Permalink
common: tlvf: remove the unsupported option of 60Ghz
Browse files Browse the repository at this point in the history
The 60Ghz band is currently not supported, and shouldn't
be part of the available configuration of the selected bands.

Remove the 60Ghz from the eSelectedBands enum which is
used by the persistent DB.

PPM-383

Signed-off-by: DanielEdriPurpl <[email protected]>
  • Loading branch information
DanielEdriPurpl authored and mergify-bot committed Aug 13, 2020
1 parent b8df358 commit a395071
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1342,23 +1342,21 @@ typedef struct sBssidInfo {
uint32_t downlink_estimated_mac_data_rate_mbps;
uint32_t uplink_estimated_mac_data_rate_mbps;
uint8_t sta_measured_uplink_rssi_dbm_enc;
void struct_swap(){
void struct_swap()
{
bssid.struct_swap();
tlvf_swap(32, reinterpret_cast<uint8_t*>(&earliest_measurement_delta));
tlvf_swap(32, reinterpret_cast<uint8_t*>(&downlink_estimated_mac_data_rate_mbps));
tlvf_swap(32, reinterpret_cast<uint8_t*>(&uplink_estimated_mac_data_rate_mbps));
}
void struct_init(){
bssid.struct_init();
tlvf_swap(32, reinterpret_cast<uint8_t *>(&earliest_measurement_delta));
tlvf_swap(32, reinterpret_cast<uint8_t *>(&downlink_estimated_mac_data_rate_mbps));
tlvf_swap(32, reinterpret_cast<uint8_t *>(&uplink_estimated_mac_data_rate_mbps));
}
void struct_init() { bssid.struct_init(); }
} __attribute__((packed)) sBssidInfo;

enum eClientSelectedBands: uint8_t {
enum eClientSelectedBands : uint8_t {
eSelectedBands_Disabled = 0x0,
eSelectedBands_24G = 0x1,
eSelectedBands_5G = 0x2,
eSelectedBands_6G = 0x4,
eSelectedBands_60G = 0x8,
eSelectedBands_24G = 0x1,
eSelectedBands_5G = 0x2,
eSelectedBands_6G = 0x4,
};

typedef struct sClientConfig {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -984,7 +984,6 @@ eClientSelectedBands:
eSelectedBands_24G: 1
eSelectedBands_5G: 2
eSelectedBands_6G: 4
eSelectedBands_60G: 8

sClientConfig:
_type: struct
Expand Down

0 comments on commit a395071

Please sign in to comment.