Commit 68468503 authored by Andreas Hellmich's avatar Andreas Hellmich Committed by Greg Kroah-Hartman
parent de7c18bd
...@@ -207,7 +207,7 @@ static RT_CHANNEL_PLAN_MAP RTW_ChannelPlanMap[RT_CHANNEL_DOMAIN_MAX] = { ...@@ -207,7 +207,7 @@ static RT_CHANNEL_PLAN_MAP RTW_ChannelPlanMap[RT_CHANNEL_DOMAIN_MAX] = {
{0x02, 0x1F}, /* 0x57, RT_CHANNEL_DOMAIN_FCC1_FCC10 */ {0x02, 0x1F}, /* 0x57, RT_CHANNEL_DOMAIN_FCC1_FCC10 */
}; };
static RT_CHANNEL_PLAN_MAP RTW_CHANNEL_PLAN_MAP_REALTEK_DEFINE = {0x03, 0x02}; /* use the conbination for max channel numbers */ static RT_CHANNEL_PLAN_MAP RTW_CHANNEL_PLAN_MAP_REALTEK_DEFINE = {0x03, 0x02}; /* use the combination for max channel numbers */
/* /*
* Search the @param ch in given @param ch_set * Search the @param ch in given @param ch_set
...@@ -2265,7 +2265,7 @@ inline struct xmit_frame *alloc_mgtxmitframe(struct xmit_priv *pxmitpriv) ...@@ -2265,7 +2265,7 @@ inline struct xmit_frame *alloc_mgtxmitframe(struct xmit_priv *pxmitpriv)
/**************************************************************************** /****************************************************************************
Following are some TX fuctions for WiFi MLME Following are some TX functions for WiFi MLME
*****************************************************************************/ *****************************************************************************/
...@@ -2956,7 +2956,7 @@ int issue_probereq_ex(struct adapter *padapter, struct ndis_802_11_ssid *pssid, ...@@ -2956,7 +2956,7 @@ int issue_probereq_ex(struct adapter *padapter, struct ndis_802_11_ssid *pssid,
return ret; return ret;
} }
/* if psta == NULL, indiate we are station(client) now... */ /* if psta == NULL, indicate we are station(client) now... */
void issue_auth(struct adapter *padapter, struct sta_info *psta, unsigned short status) void issue_auth(struct adapter *padapter, struct sta_info *psta, unsigned short status)
{ {
struct xmit_frame *pmgntframe; struct xmit_frame *pmgntframe;
...@@ -3358,7 +3358,7 @@ void issue_assocreq(struct adapter *padapter) ...@@ -3358,7 +3358,7 @@ void issue_assocreq(struct adapter *padapter)
if ((!padapter->registrypriv.wifi_spec) && (!memcmp(pIE->data, WPS_OUI, 4))) { if ((!padapter->registrypriv.wifi_spec) && (!memcmp(pIE->data, WPS_OUI, 4))) {
/* Commented by Kurt 20110629 */ /* Commented by Kurt 20110629 */
/* In some older APs, WPS handshake */ /* In some older APs, WPS handshake */
/* would be fail if we append vender extensions informations to AP */ /* would be fail if we append vender extensions information to AP */
vs_ie_length = 14; vs_ie_length = 14;
} }
...@@ -3406,7 +3406,7 @@ void issue_assocreq(struct adapter *padapter) ...@@ -3406,7 +3406,7 @@ void issue_assocreq(struct adapter *padapter)
rtw_buf_free(&pmlmepriv->assoc_req, &pmlmepriv->assoc_req_len); rtw_buf_free(&pmlmepriv->assoc_req, &pmlmepriv->assoc_req_len);
} }
/* when wait_ack is ture, this function shoule be called at process context */ /* when wait_ack is true, this function should be called at process context */
static int _issue_nulldata(struct adapter *padapter, unsigned char *da, static int _issue_nulldata(struct adapter *padapter, unsigned char *da,
unsigned int power_mode, bool wait_ack) unsigned int power_mode, bool wait_ack)
{ {
...@@ -3481,7 +3481,7 @@ static int _issue_nulldata(struct adapter *padapter, unsigned char *da, ...@@ -3481,7 +3481,7 @@ static int _issue_nulldata(struct adapter *padapter, unsigned char *da,
/* /*
* [IMPORTANT] Don't call this function in interrupt context * [IMPORTANT] Don't call this function in interrupt context
* *
* When wait_ms > 0, this function shoule be called at process context * When wait_ms > 0, this function should be called at process context
* da == NULL for station mode * da == NULL for station mode
*/ */
int issue_nulldata(struct adapter *padapter, unsigned char *da, unsigned int power_mode, int try_cnt, int wait_ms) int issue_nulldata(struct adapter *padapter, unsigned char *da, unsigned int power_mode, int try_cnt, int wait_ms)
...@@ -3493,7 +3493,7 @@ int issue_nulldata(struct adapter *padapter, unsigned char *da, unsigned int pow ...@@ -3493,7 +3493,7 @@ int issue_nulldata(struct adapter *padapter, unsigned char *da, unsigned int pow
struct sta_info *psta; struct sta_info *psta;
/* da == NULL, assum it's null data for sta to ap*/ /* da == NULL, assume it's null data for sta to ap*/
if (!da) if (!da)
da = get_my_bssid(&(pmlmeinfo->network)); da = get_my_bssid(&(pmlmeinfo->network));
...@@ -3558,14 +3558,14 @@ s32 issue_nulldata_in_interrupt(struct adapter *padapter, u8 *da) ...@@ -3558,14 +3558,14 @@ s32 issue_nulldata_in_interrupt(struct adapter *padapter, u8 *da)
pmlmeext = &padapter->mlmeextpriv; pmlmeext = &padapter->mlmeextpriv;
pmlmeinfo = &pmlmeext->mlmext_info; pmlmeinfo = &pmlmeext->mlmext_info;
/* da == NULL, assum it's null data for sta to ap*/ /* da == NULL, assume it's null data for sta to ap*/
if (!da) if (!da)
da = get_my_bssid(&(pmlmeinfo->network)); da = get_my_bssid(&(pmlmeinfo->network));
return _issue_nulldata(padapter, da, 0, false); return _issue_nulldata(padapter, da, 0, false);
} }
/* when wait_ack is ture, this function shoule be called at process context */ /* when wait_ack is true, this function should be called at process context */
static int _issue_qos_nulldata(struct adapter *padapter, unsigned char *da, static int _issue_qos_nulldata(struct adapter *padapter, unsigned char *da,
u16 tid, bool wait_ack) u16 tid, bool wait_ack)
{ {
...@@ -3644,7 +3644,7 @@ static int _issue_qos_nulldata(struct adapter *padapter, unsigned char *da, ...@@ -3644,7 +3644,7 @@ static int _issue_qos_nulldata(struct adapter *padapter, unsigned char *da,
return ret; return ret;
} }
/* when wait_ms >0 , this function shoule be called at process context */ /* when wait_ms >0 , this function should be called at process context */
/* da == NULL for station mode */ /* da == NULL for station mode */
int issue_qos_nulldata(struct adapter *padapter, unsigned char *da, u16 tid, int try_cnt, int wait_ms) int issue_qos_nulldata(struct adapter *padapter, unsigned char *da, u16 tid, int try_cnt, int wait_ms)
{ {
...@@ -3653,7 +3653,7 @@ int issue_qos_nulldata(struct adapter *padapter, unsigned char *da, u16 tid, int ...@@ -3653,7 +3653,7 @@ int issue_qos_nulldata(struct adapter *padapter, unsigned char *da, u16 tid, int
struct mlme_ext_priv *pmlmeext = &(padapter->mlmeextpriv); struct mlme_ext_priv *pmlmeext = &(padapter->mlmeextpriv);
struct mlme_ext_info *pmlmeinfo = &(pmlmeext->mlmext_info); struct mlme_ext_info *pmlmeinfo = &(pmlmeext->mlmext_info);
/* da == NULL, assum it's null data for sta to ap*/ /* da == NULL, assume it's null data for sta to ap*/
if (!da) if (!da)
da = get_my_bssid(&(pmlmeinfo->network)); da = get_my_bssid(&(pmlmeinfo->network));
...@@ -4264,7 +4264,7 @@ unsigned int send_beacon(struct adapter *padapter) ...@@ -4264,7 +4264,7 @@ unsigned int send_beacon(struct adapter *padapter)
/**************************************************************************** /****************************************************************************
Following are some utitity fuctions for WiFi MLME Following are some utility functions for WiFi MLME
*****************************************************************************/ *****************************************************************************/
...@@ -4568,7 +4568,7 @@ u8 collect_bss_info(struct adapter *padapter, union recv_frame *precv_frame, str ...@@ -4568,7 +4568,7 @@ u8 collect_bss_info(struct adapter *padapter, union recv_frame *precv_frame, str
} }
#endif #endif
/* mark bss info receving from nearby channel as SignalQuality 101 */ /* mark bss info receiving from nearby channel as SignalQuality 101 */
if (bssid->Configuration.DSConfig != rtw_get_oper_ch(padapter)) if (bssid->Configuration.DSConfig != rtw_get_oper_ch(padapter))
bssid->PhyInfo.SignalQuality = 101; bssid->PhyInfo.SignalQuality = 101;
...@@ -4589,7 +4589,7 @@ void start_create_ibss(struct adapter *padapter) ...@@ -4589,7 +4589,7 @@ void start_create_ibss(struct adapter *padapter)
/* update wireless mode */ /* update wireless mode */
update_wireless_mode(padapter); update_wireless_mode(padapter);
/* udpate capability */ /* update capability */
caps = rtw_get_capability((struct wlan_bssid_ex *)pnetwork); caps = rtw_get_capability((struct wlan_bssid_ex *)pnetwork);
update_capinfo(padapter, caps); update_capinfo(padapter, caps);
if (caps&cap_IBSS) {/* adhoc master */ if (caps&cap_IBSS) {/* adhoc master */
...@@ -4644,7 +4644,7 @@ void start_clnt_join(struct adapter *padapter) ...@@ -4644,7 +4644,7 @@ void start_clnt_join(struct adapter *padapter)
/* update wireless mode */ /* update wireless mode */
update_wireless_mode(padapter); update_wireless_mode(padapter);
/* udpate capability */ /* update capability */
caps = rtw_get_capability((struct wlan_bssid_ex *)pnetwork); caps = rtw_get_capability((struct wlan_bssid_ex *)pnetwork);
update_capinfo(padapter, caps); update_capinfo(padapter, caps);
if (caps&cap_ESS) { if (caps&cap_ESS) {
...@@ -5441,7 +5441,7 @@ void mlmeext_joinbss_event_callback(struct adapter *padapter, int join_res) ...@@ -5441,7 +5441,7 @@ void mlmeext_joinbss_event_callback(struct adapter *padapter, int join_res)
/* turn on dynamic functions */ /* turn on dynamic functions */
Switch_DM_Func(padapter, DYNAMIC_ALL_FUNC_ENABLE, true); Switch_DM_Func(padapter, DYNAMIC_ALL_FUNC_ENABLE, true);
/* update IOT-releated issue */ /* update IOT-related issue */
update_IOT_info(padapter); update_IOT_info(padapter);
rtw_hal_set_hwreg(padapter, HW_VAR_BASIC_RATE, cur_network->SupportedRates); rtw_hal_set_hwreg(padapter, HW_VAR_BASIC_RATE, cur_network->SupportedRates);
...@@ -5449,7 +5449,7 @@ void mlmeext_joinbss_event_callback(struct adapter *padapter, int join_res) ...@@ -5449,7 +5449,7 @@ void mlmeext_joinbss_event_callback(struct adapter *padapter, int join_res)
/* BCN interval */ /* BCN interval */
rtw_hal_set_hwreg(padapter, HW_VAR_BEACON_INTERVAL, (u8 *)(&pmlmeinfo->bcn_interval)); rtw_hal_set_hwreg(padapter, HW_VAR_BEACON_INTERVAL, (u8 *)(&pmlmeinfo->bcn_interval));
/* udpate capability */ /* update capability */
update_capinfo(padapter, pmlmeinfo->capability); update_capinfo(padapter, pmlmeinfo->capability);
/* WMM, Update EDCA param */ /* WMM, Update EDCA param */
...@@ -6385,7 +6385,7 @@ u8 sitesurvey_cmd_hdl(struct adapter *padapter, u8 *pbuf) ...@@ -6385,7 +6385,7 @@ u8 sitesurvey_cmd_hdl(struct adapter *padapter, u8 *pbuf)
Save_DM_Func_Flag(padapter); Save_DM_Func_Flag(padapter);
Switch_DM_Func(padapter, DYNAMIC_FUNC_DISABLE, false); Switch_DM_Func(padapter, DYNAMIC_FUNC_DISABLE, false);
/* config the initial gain under scaning, need to write the BB registers */ /* config the initial gain under scanning, need to write the BB registers */
initialgain = 0x1e; initialgain = 0x1e;
rtw_hal_set_hwreg(padapter, HW_VAR_INITIAL_GAIN, (u8 *)(&initialgain)); rtw_hal_set_hwreg(padapter, HW_VAR_INITIAL_GAIN, (u8 *)(&initialgain));
......
...@@ -82,7 +82,7 @@ static void setIqkMatrix_8723B( ...@@ -82,7 +82,7 @@ static void setIqkMatrix_8723B(
/* if (RFPath == ODM_RF_PATH_A) */ /* if (RFPath == ODM_RF_PATH_A) */
switch (RFPath) { switch (RFPath) {
case ODM_RF_PATH_A: case ODM_RF_PATH_A:
/* wirte new elements A, C, D to regC80 and regC94, element B is always 0 */ /* write new elements A, C, D to regC80 and regC94, element B is always 0 */
value32 = (ele_D<<22)|((ele_C&0x3F)<<16)|ele_A; value32 = (ele_D<<22)|((ele_C&0x3F)<<16)|ele_A;
PHY_SetBBReg(pDM_Odm->Adapter, rOFDM0_XATxIQImbalance, bMaskDWord, value32); PHY_SetBBReg(pDM_Odm->Adapter, rOFDM0_XATxIQImbalance, bMaskDWord, value32);
...@@ -93,7 +93,7 @@ static void setIqkMatrix_8723B( ...@@ -93,7 +93,7 @@ static void setIqkMatrix_8723B(
PHY_SetBBReg(pDM_Odm->Adapter, rOFDM0_ECCAThreshold, BIT24, value32); PHY_SetBBReg(pDM_Odm->Adapter, rOFDM0_ECCAThreshold, BIT24, value32);
break; break;
case ODM_RF_PATH_B: case ODM_RF_PATH_B:
/* wirte new elements A, C, D to regC88 and regC9C, element B is always 0 */ /* write new elements A, C, D to regC88 and regC9C, element B is always 0 */
value32 = (ele_D<<22)|((ele_C&0x3F)<<16)|ele_A; value32 = (ele_D<<22)|((ele_C&0x3F)<<16)|ele_A;
PHY_SetBBReg(pDM_Odm->Adapter, rOFDM0_XBTxIQImbalance, bMaskDWord, value32); PHY_SetBBReg(pDM_Odm->Adapter, rOFDM0_XBTxIQImbalance, bMaskDWord, value32);
...@@ -166,7 +166,7 @@ void DoIQK_8723B( ...@@ -166,7 +166,7 @@ void DoIQK_8723B(
/*----------------------------------------------------------------------------- /*-----------------------------------------------------------------------------
* Function: odm_TxPwrTrackSetPwr88E() * 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. * OFDM & CCK are all different.
* *
* Input: NONE * Input: NONE
......
...@@ -750,7 +750,7 @@ static void Hal_BT_EfusePowerSwitch( ...@@ -750,7 +750,7 @@ static void Hal_BT_EfusePowerSwitch(
rtw_write8(padapter, 0x6B, tempval); rtw_write8(padapter, 0x6B, tempval);
/* Attention!! Between 0x6A[14] and 0x6A[15] setting need 100us delay */ /* Attention!! Between 0x6A[14] and 0x6A[15] setting need 100us delay */
/* So don't wirte 0x6A[14]= 1 and 0x6A[15]= 0 together! */ /* So don't write 0x6A[14]= 1 and 0x6A[15]= 0 together! */
msleep(1); msleep(1);
/* disable BT output isolation */ /* disable BT output isolation */
/* 0x6A[15] = 0 */ /* 0x6A[15] = 0 */
...@@ -765,7 +765,7 @@ static void Hal_BT_EfusePowerSwitch( ...@@ -765,7 +765,7 @@ static void Hal_BT_EfusePowerSwitch(
rtw_write8(padapter, 0x6B, tempval); rtw_write8(padapter, 0x6B, tempval);
/* Attention!! Between 0x6A[14] and 0x6A[15] setting need 100us delay */ /* Attention!! Between 0x6A[14] and 0x6A[15] setting need 100us delay */
/* So don't wirte 0x6A[14]= 1 and 0x6A[15]= 0 together! */ /* So don't write 0x6A[14]= 1 and 0x6A[15]= 0 together! */
/* disable BT power cut */ /* disable BT power cut */
/* 0x6A[14] = 1 */ /* 0x6A[14] = 1 */
...@@ -1231,7 +1231,7 @@ static u16 hal_EfuseGetCurrentSize_WiFi( ...@@ -1231,7 +1231,7 @@ static u16 hal_EfuseGetCurrentSize_WiFi(
goto exit; goto exit;
error: error:
/* report max size to prevent wirte efuse */ /* report max size to prevent write efuse */
EFUSE_GetEfuseDefinition(padapter, EFUSE_WIFI, TYPE_AVAILABLE_EFUSE_BYTES_TOTAL, &efuse_addr, bPseudoTest); EFUSE_GetEfuseDefinition(padapter, EFUSE_WIFI, TYPE_AVAILABLE_EFUSE_BYTES_TOTAL, &efuse_addr, bPseudoTest);
exit: exit:
...@@ -2237,7 +2237,7 @@ void rtl8723b_InitAntenna_Selection(struct adapter *padapter) ...@@ -2237,7 +2237,7 @@ void rtl8723b_InitAntenna_Selection(struct adapter *padapter)
u8 val; u8 val;
val = rtw_read8(padapter, REG_LEDCFG2); val = rtw_read8(padapter, REG_LEDCFG2);
/* Let 8051 take control antenna settting */ /* Let 8051 take control antenna setting */
val |= BIT(7); /* DPDT_SEL_EN, 0x4C[23] */ val |= BIT(7); /* DPDT_SEL_EN, 0x4C[23] */
rtw_write8(padapter, REG_LEDCFG2, val); rtw_write8(padapter, REG_LEDCFG2, val);
} }
...@@ -3193,7 +3193,7 @@ static void rtl8723b_fill_default_txdesc( ...@@ -3193,7 +3193,7 @@ static void rtl8723b_fill_default_txdesc(
/* 2009.11.05. tynli_test. Suggested by SD4 Filen for FW LPS. */ /* 2009.11.05. tynli_test. Suggested by SD4 Filen for FW LPS. */
/* (1) The sequence number of each non-Qos frame / broadcast / multicast / */ /* (1) The sequence number of each non-Qos frame / broadcast / multicast / */
/* mgnt frame should be controled by Hw because Fw will also send null data */ /* mgnt frame should be controlled by Hw because Fw will also send null data */
/* which we cannot control when Fw LPS enable. */ /* which we cannot control when Fw LPS enable. */
/* --> default enable non-Qos data sequense number. 2010.06.23. by tynli. */ /* --> default enable non-Qos data sequense number. 2010.06.23. by tynli. */
/* (2) Enable HW SEQ control for beacon packet, because we use Hw beacon. */ /* (2) Enable HW SEQ control for beacon packet, because we use Hw beacon. */
...@@ -3543,7 +3543,7 @@ static void hw_var_set_mlme_sitesurvey(struct adapter *padapter, u8 variable, u8 ...@@ -3543,7 +3543,7 @@ static void hw_var_set_mlme_sitesurvey(struct adapter *padapter, u8 variable, u8
rtw_write8(padapter, reg_bcn_ctl, val8); rtw_write8(padapter, reg_bcn_ctl, val8);
} }
/* Save orignal RRSR setting. */ /* Save original RRSR setting. */
pHalData->RegRRSR = rtw_read16(padapter, REG_RRSR); pHalData->RegRRSR = rtw_read16(padapter, REG_RRSR);
} else { } else {
/* sitesurvey done */ /* sitesurvey done */
...@@ -3561,7 +3561,7 @@ static void hw_var_set_mlme_sitesurvey(struct adapter *padapter, u8 variable, u8 ...@@ -3561,7 +3561,7 @@ static void hw_var_set_mlme_sitesurvey(struct adapter *padapter, u8 variable, u8
value_rcr |= rcr_clear_bit; value_rcr |= rcr_clear_bit;
rtw_write32(padapter, REG_RCR, value_rcr); rtw_write32(padapter, REG_RCR, value_rcr);
/* Restore orignal RRSR setting. */ /* Restore original RRSR setting. */
rtw_write16(padapter, REG_RRSR, pHalData->RegRRSR); rtw_write16(padapter, REG_RRSR, pHalData->RegRRSR);
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment