~ubuntu-branches/ubuntu/quantal/linux-linaro-mx51/quantal

« back to all changes in this revision

Viewing changes to drivers/net/wireless/rtlwifi/rtl8192ce/rf.c

  • Committer: Package Import Robot
  • Author(s): John Rigby, John Rigby
  • Date: 2011-09-26 10:44:23 UTC
  • Revision ID: package-import@ubuntu.com-20110926104423-3o58a3c1bj7x00rs
Tags: 3.0.0-1007.9
[ John Rigby ]

Enable crypto modules and remove crypto-modules from
exclude-module files
LP: #826021

Show diffs side-by-side

added added

removed removed

Lines of Context:
34
34
#include "rf.h"
35
35
#include "dm.h"
36
36
 
37
 
static bool _rtl92c_phy_rf6052_config_parafile(struct ieee80211_hw *hw);
 
37
static bool _rtl92ce_phy_rf6052_config_parafile(struct ieee80211_hw *hw);
38
38
 
39
 
void rtl92c_phy_rf6052_set_bandwidth(struct ieee80211_hw *hw, u8 bandwidth)
 
39
void rtl92ce_phy_rf6052_set_bandwidth(struct ieee80211_hw *hw, u8 bandwidth)
40
40
{
41
41
        struct rtl_priv *rtlpriv = rtl_priv(hw);
42
42
        struct rtl_phy *rtlphy = &(rtlpriv->phy);
62
62
}
63
63
 
64
64
void rtl92ce_phy_rf6052_set_cck_txpower(struct ieee80211_hw *hw,
65
 
                                       u8 *ppowerlevel)
 
65
                                        u8 *ppowerlevel)
66
66
{
67
67
        struct rtl_priv *rtlpriv = rtl_priv(hw);
68
68
        struct rtl_phy *rtlphy = &(rtlpriv->phy);
128
128
 
129
129
        tmpval = tx_agc[RF90_PATH_A] >> 8;
130
130
 
131
 
        if (mac->mode == WIRELESS_MODE_B)
132
 
                tmpval = tmpval & 0xff00ffff;
 
131
        tmpval = tmpval & 0xff00ffff;
133
132
 
134
133
        rtl_set_bbreg(hw, RTXAGC_B_CCK11_A_CCK2_11, 0xffffff00, tmpval);
135
134
 
202
201
        struct rtl_priv *rtlpriv = rtl_priv(hw);
203
202
        struct rtl_phy *rtlphy = &(rtlpriv->phy);
204
203
        struct rtl_efuse *rtlefuse = rtl_efuse(rtl_priv(hw));
205
 
        u8 i, chnlgroup, pwr_diff_limit[4];
 
204
        u8 i, chnlgroup = 0, pwr_diff_limit[4];
206
205
        u32 writeVal, customer_limit, rf;
207
206
 
208
207
        for (rf = 0; rf < 2; rf++) {
440
439
        else
441
440
                rtlphy->num_total_rfpath = 2;
442
441
 
443
 
        return _rtl92c_phy_rf6052_config_parafile(hw);
 
442
        return _rtl92ce_phy_rf6052_config_parafile(hw);
 
443
 
444
444
}
445
445
 
446
 
static bool _rtl92c_phy_rf6052_config_parafile(struct ieee80211_hw *hw)
 
446
static bool _rtl92ce_phy_rf6052_config_parafile(struct ieee80211_hw *hw)
447
447
{
448
448
        struct rtl_priv *rtlpriv = rtl_priv(hw);
449
449
        struct rtl_phy *rtlphy = &(rtlpriv->phy);
450
 
        u32 u4_regvalue;
 
450
        u32 u4_regvalue = 0;
451
451
        u8 rfpath;
452
 
        bool rtstatus;
 
452
        bool rtstatus = true;
453
453
        struct bb_reg_def *pphyreg;
454
454
 
455
455
        for (rfpath = 0; rfpath < rtlphy->num_total_rfpath; rfpath++) {
484
484
 
485
485
                switch (rfpath) {
486
486
                case RF90_PATH_A:
487
 
                        rtstatus = rtl92ce_phy_config_rf_with_headerfile(hw,
488
 
                                        (enum radio_path) rfpath);
 
487
                        rtstatus = rtl92c_phy_config_rf_with_headerfile(hw,
 
488
                                                (enum radio_path)rfpath);
489
489
                        break;
490
490
                case RF90_PATH_B:
491
 
                        rtstatus = rtl92ce_phy_config_rf_with_headerfile(hw,
492
 
                                        (enum radio_path) rfpath);
 
491
                        rtstatus = rtl92c_phy_config_rf_with_headerfile(hw,
 
492
                                                (enum radio_path)rfpath);
493
493
                        break;
494
494
                case RF90_PATH_C:
495
495
                        break;