mirror of
https://github.com/lwfinger/rtl8188eu.git
synced 2024-11-22 04:23:39 +00:00
rtl8188eu: Fix smatch errors due to MAX_PATH too small
Several of the struct definitions all for only 2 radio paths; however, the code now has 3 such paths. Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
This commit is contained in:
parent
7deab87b12
commit
c17cf6327b
4 changed files with 5 additions and 7 deletions
|
@ -75,7 +75,7 @@ enum rf_radio_path {
|
||||||
|
|
||||||
#define MAX_PG_GROUP 13
|
#define MAX_PG_GROUP 13
|
||||||
|
|
||||||
#define RF_PATH_MAX 2
|
#define RF_PATH_MAX 3
|
||||||
#define MAX_RF_PATH RF_PATH_MAX
|
#define MAX_RF_PATH RF_PATH_MAX
|
||||||
#define MAX_TX_COUNT 4 /* path numbers */
|
#define MAX_TX_COUNT 4 /* path numbers */
|
||||||
|
|
||||||
|
|
|
@ -283,8 +283,6 @@ struct odm_rate_adapt {
|
||||||
|
|
||||||
/* Declare for common info */
|
/* Declare for common info */
|
||||||
|
|
||||||
#define MAX_PATH_NUM_92CS 2
|
|
||||||
|
|
||||||
struct odm_phy_status_info {
|
struct odm_phy_status_info {
|
||||||
u8 RxPWDBAll;
|
u8 RxPWDBAll;
|
||||||
u8 SignalQuality; /* in 0-100 index. */
|
u8 SignalQuality; /* in 0-100 index. */
|
||||||
|
@ -950,7 +948,7 @@ struct odm_dm_struct {
|
||||||
struct timer_list FastAntTrainingTimer;
|
struct timer_list FastAntTrainingTimer;
|
||||||
}; /* DM_Dynamic_Mechanism_Structure */
|
}; /* DM_Dynamic_Mechanism_Structure */
|
||||||
|
|
||||||
#define ODM_RF_PATH_MAX 2
|
#define ODM_RF_PATH_MAX 3
|
||||||
|
|
||||||
enum ODM_RF_RADIO_PATH {
|
enum ODM_RF_RADIO_PATH {
|
||||||
ODM_RF_PATH_A = 0, /* Radio Path A */
|
ODM_RF_PATH_A = 0, /* Radio Path A */
|
||||||
|
|
|
@ -69,7 +69,7 @@ struct phy_rx_agc_info {
|
||||||
};
|
};
|
||||||
|
|
||||||
struct phy_status_rpt {
|
struct phy_status_rpt {
|
||||||
struct phy_rx_agc_info path_agc[2];
|
struct phy_rx_agc_info path_agc[ODM_RF_PATH_MAX];
|
||||||
u8 ch_corr[2];
|
u8 ch_corr[2];
|
||||||
u8 cck_sig_qual_ofdm_pwdb_all;
|
u8 cck_sig_qual_ofdm_pwdb_all;
|
||||||
u8 cck_agc_rpt_ofdm_cfosho_a;
|
u8 cck_agc_rpt_ofdm_cfosho_a;
|
||||||
|
@ -79,7 +79,7 @@ struct phy_status_rpt {
|
||||||
u8 path_cfotail[2];
|
u8 path_cfotail[2];
|
||||||
u8 pcts_mask[2];
|
u8 pcts_mask[2];
|
||||||
s8 stream_rxevm[2];
|
s8 stream_rxevm[2];
|
||||||
u8 path_rxsnr[2];
|
u8 path_rxsnr[ODM_RF_PATH_MAX];
|
||||||
u8 noise_power_db_lsb;
|
u8 noise_power_db_lsb;
|
||||||
u8 rsvd_2[3];
|
u8 rsvd_2[3];
|
||||||
u8 stream_csi[2];
|
u8 stream_csi[2];
|
||||||
|
|
|
@ -83,7 +83,7 @@ struct signal_stat {
|
||||||
u32 total_num; /* num of valid elements */
|
u32 total_num; /* num of valid elements */
|
||||||
u32 total_val; /* sum of valid elements */
|
u32 total_val; /* sum of valid elements */
|
||||||
};
|
};
|
||||||
#define MAX_PATH_NUM_92CS 2
|
#define MAX_PATH_NUM_92CS 3
|
||||||
struct phy_info {
|
struct phy_info {
|
||||||
u8 RxPWDBAll;
|
u8 RxPWDBAll;
|
||||||
u8 SignalQuality; /* in 0-100 index. */
|
u8 SignalQuality; /* in 0-100 index. */
|
||||||
|
|
Loading…
Reference in a new issue