#define BAND_24G 1
#define BAND_BOTH 2
-typedef struct _CH_DESP {
- UCHAR FirstChannel;
- UCHAR NumOfCh;
- CHAR MaxTxPwr; /* dBm */
- UCHAR Geography; /* 0:out door, 1:in door, 2:both */
+struct rt_ch_desp {
+ u8 FirstChannel;
+ u8 NumOfCh;
+ char MaxTxPwr; /* dBm */
+ u8 Geography; /* 0:out door, 1:in door, 2:both */
BOOLEAN DfsReq; /* Dfs require, 0: No, 1: yes. */
-} CH_DESP, *PCH_DESP;
+};
-typedef struct _CH_REGION {
- UCHAR CountReg[3];
- UCHAR DfsType; /* 0: CE, 1: FCC, 2: JAP, 3:JAP_W53, JAP_W56 */
- CH_DESP ChDesp[10];
-} CH_REGION, *PCH_REGION;
+struct rt_ch_region {
+ u8 CountReg[3];
+ u8 DfsType; /* 0: CE, 1: FCC, 2: JAP, 3:JAP_W53, JAP_W56 */
+ struct rt_ch_desp ChDesp[10];
+};
-extern CH_REGION ChRegion[];
+extern struct rt_ch_region ChRegion[];
-typedef struct _CH_FREQ_MAP_ {
- UINT16 channel;
- UINT16 freqKHz;
-} CH_FREQ_MAP;
+struct rt_ch_freq_map {
+ u16 channel;
+ u16 freqKHz;
+};
-extern CH_FREQ_MAP CH_HZ_ID_MAP[];
+extern struct rt_ch_freq_map CH_HZ_ID_MAP[];
extern int CH_HZ_ID_MAP_NUM;
#define MAP_CHANNEL_ID_TO_KHZ(_ch, _khz) \
(_ch) = 1; \
}while(0)
-VOID BuildChannelListEx(IN PRTMP_ADAPTER pAd);
+void BuildChannelListEx(struct rt_rtmp_adapter *pAd);
-VOID BuildBeaconChList(IN PRTMP_ADAPTER pAd,
- OUT PUCHAR pBuf, OUT PULONG pBufLen);
+void BuildBeaconChList(struct rt_rtmp_adapter *pAd,
+ u8 *pBuf, unsigned long *pBufLen);
-VOID N_ChannelCheck(IN PRTMP_ADAPTER pAd);
+void N_ChannelCheck(struct rt_rtmp_adapter *pAd);
-VOID N_SetCenCh(IN PRTMP_ADAPTER pAd);
+void N_SetCenCh(struct rt_rtmp_adapter *pAd);
-UINT8 GetCuntryMaxTxPwr(IN PRTMP_ADAPTER pAd, IN UINT8 channel);
+u8 GetCuntryMaxTxPwr(struct rt_rtmp_adapter *pAd, u8 channel);
#endif /* __CHLIST_H__ */