Commit 1d80d842 authored by Masanari Iida's avatar Masanari Iida Committed by Greg Kroah-Hartman
Browse files

staging: rtl8821ae: Fix typo in rtl8821ae/rtl8821ae.



Fix spelling typo in comment and printk within
rtl8821ae/rtl8821ae.

Signed-off-by: default avatarMasanari Iida <standby24x7@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent da4d2016
Loading
Loading
Loading
Loading
+12 −12
Original line number Diff line number Diff line
@@ -731,7 +731,7 @@ void rtl8821ae_dm_find_minimum_rssi(struct ieee80211_hw *hw)
		rtl_dm_dig->min_undecorated_pwdb_for_dm =
		    rtlpriv->dm.entry_min_undecoratedsmoothed_pwdb;
		RT_TRACE(COMP_BB_POWERSAVING, DBG_LOUD,
			 ("AP Ext Port or disconnet PWDB = 0x%x \n",
			 ("AP Ext Port or disconnect PWDB = 0x%x \n",
			  rtl_dm_dig->min_undecorated_pwdb_for_dm));
	}
	RT_TRACE(COMP_DIG, DBG_LOUD, ("MinUndecoratedPWDBForDM =%d\n",
@@ -925,7 +925,7 @@ static void rtl8821ae_dm_dig(struct ieee80211_hw *hw)

	if (rtlpriv->falsealm_cnt.cnt_all > 10000) {
		RT_TRACE(COMP_DIG, DBG_LOUD,
			("rtl8821ae_dm_dig(): Abnornally false alarm case. \n"));
			("rtl8821ae_dm_dig(): Abnormally false alarm case. \n"));

		if (dm_digtable.large_fa_hit != 3)
		        dm_digtable.large_fa_hit++;
@@ -1087,7 +1087,7 @@ static void rtl8821ae_dm_false_alarm_counter_statistics(struct ieee80211_hw *hw)
	else
		falsealm_cnt->cnt_all = falsealm_cnt->cnt_ofdm_fail;

	/*reset OFDM FA coutner*/
	/*reset OFDM FA counter*/
	rtl_set_bbreg(hw, ODM_REG_OFDM_FA_RST_11AC, BIT(17), 1);
	rtl_set_bbreg(hw, ODM_REG_OFDM_FA_RST_11AC, BIT(17), 0);
	/* reset CCK FA counter*/
@@ -1316,7 +1316,7 @@ u8 rtl8812ae_hw_rate_to_mrate(
/*-----------------------------------------------------------------------------
 * Function:	odm_TxPwrTrackSetPwr88E()
 *
 * Overview:	88E change all channel tx power accordign to flag.
 * Overview:	88E change all channel tx power according to flag.
 *				OFDM & CCK are all different.
 *
 * Input:		NONE
@@ -1537,7 +1537,7 @@ void rtl8812ae_dm_txpwr_track_set_pwr(struct ieee80211_hw *hw,
					rtldm->modify_txagc_flag_path_b = false;

					RT_TRACE(COMP_POWER_TRACKING, DBG_LOUD,
						("******Path_B pDM_Odm->Modify_TxAGC_Flag = FALSE \n"));
						("******Path_B dm_Odm->Modify_TxAGC_Flag = FALSE \n"));
				}
			}
		}
@@ -1654,7 +1654,7 @@ void rtl8812ae_dm_txpower_tracking_callback_thermalmeter

	if (delta > 0 && rtldm->txpower_track_control)
	{
		/*"delta" here is used to record the absolute value of differrence.*/
		/*"delta" here is used to record the absolute value of difference.*/
	    	delta = thermal_value > rtlefuse->eeprom_thermalmeter ? \
		    	(thermal_value - rtlefuse->eeprom_thermalmeter) : \
		    	(rtlefuse->eeprom_thermalmeter - thermal_value);
@@ -1976,7 +1976,7 @@ void rtl8821ae_phy_lccalibrate(
/*-----------------------------------------------------------------------------
 * Function:	odm_TxPwrTrackSetPwr88E()
 *
 * Overview:	88E change all channel tx power accordign to flag.
 * Overview:	88E change all channel tx power according to flag.
 *				OFDM & CCK are all different.
 *
 * Input:		NONE
@@ -2159,7 +2159,7 @@ void rtl8821ae_dm_txpower_tracking_callback_thermalmeter
	u8 *delta_swing_table_idx_tup_b;
	u8 *delta_swing_table_idx_tdown_b;

	/*2. Initilization ( 7 steps in total )*/
	/*2. Initialization ( 7 steps in total )*/
	rtl8821ae_get_delta_swing_table(hw, (u8**)&delta_swing_table_idx_tup_a,
									(u8**)&delta_swing_table_idx_tdown_a,
									  (u8**)&delta_swing_table_idx_tup_b,
@@ -2244,7 +2244,7 @@ void rtl8821ae_dm_txpower_tracking_callback_thermalmeter

	if (delta > 0 && rtldm->txpower_track_control)
	{
		/*"delta" here is used to record the absolute value of differrence.*/
		/*"delta" here is used to record the absolute value of difference.*/
	    	delta = thermal_value > rtlefuse->eeprom_thermalmeter ? \
		    	(thermal_value - rtlefuse->eeprom_thermalmeter) : \
		    	(rtlefuse->eeprom_thermalmeter - thermal_value);
@@ -2613,11 +2613,11 @@ static void rtl8821ae_dm_check_edca_turbo(struct ieee80211_hw *hw)
	RT_TRACE(COMP_TURBO, DBG_LOUD,
		("rtl8821ae_dm_check_edca_turbo=====>"));
	RT_TRACE(COMP_TURBO, DBG_LOUD,
		("Orginial BE PARAM: 0x%x\n",
		("Original BE PARAM: 0x%x\n",
		rtl_read_dword(rtlpriv, DM_REG_EDCA_BE_11N)));

	/*===============================
	list paramter for different platform
	list parameter for different platform
	===============================*/
	b_last_is_cur_rdl_state = rtlpriv->dm.bis_cur_rdlstate;
	pb_is_cur_rdl_state = &( rtlpriv->dm.bis_cur_rdlstate);
@@ -2963,7 +2963,7 @@ void rtl8821ae_dm_dynamic_atc_switch(struct ieee80211_hw *hw)
			"Crystal cap = 0x%x, Crystal cap offset = %d\n",
			rtldm->crystal_cap, adjust_xtal));

		/*3.Adjudt Crystal Cap.*/
		/*3.Adjust Crystal Cap.*/
		if (adjust_xtal != 0){
			rtldm->is_freeze = 0;
			rtldm->crystal_cap += adjust_xtal;
+4 −4
Original line number Diff line number Diff line
@@ -164,7 +164,7 @@ static int _rtl8821ae_fw_free_to_go(struct ieee80211_hw *hw)

	if (counter >= FW_8821AE_POLLING_TIMEOUT_COUNT) {
		RT_TRACE(COMP_ERR, DBG_LOUD,
			 ("chksum report faill ! REG_MCUFWDL:0x%08x .\n",
			 ("chksum report fail ! REG_MCUFWDL:0x%08x .\n",
			  value32));
		goto exit;
	}
@@ -368,7 +368,7 @@ static void _rtl8821ae_fill_h2c_command(struct ieee80211_hw *hw,
				wait_h2c_limmit--;
				if (wait_h2c_limmit == 0) {
					RT_TRACE(COMP_CMD, DBG_LOUD,
						 ("Wating too long for FW read "
						 ("Waiting too long for FW read "
						  "clear HMEBox(%d)!\n", boxnum));
					break;
				}
@@ -378,7 +378,7 @@ static void _rtl8821ae_fill_h2c_command(struct ieee80211_hw *hw,
				isfw_read = _rtl8821ae_check_fw_read_last_h2c(hw, boxnum);
				u1b_tmp = rtl_read_byte(rtlpriv, 0x130);
				RT_TRACE(COMP_CMD, DBG_LOUD,
					 ("Wating for FW read clear HMEBox(%d)!!! "
					 ("Waiting for FW read clear HMEBox(%d)!!! "
					  "0x130 = %2x\n", boxnum, u1b_tmp));
			}
		}
@@ -1179,7 +1179,7 @@ void rtl8821ae_set_fw_rsvdpagepkt(struct ieee80211_hw *hw, bool b_dl_finished)
			 ("Set RSVD page location to Fw FAIL!!!!!!.\n"));
}

/*Shoud check FW support p2p or not.*/
/*Should check FW support p2p or not.*/
void rtl8821ae_set_p2p_ctw_period_cmd(struct ieee80211_hw *hw, u8 ctwindow)
{
	u8 u1_ctwindow_period[1] ={ ctwindow};
+1 −1
Original line number Diff line number Diff line
@@ -142,7 +142,7 @@ void rtl8821ae_dm_bt_hw_coex_all_off(struct ieee80211_hw *hw);
long rtl8821ae_dm_bt_get_rx_ss(struct ieee80211_hw *hw);
void rtl8821ae_dm_bt_balance(struct ieee80211_hw *hw,
			bool b_balance_on, u8 ms0, u8 ms1);
void rtl8821ae_dm_bt_agc_table(struct ieee80211_hw *hw, u8 tyep);
void rtl8821ae_dm_bt_agc_table(struct ieee80211_hw *hw, u8 type);
void rtl8821ae_dm_bt_bb_back_off_level(struct ieee80211_hw *hw, u8 type);
u8 rtl8821ae_dm_bt_check_coex_rssi_state(struct ieee80211_hw *hw,
						u8	level_num, u8	rssi_thresh, u8 rssi_thresh1);
+2 −2
Original line number Diff line number Diff line
@@ -157,7 +157,7 @@ bool rtl8821ae_dm_bt_is_same_coexist_state(struct ieee80211_hw *hw)
		&&(rtlpcipriv->btcoexist.previous_state_h
		== rtlpcipriv->btcoexist.current_state_h)) {
		RT_TRACE(COMP_BT_COEXIST, DBG_DMESG,
				("[DM][BT], Coexist state do not chang!!\n"));
				("[DM][BT], Coexist state do not change!!\n"));
		return true;
	} else {
		RT_TRACE(COMP_BT_COEXIST, DBG_DMESG,
@@ -902,7 +902,7 @@ void rtl8821ae_dm_bt_set_bt_dm(struct ieee80211_hw *hw, struct btdm_8821ae *p_bt

	/*
	 * Note:
	 * We should add delay for making sure sw DacSwing can be set sucessfully.
	 * We should add delay for making sure sw DacSwing can be set successfully.
	 * because of that rtl8821ae_dm_bt_set_fw_2_ant_hid() and rtl8821ae_dm_bt_set_fw_tdma_ctrl()
	 * will overwrite the reg 0x880.
	*/
+5 −5
Original line number Diff line number Diff line
@@ -1017,7 +1017,7 @@ static void _rtl8821ae_hw_configure(struct ieee80211_hw *hw)
	/* ARFB table 12 for 11ac 24G 1SS */
	rtl_write_dword(rtlpriv, REG_ARFR3, 0x00000015);
	rtl_write_dword(rtlpriv, REG_ARFR3 + 4, 0xffcff000);
	/* 0x420[7] = 0 , enable retry AMPDU in new AMPD not singal MPDU. */
	/* 0x420[7] = 0 , enable retry AMPDU in new AMPD not signal MPDU. */
	rtl_write_word(rtlpriv, REG_FWHW_TXQ_CTRL, 0x1F00);
	rtl_write_byte(rtlpriv, REG_AMPDU_MAX_TIME, 0x70);

@@ -1407,7 +1407,7 @@ int rtl8821ae_hw_init(struct ieee80211_hw *hw)
	rtl8821ae_phy_mac_config(hw);
	/* because last function modify RCR, so we update
	 * rcr var here, or TP will unstable for receive_config
	 * is wrong, RX RCR_ACRC32 will cause TP unstabel & Rx
	 * is wrong, RX RCR_ACRC32 will cause TP unstable & Rx
	 * RCR_APP_ICV will cause mac80211 unassoc for cisco 1252
	rtlpci->receive_config = rtl_read_dword(rtlpriv, REG_RCR);
	rtlpci->receive_config &= ~(RCR_ACRC32 | RCR_AICV);
@@ -1563,7 +1563,7 @@ static enum version_8821ae _rtl8821ae_read_chip_version(struct ieee80211_hw *hw)
			break;
		default:
			RT_TRACE(COMP_INIT, DBG_LOUD,
				("Chip Version ID: Unknow (0x%X).\n", version));
				("Chip Version ID: Unknown (0x%X).\n", version));
			break;
	}

@@ -2372,7 +2372,7 @@ static void _rtl8812ae_read_adapter_info(struct ieee80211_hw *hw, bool b_pseudo_
	if (rtlefuse->eeprom_channelplan == 0xff)
		rtlefuse->eeprom_channelplan = 0x7F;

	/* set channel paln to world wide 13 */
	/* set channel plan to world wide 13 */
	//rtlefuse->channel_plan = (u8) rtlefuse->eeprom_channelplan;

	/*parse xtal*/
@@ -2535,7 +2535,7 @@ static void _rtl8821ae_read_adapter_info(struct ieee80211_hw *hw, bool b_pseudo_
	if (rtlefuse->eeprom_channelplan == 0xff)
		rtlefuse->eeprom_channelplan = 0x7F;

	/* set channel paln to world wide 13 */
	/* set channel plan to world wide 13 */
	//rtlefuse->channel_plan = (u8) rtlefuse->eeprom_channelplan;

	/*parse xtal*/
Loading