Commit c7fff4e4 authored by Jes Sorensen's avatar Jes Sorensen Committed by Greg Kroah-Hartman

staging: rtl8723au: struct phy_info and struct odm_phy_info are identical

We don't need two copies of the same struct, it just leads to
pointless typecasts.
Signed-off-by: default avatarJes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent d095789a
...@@ -1639,7 +1639,8 @@ void odm_SwAntDivInit(struct dm_odm_t *pDM_Odm) ...@@ -1639,7 +1639,8 @@ void odm_SwAntDivInit(struct dm_odm_t *pDM_Odm)
{ {
} }
void ODM_SwAntDivChkPerPktRssi(struct dm_odm_t *pDM_Odm, u8 StationID, struct odm_phy_info *pPhyInfo) void ODM_SwAntDivChkPerPktRssi(struct dm_odm_t *pDM_Odm, u8 StationID,
struct phy_info *pPhyInfo)
{ {
} }
......
...@@ -91,7 +91,7 @@ odm_EVMdbToPercentage( ...@@ -91,7 +91,7 @@ odm_EVMdbToPercentage(
} }
static void odm_RxPhyStatus92CSeries_Parsing(struct dm_odm_t *pDM_Odm, static void odm_RxPhyStatus92CSeries_Parsing(struct dm_odm_t *pDM_Odm,
struct odm_phy_info *pPhyInfo, struct phy_info *pPhyInfo,
u8 *pPhyStatus, u8 *pPhyStatus,
struct odm_packet_info *pPktinfo) struct odm_packet_info *pPktinfo)
{ {
...@@ -281,7 +281,7 @@ void odm_Init_RSSIForDM23a(struct dm_odm_t *pDM_Odm) ...@@ -281,7 +281,7 @@ void odm_Init_RSSIForDM23a(struct dm_odm_t *pDM_Odm)
} }
static void odm_Process_RSSIForDM(struct dm_odm_t *pDM_Odm, static void odm_Process_RSSIForDM(struct dm_odm_t *pDM_Odm,
struct odm_phy_info *pPhyInfo, struct phy_info *pPhyInfo,
struct odm_packet_info *pPktinfo) struct odm_packet_info *pPktinfo)
{ {
s32 UndecoratedSmoothedPWDB, UndecoratedSmoothedCCK; s32 UndecoratedSmoothedPWDB, UndecoratedSmoothedCCK;
...@@ -396,7 +396,7 @@ static void odm_Process_RSSIForDM(struct dm_odm_t *pDM_Odm, ...@@ -396,7 +396,7 @@ static void odm_Process_RSSIForDM(struct dm_odm_t *pDM_Odm,
/* Endianness before calling this API */ /* Endianness before calling this API */
static void ODM_PhyStatusQuery23a_92CSeries(struct dm_odm_t *pDM_Odm, static void ODM_PhyStatusQuery23a_92CSeries(struct dm_odm_t *pDM_Odm,
struct odm_phy_info *pPhyInfo, struct phy_info *pPhyInfo,
u8 *pPhyStatus, u8 *pPhyStatus,
struct odm_packet_info *pPktinfo) struct odm_packet_info *pPktinfo)
{ {
...@@ -411,7 +411,7 @@ static void ODM_PhyStatusQuery23a_92CSeries(struct dm_odm_t *pDM_Odm, ...@@ -411,7 +411,7 @@ static void ODM_PhyStatusQuery23a_92CSeries(struct dm_odm_t *pDM_Odm,
} }
} }
void ODM_PhyStatusQuery23a(struct dm_odm_t *pDM_Odm, struct odm_phy_info *pPhyInfo, void ODM_PhyStatusQuery23a(struct dm_odm_t *pDM_Odm, struct phy_info *pPhyInfo,
u8 *pPhyStatus, struct odm_packet_info *pPktinfo) u8 *pPhyStatus, struct odm_packet_info *pPktinfo)
{ {
ODM_PhyStatusQuery23a_92CSeries(pDM_Odm, pPhyInfo, pPhyStatus, pPktinfo); ODM_PhyStatusQuery23a_92CSeries(pDM_Odm, pPhyInfo, pPhyStatus, pPktinfo);
......
...@@ -184,7 +184,7 @@ void update_recvframe_phyinfo(struct recv_frame *precvframe, ...@@ -184,7 +184,7 @@ void update_recvframe_phyinfo(struct recv_frame *precvframe,
struct rtw_adapter *padapter = precvframe->adapter; struct rtw_adapter *padapter = precvframe->adapter;
struct rx_pkt_attrib *pattrib = &precvframe->attrib; struct rx_pkt_attrib *pattrib = &precvframe->attrib;
struct hal_data_8723a *pHalData = GET_HAL_DATA(padapter); struct hal_data_8723a *pHalData = GET_HAL_DATA(padapter);
struct odm_phy_info *pPHYInfo = (struct odm_phy_info *)(&pattrib->phy_info); struct phy_info *pPHYInfo = &pattrib->phy_info;
struct odm_packet_info pkt_info; struct odm_packet_info pkt_info;
u8 *sa = NULL, *da; u8 *sa = NULL, *da;
struct sta_priv *pstapriv; struct sta_priv *pstapriv;
......
...@@ -255,20 +255,6 @@ struct odm_rate_adapt { ...@@ -255,20 +255,6 @@ struct odm_rate_adapt {
/* Declare for common info */ /* Declare for common info */
struct odm_phy_info {
u8 RxPWDBAll;
u8 SignalQuality; /* in 0-100 index. */
u8 RxMIMOSignalQuality[RF_PATH_MAX]; /* EVM */
u8 RxMIMOSignalStrength[RF_PATH_MAX];/* in 0~100 index */
s8 RxPower; /* in dBm Translate from PWdB */
s8 RecvSignalPower;/* Real power in dBm for this packet, no beautification and aggregation. Keep this raw info to be used for the other procedures. */
u8 BTRxRSSIPercentage;
u8 SignalStrength; /* in 0-100 index. */
u8 RxPwr[RF_PATH_MAX];/* per-path's pwdb */
u8 RxSNR[RF_PATH_MAX];/* per-path's SNR */
};
struct odm_phy_dbg_info { struct odm_phy_dbg_info {
/* ODM Write,debug info */ /* ODM Write,debug info */
s8 RxSNRdB[RF_PATH_MAX]; s8 RxSNRdB[RF_PATH_MAX];
...@@ -1136,7 +1122,7 @@ bool ODM_RAStateCheck23a(struct dm_odm_t *pDM_Odm, s32 RSSI, bool bForceUpdate, ...@@ -1136,7 +1122,7 @@ bool ODM_RAStateCheck23a(struct dm_odm_t *pDM_Odm, s32 RSSI, bool bForceUpdate,
#define dm_SWAW_RSSI_Check ODM_SwAntDivChkPerPktRssi #define dm_SWAW_RSSI_Check ODM_SwAntDivChkPerPktRssi
void ODM_SwAntDivChkPerPktRssi(struct dm_odm_t *pDM_Odm, u8 StationID, void ODM_SwAntDivChkPerPktRssi(struct dm_odm_t *pDM_Odm, u8 StationID,
struct odm_phy_info *pPhyInfo); struct phy_info *pPhyInfo);
u32 ConvertTo_dB23a(u32 Value); u32 ConvertTo_dB23a(u32 Value);
......
...@@ -147,7 +147,7 @@ void odm_Init_RSSIForDM23a(struct dm_odm_t *pDM_Odm); ...@@ -147,7 +147,7 @@ void odm_Init_RSSIForDM23a(struct dm_odm_t *pDM_Odm);
void void
ODM_PhyStatusQuery23a( ODM_PhyStatusQuery23a(
struct dm_odm_t *pDM_Odm, struct dm_odm_t *pDM_Odm,
struct odm_phy_info *pPhyInfo, struct phy_info *pPhyInfo,
u8 * pPhyStatus, u8 * pPhyStatus,
struct odm_packet_info *pPktinfo struct odm_packet_info *pPktinfo
); );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment