staging: rtl8723au: Eliminate ODM_CMNINFO_CHNL usage
authorJes Sorensen <Jes.Sorensen@redhat.com>
Mon, 21 Jul 2014 09:24:58 +0000 (11:24 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 21 Jul 2014 19:09:27 +0000 (12:09 -0700)
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723au/hal/odm.c
drivers/staging/rtl8723au/hal/rtl8723a_dm.c
drivers/staging/rtl8723au/include/odm.h

index a15a8cba489d05307f3f1340899b825f50da981c..ac9be2190bb2d36ba3a3529c774a2d85418f2251 100644 (file)
@@ -417,9 +417,6 @@ void ODM23a_CmnInfoHook(struct dm_odm_t *pDM_Odm,
        /*  Hook call by reference pointer. */
        switch  (CmnInfo) {
        /*  Dynamic call by reference pointer. */
-       case    ODM_CMNINFO_CHNL:
-               pDM_Odm->pChannel = (u8 *)pValue;
-               break;
        case    ODM_CMNINFO_SCAN:
                pDM_Odm->pbScanInProcess = (bool *)pValue;
                break;
@@ -505,11 +502,11 @@ static void odm_CommonInfoSelfUpdate(struct hal_data_8723a *pHalData)
 
        if (pHalData->CurrentChannelBW == HT_CHANNEL_WIDTH_40) {
                if (pHalData->nCur40MhzPrimeSC == 1)
-                       pDM_Odm->ControlChannel = *(pDM_Odm->pChannel) - 2;
+                       pDM_Odm->ControlChannel = pHalData->CurrentChannel - 2;
                else if (pHalData->nCur40MhzPrimeSC == 2)
-                       pDM_Odm->ControlChannel = *(pDM_Odm->pChannel) + 2;
+                       pDM_Odm->ControlChannel = pHalData->CurrentChannel + 2;
        } else {
-               pDM_Odm->ControlChannel = *(pDM_Odm->pChannel);
+               pDM_Odm->ControlChannel = pHalData->CurrentChannel;
        }
 
        for (i = 0; i < ODM_ASSOCIATE_ENTRY_NUM; i++) {
@@ -546,7 +543,6 @@ void odm_CmnInfoInit_Debug23a(struct dm_odm_t *pDM_Odm)
 void odm_CmnInfoHook_Debug23a(struct dm_odm_t *pDM_Odm)
 {
        ODM_RT_TRACE(pDM_Odm, ODM_COMP_COMMON, ODM_DBG_LOUD, ("odm_CmnInfoHook_Debug23a ==>\n"));
-       ODM_RT_TRACE(pDM_Odm, ODM_COMP_COMMON, ODM_DBG_LOUD, ("pChannel =%d\n", *(pDM_Odm->pChannel)));
 
        ODM_RT_TRACE(pDM_Odm, ODM_COMP_COMMON, ODM_DBG_LOUD, ("pbScanInProcess =%d\n", *(pDM_Odm->pbScanInProcess)));
        ODM_RT_TRACE(pDM_Odm, ODM_COMP_COMMON, ODM_DBG_LOUD, ("pbPowerSaving =%d\n", *(pDM_Odm->pbPowerSaving)));
index dfed57e0786de11ba622a5f4f77cbf3b111bf313..d1e423192309f01d14f50306b0ea338183bf7f46 100644 (file)
@@ -152,8 +152,6 @@ static void Update_ODM_ComInfo_8723a(struct rtw_adapter *Adapter)
        /*  Pointer reference */
        rtl8723a_odm_support_ability_set(Adapter, DYNAMIC_ALL_FUNC_ENABLE);
 
-       ODM23a_CmnInfoHook(pDM_Odm, ODM_CMNINFO_CHNL,
-                          &pHalData->CurrentChannel);
        ODM23a_CmnInfoHook(pDM_Odm, ODM_CMNINFO_SCAN, &pmlmepriv->bScanInProcess);
        ODM23a_CmnInfoHook(pDM_Odm, ODM_CMNINFO_POWER_SAVING,
                           &pwrctrlpriv->bpower_saving);
index be0b84f6220c37be9e9ea2c6829a6a2ee02697cb..022387b230067ccc9ddc4d9e757af4692c887987 100644 (file)
@@ -319,8 +319,6 @@ enum odm_cmninfo {
        /*  */
        /*  Dynamic value: */
        /*  */
-       ODM_CMNINFO_CHNL,
-
        ODM_CMNINFO_SCAN,
        ODM_CMNINFO_POWER_SAVING,
        ODM_CMNINFO_MP_MODE,
@@ -686,8 +684,6 @@ struct dm_odm_t {
        bool                    bool_temp;
        struct rtw_adapter      *PADAPTER_temp;
 
-       /*  Central channel location Ch1/Ch2/.... */
-       u8                      *pChannel;      /* central channel number */
        /*  Common info for Status */
        bool                    *pbScanInProcess;
        bool                    *pbPowerSaving;