]> git.karo-electronics.de Git - mv-sheeva.git/commitdiff
staging: rtl8192e: Convert typedef HT_CHANNEL_WIDTH to enum ht_channel_width
authorLarry Finger <Larry.Finger@lwfinger.net>
Tue, 19 Jul 2011 23:20:30 +0000 (18:20 -0500)
committerLarry Finger <Larry.Finger@lwfinger.net>
Wed, 24 Aug 2011 15:49:01 +0000 (10:49 -0500)
Remove typedef from enum.
Rename enum.
Rename uses.

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
drivers/staging/rtl8192e/r8190P_rtl8256.c
drivers/staging/rtl8192e/r8190P_rtl8256.h
drivers/staging/rtl8192e/r8192E_phy.c
drivers/staging/rtl8192e/r8192E_phy.h
drivers/staging/rtl8192e/rtl819x_HT.h
drivers/staging/rtl8192e/rtl819x_HTProc.c
drivers/staging/rtl8192e/rtl_core.h
drivers/staging/rtl8192e/rtllib.h
drivers/staging/rtl8192e/rtllib_rx.c
drivers/staging/rtl8192e/rtllib_softmac_wx.c

index 08c913c0454d36f623c6fdc966c2e8ff6e227970..e8bef59a7984613e668a54b36d9c9ef726fec251 100644 (file)
@@ -22,7 +22,7 @@
 #include "r8192E_phy.h"
 #include "r8190P_rtl8256.h"
 
-void PHY_SetRF8256Bandwidth(struct net_device* dev , HT_CHANNEL_WIDTH Bandwidth)
+void PHY_SetRF8256Bandwidth(struct net_device* dev , enum ht_channel_width Bandwidth)
 {
        u8      eRFPath;
        struct r8192_priv *priv = rtllib_priv(dev);
index 32d2822dcf5b32f9ccfb933f35f95eae6194642c..00fe5a1bb7ec632dac79833e265902db99ec86ae 100644 (file)
@@ -21,7 +21,7 @@
 #define RTL8225H
 
 #define RTL819X_TOTAL_RF_PATH 2
-extern void PHY_SetRF8256Bandwidth(struct net_device* dev , HT_CHANNEL_WIDTH Bandwidth);
+extern void PHY_SetRF8256Bandwidth(struct net_device* dev , enum ht_channel_width Bandwidth);
 extern bool PHY_RF8256_Config(struct net_device* dev);
 extern bool phy_RF8256_Config_ParaFile(struct net_device* dev);
 extern void PHY_SetRF8256CCKTxPower(struct net_device* dev, u8 powerlevel);
index 8a48d5b37dd4b0ff1be1362a9f943ba4625a0a17..f93c78082132ed13437ce28a8a534695ca3f401a 100644 (file)
@@ -1264,7 +1264,7 @@ void rtl8192_SetBWModeWorkItem(struct net_device *dev)
        RT_TRACE(COMP_SWBW, "<==SetBWMode819xUsb()");
 }
 
-void rtl8192_SetBWMode(struct net_device *dev, HT_CHANNEL_WIDTH        Bandwidth, HT_EXTCHNL_OFFSET Offset)
+void rtl8192_SetBWMode(struct net_device *dev, enum ht_channel_width Bandwidth, HT_EXTCHNL_OFFSET Offset)
 {
        struct r8192_priv *priv = rtllib_priv(dev);
 
index 60892ff39a80bfd73cadd85ef35c2f087b518c42..9ba402ef9e8131fc6b08ae6fbfede22bae767796 100644 (file)
@@ -113,7 +113,7 @@ extern void rtl8192_phy_updateInitGain(struct net_device* dev);
 extern u8 rtl8192_phy_ConfigRFWithHeaderFile(struct net_device* dev, enum rf90_radio_path eRFPath);
 
 extern u8 rtl8192_phy_SwChnl(struct net_device* dev, u8 channel);
-extern void rtl8192_SetBWMode(struct net_device *dev, HT_CHANNEL_WIDTH Bandwidth, HT_EXTCHNL_OFFSET Offset);
+extern void rtl8192_SetBWMode(struct net_device *dev, enum ht_channel_width Bandwidth, HT_EXTCHNL_OFFSET Offset);
 extern void rtl8192_SwChnl_WorkItem(struct net_device *dev);
 extern void rtl8192_SetBWModeWorkItem(struct net_device *dev);
 extern void InitialGain819xPci(struct net_device *dev, u8 Operation);
index 430d064b1e68bc51c114c8702a3aee40651e23fa..c8f7cf5f6e7f536349a514dac67147418e2d6cc7 100644 (file)
@@ -58,10 +58,10 @@ enum ht_mcs_rate {
        HT_MCS15 = 0x00008000,
 };
 
-typedef enum _HT_CHANNEL_WIDTH{
+enum ht_channel_width {
        HT_CHANNEL_WIDTH_20 = 0,
        HT_CHANNEL_WIDTH_20_40 = 1,
-} HT_CHANNEL_WIDTH, *PHT_CHANNEL_WIDTH;
+};
 
 typedef enum _HT_EXTCHNL_OFFSET{
        HT_EXTCHNL_OFFSET_NO_EXT = 0,
@@ -344,7 +344,7 @@ struct bss_ht {
        u16                                     bdHTInfoLen;
 
        HT_SPEC_VER                             bdHTSpecVer;
-       HT_CHANNEL_WIDTH                        bdBandWidth;
+       enum ht_channel_width bdBandWidth;
 
        u8                                      bdRT2RTAggregation;
        u8                                      bdRT2RTLongSlotTime;
index 10cce89b10e60c5ed0930a534030599fb47c5c6b..2f6c223c79ba71d5fdbfd15dc62b884432aa4c94 100644 (file)
@@ -831,7 +831,7 @@ u8 HTFilterMCSRate( struct rtllib_device* ieee, u8* pSupportMCS, u8* pOperateMCS
 
        return true;
 }
-void HTSetConnectBwMode(struct rtllib_device* ieee, HT_CHANNEL_WIDTH   Bandwidth, HT_EXTCHNL_OFFSET    Offset);
+void HTSetConnectBwMode(struct rtllib_device* ieee, enum ht_channel_width Bandwidth, HT_EXTCHNL_OFFSET Offset);
 void HTOnAssocRsp(struct rtllib_device *ieee)
 {
        struct rt_hi_throughput *pHTInfo = ieee->pHTInfo;
@@ -861,7 +861,7 @@ void HTOnAssocRsp(struct rtllib_device *ieee)
                pPeerHTInfo = (struct ht_info_ele *)(pHTInfo->PeerHTInfoBuf);
 
        RTLLIB_DEBUG_DATA(RTLLIB_DL_DATA|RTLLIB_DL_HT, pPeerHTCap, sizeof(struct ht_capab_ele));
-       HTSetConnectBwMode(ieee, (HT_CHANNEL_WIDTH)(pPeerHTCap->ChlWidth), (HT_EXTCHNL_OFFSET)(pPeerHTInfo->ExtChlOffset));
+       HTSetConnectBwMode(ieee, (enum ht_channel_width)(pPeerHTCap->ChlWidth), (HT_EXTCHNL_OFFSET)(pPeerHTInfo->ExtChlOffset));
        pHTInfo->bCurTxBW40MHz = ((pPeerHTInfo->RecommemdedTxWidth == 1)?true:false);
 
        pHTInfo->bCurShortGI20MHz=
@@ -1137,7 +1137,7 @@ u8 HTCCheck(struct rtllib_device* ieee, u8*       pFrame)
        return false;
 }
 
-void HTSetConnectBwMode(struct rtllib_device* ieee, HT_CHANNEL_WIDTH   Bandwidth, HT_EXTCHNL_OFFSET    Offset)
+void HTSetConnectBwMode(struct rtllib_device* ieee, enum ht_channel_width Bandwidth, HT_EXTCHNL_OFFSET Offset)
 {
        struct rt_hi_throughput *pHTInfo = ieee->pHTInfo;
 
index f12fe4cd29383d8ef4bb6fa4d10eb16a97057cfe..46d8fb99e701674eb5a7a948df9d6f2a939f3c63 100644 (file)
@@ -589,7 +589,7 @@ struct r8192_priv {
 
        RT_RF_TYPE_819xU                rf_chip;
        IC_INFERIORITY_8192S            IC_Class;
-       HT_CHANNEL_WIDTH                CurrentChannelBW;
+       enum ht_channel_width CurrentChannelBW;
        struct bb_reg_definition PHYRegDef[4];
        struct rate_adaptive rate_adaptive;
 
index b5ee8e565a48aa55d8f2a11eeb61f096c8c7d10d..3890b088b755f398754e63fd0eee5160e0048a71 100644 (file)
@@ -2095,7 +2095,7 @@ struct rtllib_device {
        unsigned long status;
        short hwscan_ch_bk;
        HT_EXTCHNL_OFFSET chan_offset_bk;
-       HT_CHANNEL_WIDTH bandwidth_bk;
+       enum ht_channel_width bandwidth_bk;
        u8 hwscan_sem_up;
        u8      CntAfterLink;
 
@@ -2512,7 +2512,7 @@ struct rtllib_device {
        /* check whether Tx hw resouce available */
        short (*check_nic_enough_desc)(struct net_device *dev, int queue_index);
        short (*get_nic_desc_num)(struct net_device *dev, int queue_index);
-       void (*SetBWModeHandler)(struct net_device *dev, HT_CHANNEL_WIDTH Bandwidth, HT_EXTCHNL_OFFSET Offset);
+       void (*SetBWModeHandler)(struct net_device *dev, enum ht_channel_width Bandwidth, HT_EXTCHNL_OFFSET Offset);
        bool (*GetNmodeSupportBySecCfg)(struct net_device* dev);
        void (*SetWirelessMode)(struct net_device* dev, u8 wireless_mode);
        bool (*GetHalfNmodeSupportByAPsHandler)(struct net_device* dev);
@@ -2884,7 +2884,7 @@ extern int rtllib_wx_get_rts(struct rtllib_device *ieee,
 extern void HTDebugHTCapability(u8* CapIE, u8* TitleString );
 extern void HTDebugHTInfo(u8*  InfoIE, u8* TitleString);
 
-void HTSetConnectBwMode(struct rtllib_device* ieee, HT_CHANNEL_WIDTH Bandwidth, HT_EXTCHNL_OFFSET    Offset);
+void HTSetConnectBwMode(struct rtllib_device* ieee, enum ht_channel_width Bandwidth, HT_EXTCHNL_OFFSET    Offset);
 extern void HTUpdateDefaultSetting(struct rtllib_device* ieee);
 extern void HTConstructCapabilityElement(struct rtllib_device* ieee, u8* posHTCap, u8* len, u8 isEncrypt,bool bAssoc);
 extern void HTConstructInfoElement(struct rtllib_device* ieee, u8* posHTInfo, u8* len, u8 isEncrypt);
index ee05d7685f920235470b296a5ee455923d7e226c..24ad9713d0b65a5be7551edefadbd0175ef78e29 100644 (file)
@@ -2157,7 +2157,7 @@ int rtllib_parse_info_param(struct rtllib_device *ieee,
                                network->bssht.bdSupportHT = true;
                                network->bssht.bdHT1R = ((((struct ht_capab_ele *)(network->bssht.bdHTCapBuf))->MCS[1]) == 0);
 
-                               network->bssht.bdBandWidth = (HT_CHANNEL_WIDTH)(((struct ht_capab_ele *)(network->bssht.bdHTCapBuf))->ChlWidth);
+                               network->bssht.bdBandWidth = (enum ht_channel_width)(((struct ht_capab_ele *)(network->bssht.bdHTCapBuf))->ChlWidth);
                        }
                        else{
                                network->bssht.bdSupportHT = false;
index fc3dafc50790144041b31bee44b2c123f6c6e431..bef454c32d3f6e22334a256a34c7793225faf31f 100644 (file)
@@ -318,7 +318,7 @@ void rtllib_wx_sync_scan_wq(void *data)
        struct rtllib_device *ieee = container_of_work_rsl(data, struct rtllib_device, wx_sync_scan_wq);
        short chan;
        HT_EXTCHNL_OFFSET chan_offset=0;
-       HT_CHANNEL_WIDTH bandwidth=0;
+       enum ht_channel_width bandwidth=0;
        int b40M = 0;
        static int count = 0;
 
@@ -351,7 +351,7 @@ void rtllib_wx_sync_scan_wq(void *data)
        if (ieee->pHTInfo->bCurrentHTSupport && ieee->pHTInfo->bEnableHT && ieee->pHTInfo->bCurBW40MHz) {
                b40M = 1;
                chan_offset = ieee->pHTInfo->CurSTAExtChnlOffset;
-               bandwidth = (HT_CHANNEL_WIDTH)ieee->pHTInfo->bCurBW40MHz;
+               bandwidth = (enum ht_channel_width)ieee->pHTInfo->bCurBW40MHz;
                RT_TRACE(COMP_DBG, "Scan in 40M, force to 20M first:%d, %d\n", chan_offset, bandwidth);
                ieee->SetBWModeHandler(ieee->dev, HT_CHANNEL_WIDTH_20, HT_EXTCHNL_OFFSET_NO_EXT);
                }