Commit 0f2635b3 authored by Deepak R Varma's avatar Deepak R Varma Committed by Greg Kroah-Hartman

staging: r8188eu: correct misspelled words in comments

Fix spelling mistakes in code comments across the driver.
Signed-off-by: default avatarDeepak R Varma <drv@mailo.com>
Tested-by: Philipp Hortmann <philipp.g.hortmann@gmail.com> # Edimax N150
Link: https://lore.kernel.org/r/00be5f2a97b0c899279bd8f9cd27634186b77b9d.1666299151.git.drv@mailo.comSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 227041c5
...@@ -287,7 +287,7 @@ u8 rtw_set_802_11_infrastructure_mode(struct adapter *padapter, ...@@ -287,7 +287,7 @@ u8 rtw_set_802_11_infrastructure_mode(struct adapter *padapter,
if ((*pold_state == Ndis802_11Infrastructure) || (*pold_state == Ndis802_11IBSS)) { if ((*pold_state == Ndis802_11Infrastructure) || (*pold_state == Ndis802_11IBSS)) {
if (check_fwstate(pmlmepriv, _FW_LINKED)) if (check_fwstate(pmlmepriv, _FW_LINKED))
rtw_indicate_disconnect(padapter); /* will clr Linked_state; before this function, we must have chked whether issue dis-assoc_cmd or not */ rtw_indicate_disconnect(padapter); /* will clr Linked_state; before this function, we must have checked whether issue dis-assoc_cmd or not */
} }
*pold_state = networktype; *pold_state = networktype;
......
...@@ -137,7 +137,7 @@ static struct rt_channel_plan_map RTW_ChannelPlanMap[RT_CHANNEL_DOMAIN_MAX] = { ...@@ -137,7 +137,7 @@ static struct rt_channel_plan_map RTW_ChannelPlanMap[RT_CHANNEL_DOMAIN_MAX] = {
{0x03}, /* 0x41, RT_CHANNEL_DOMAIN_GLOBAL_DOAMIN_2G */ {0x03}, /* 0x41, RT_CHANNEL_DOMAIN_GLOBAL_DOAMIN_2G */
}; };
static struct rt_channel_plan_map RTW_CHANNEL_PLAN_MAP_REALTEK_DEFINE = {0x03}; /* use the conbination for max channel numbers */ static struct rt_channel_plan_map RTW_CHANNEL_PLAN_MAP_REALTEK_DEFINE = {0x03}; /* use the combination for max channel numbers */
/* /*
* Search the @param channel_num in given @param channel_set * Search the @param channel_num in given @param channel_set
...@@ -1751,7 +1751,7 @@ void issue_p2p_GO_request(struct adapter *padapter, u8 *raddr) ...@@ -1751,7 +1751,7 @@ void issue_p2p_GO_request(struct adapter *padapter, u8 *raddr)
p2pie[p2pielen++] = 0x09; /* WFA P2P v1.0 */ p2pie[p2pielen++] = 0x09; /* WFA P2P v1.0 */
/* Commented by Albert 20110306 */ /* Commented by Albert 20110306 */
/* According to the P2P Specification, the group negoitation request frame should contain 9 P2P attributes */ /* According to the P2P Specification, the group negotiation request frame should contain 9 P2P attributes */
/* 1. P2P Capability */ /* 1. P2P Capability */
/* 2. Group Owner Intent */ /* 2. Group Owner Intent */
/* 3. Configuration Timeout */ /* 3. Configuration Timeout */
...@@ -2106,7 +2106,7 @@ static void issue_p2p_GO_response(struct adapter *padapter, u8 *raddr, u8 *frame ...@@ -2106,7 +2106,7 @@ static void issue_p2p_GO_response(struct adapter *padapter, u8 *raddr, u8 *frame
p2pie[p2pielen++] = 0x09; /* WFA P2P v1.0 */ p2pie[p2pielen++] = 0x09; /* WFA P2P v1.0 */
/* Commented by Albert 20100908 */ /* Commented by Albert 20100908 */
/* According to the P2P Specification, the group negoitation response frame should contain 9 P2P attributes */ /* According to the P2P Specification, the group negotiation response frame should contain 9 P2P attributes */
/* 1. Status */ /* 1. Status */
/* 2. P2P Capability */ /* 2. P2P Capability */
/* 3. Group Owner Intent */ /* 3. Group Owner Intent */
...@@ -2402,7 +2402,7 @@ static void issue_p2p_GO_confirm(struct adapter *padapter, u8 *raddr, u8 result) ...@@ -2402,7 +2402,7 @@ static void issue_p2p_GO_confirm(struct adapter *padapter, u8 *raddr, u8 result)
p2pie[p2pielen++] = 0x09; /* WFA P2P v1.0 */ p2pie[p2pielen++] = 0x09; /* WFA P2P v1.0 */
/* Commented by Albert 20110306 */ /* Commented by Albert 20110306 */
/* According to the P2P Specification, the group negoitation request frame should contain 5 P2P attributes */ /* According to the P2P Specification, the group negotiation request frame should contain 5 P2P attributes */
/* 1. Status */ /* 1. Status */
/* 2. P2P Capability */ /* 2. P2P Capability */
/* 3. Operating Channel */ /* 3. Operating Channel */
...@@ -4010,7 +4010,7 @@ struct xmit_frame *alloc_mgtxmitframe(struct xmit_priv *pxmitpriv) ...@@ -4010,7 +4010,7 @@ 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
*****************************************************************************/ *****************************************************************************/
...@@ -4612,7 +4612,7 @@ int issue_probereq_ex(struct adapter *padapter, struct ndis_802_11_ssid *pssid, ...@@ -4612,7 +4612,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;
...@@ -5011,7 +5011,7 @@ void issue_assocreq(struct adapter *padapter) ...@@ -5011,7 +5011,7 @@ void issue_assocreq(struct adapter *padapter)
if (!padapter->registrypriv.wifi_spec) { if (!padapter->registrypriv.wifi_spec) {
/* 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 vendor extension information to AP */
if (!memcmp(pIE->data, WPS_OUI, 4)) if (!memcmp(pIE->data, WPS_OUI, 4))
pIE->Length = 14; pIE->Length = 14;
} }
...@@ -5166,7 +5166,7 @@ void issue_assocreq(struct adapter *padapter) ...@@ -5166,7 +5166,7 @@ void issue_assocreq(struct adapter *padapter)
kfree(pmlmepriv->assoc_req); kfree(pmlmepriv->assoc_req);
} }
/* 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, unsigned int power_mode, int wait_ack) static int _issue_nulldata(struct adapter *padapter, unsigned char *da, unsigned int power_mode, int wait_ack)
{ {
int ret = _FAIL; int ret = _FAIL;
...@@ -5235,7 +5235,7 @@ static int _issue_nulldata(struct adapter *padapter, unsigned char *da, unsigned ...@@ -5235,7 +5235,7 @@ static int _issue_nulldata(struct adapter *padapter, unsigned char *da, unsigned
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_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)
{ {
...@@ -5244,7 +5244,7 @@ int issue_nulldata(struct adapter *padapter, unsigned char *da, unsigned int pow ...@@ -5244,7 +5244,7 @@ int issue_nulldata(struct adapter *padapter, unsigned char *da, unsigned int pow
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);
...@@ -5268,7 +5268,7 @@ int issue_nulldata(struct adapter *padapter, unsigned char *da, unsigned int pow ...@@ -5268,7 +5268,7 @@ int issue_nulldata(struct adapter *padapter, unsigned char *da, unsigned int pow
return ret; return ret;
} }
/* 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, u16 tid, int wait_ack) static int _issue_qos_nulldata(struct adapter *padapter, unsigned char *da, u16 tid, int wait_ack)
{ {
int ret = _FAIL; int ret = _FAIL;
...@@ -5341,7 +5341,7 @@ static int _issue_qos_nulldata(struct adapter *padapter, unsigned char *da, u16 ...@@ -5341,7 +5341,7 @@ static int _issue_qos_nulldata(struct adapter *padapter, unsigned char *da, u16
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)
{ {
...@@ -5350,7 +5350,7 @@ int issue_qos_nulldata(struct adapter *padapter, unsigned char *da, u16 tid, int ...@@ -5350,7 +5350,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);
...@@ -5882,7 +5882,7 @@ static void rtw_set_opmode(struct adapter *adapter, u8 mode) ...@@ -5882,7 +5882,7 @@ static void rtw_set_opmode(struct adapter *adapter, u8 mode)
/**************************************************************************** /****************************************************************************
Following are some utitity fuctions for WiFi MLME Following are some utility functions for WiFi MLME
*****************************************************************************/ *****************************************************************************/
...@@ -6055,7 +6055,7 @@ void site_survey(struct adapter *padapter) ...@@ -6055,7 +6055,7 @@ void site_survey(struct adapter *padapter)
} else { } else {
/* 20100721:Interrupt scan operation here. */ /* 20100721:Interrupt scan operation here. */
/* For SW antenna diversity before link, it needs to switch to another antenna and scan again. */ /* For SW antenna diversity before link, it needs to switch to another antenna and scan again. */
/* It compares the scan result and select beter one to do connection. */ /* It compares the scan result and selects a better one to do connection. */
if (AntDivBeforeLink8188E(padapter)) { if (AntDivBeforeLink8188E(padapter)) {
pmlmeext->sitesurvey_res.bss_cnt = 0; pmlmeext->sitesurvey_res.bss_cnt = 0;
pmlmeext->sitesurvey_res.channel_idx = -1; pmlmeext->sitesurvey_res.channel_idx = -1;
...@@ -6325,7 +6325,7 @@ void start_create_ibss(struct adapter *padapter) ...@@ -6325,7 +6325,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 */
...@@ -6375,7 +6375,7 @@ void start_clnt_join(struct adapter *padapter) ...@@ -6375,7 +6375,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) {
...@@ -6969,7 +6969,7 @@ void mlmeext_joinbss_event_callback(struct adapter *padapter, int join_res) ...@@ -6969,7 +6969,7 @@ void mlmeext_joinbss_event_callback(struct adapter *padapter, int join_res)
/* BCN interval */ /* BCN interval */
rtw_write16(padapter, REG_BCN_INTERVAL, pmlmeinfo->bcn_interval); rtw_write16(padapter, REG_BCN_INTERVAL, 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 */
......
...@@ -972,7 +972,7 @@ static void validate_recv_ctrl_frame(struct adapter *padapter, ...@@ -972,7 +972,7 @@ static void validate_recv_ctrl_frame(struct adapter *padapter,
if (psta->sleepq_len == 0) { if (psta->sleepq_len == 0) {
pstapriv->tim_bitmap &= ~BIT(psta->aid); pstapriv->tim_bitmap &= ~BIT(psta->aid);
/* upate BCN for TIM IE */ /* update BCN for TIM IE */
/* update_BCNTIM(padapter); */ /* update_BCNTIM(padapter); */
update_beacon(padapter, _TIM_IE_, NULL, false); update_beacon(padapter, _TIM_IE_, NULL, false);
} }
...@@ -986,7 +986,7 @@ static void validate_recv_ctrl_frame(struct adapter *padapter, ...@@ -986,7 +986,7 @@ static void validate_recv_ctrl_frame(struct adapter *padapter,
pstapriv->tim_bitmap &= ~BIT(psta->aid); pstapriv->tim_bitmap &= ~BIT(psta->aid);
/* upate BCN for TIM IE */ /* update BCN for TIM IE */
/* update_BCNTIM(padapter); */ /* update_BCNTIM(padapter); */
update_beacon(padapter, _TIM_IE_, NULL, false); update_beacon(padapter, _TIM_IE_, NULL, false);
} }
...@@ -1984,13 +1984,13 @@ static void rtw_signal_stat_timer_hdl(struct timer_list *t) ...@@ -1984,13 +1984,13 @@ static void rtw_signal_stat_timer_hdl(struct timer_list *t)
} else { } else {
if (recvpriv->signal_strength_data.update_req == 0) {/* update_req is clear, means we got rx */ if (recvpriv->signal_strength_data.update_req == 0) {/* update_req is clear, means we got rx */
avg_signal_strength = recvpriv->signal_strength_data.avg_val; avg_signal_strength = recvpriv->signal_strength_data.avg_val;
/* after avg_vals are accquired, we can re-stat the signal values */ /* after avg_vals are acquired, we can re-stat the signal values */
recvpriv->signal_strength_data.update_req = 1; recvpriv->signal_strength_data.update_req = 1;
} }
if (recvpriv->signal_qual_data.update_req == 0) {/* update_req is clear, means we got rx */ if (recvpriv->signal_qual_data.update_req == 0) {/* update_req is clear, means we got rx */
avg_signal_qual = recvpriv->signal_qual_data.avg_val; avg_signal_qual = recvpriv->signal_qual_data.avg_val;
/* after avg_vals are accquired, we can re-stat the signal values */ /* after avg_vals are acquired, we can re-stat the signal values */
recvpriv->signal_qual_data.update_req = 1; recvpriv->signal_qual_data.update_req = 1;
} }
......
...@@ -69,7 +69,7 @@ void ODM_TxPwrTrackAdjust88E(struct odm_dm_struct *dm_odm, u8 Type,/* 0 = OFDM, ...@@ -69,7 +69,7 @@ void ODM_TxPwrTrackAdjust88E(struct odm_dm_struct *dm_odm, u8 Type,/* 0 = OFDM,
/*----------------------------------------------------------------------------- /*-----------------------------------------------------------------------------
* 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
......
...@@ -194,7 +194,7 @@ static void odm_HWAntDiv(struct odm_dm_struct *dm_odm) ...@@ -194,7 +194,7 @@ static void odm_HWAntDiv(struct odm_dm_struct *dm_odm)
for (i = 0; i < ODM_ASSOCIATE_ENTRY_NUM; i++) { for (i = 0; i < ODM_ASSOCIATE_ENTRY_NUM; i++) {
pEntry = dm_odm->pODM_StaInfo[i]; pEntry = dm_odm->pODM_StaInfo[i];
if (IS_STA_VALID(pEntry)) { if (IS_STA_VALID(pEntry)) {
/* 2 Caculate RSSI per Antenna */ /* 2 Calculate RSSI per Antenna */
Main_RSSI = (dm_fat_tbl->MainAnt_Cnt[i] != 0) ? (dm_fat_tbl->MainAnt_Sum[i] / dm_fat_tbl->MainAnt_Cnt[i]) : 0; Main_RSSI = (dm_fat_tbl->MainAnt_Cnt[i] != 0) ? (dm_fat_tbl->MainAnt_Sum[i] / dm_fat_tbl->MainAnt_Cnt[i]) : 0;
Aux_RSSI = (dm_fat_tbl->AuxAnt_Cnt[i] != 0) ? (dm_fat_tbl->AuxAnt_Sum[i] / dm_fat_tbl->AuxAnt_Cnt[i]) : 0; Aux_RSSI = (dm_fat_tbl->AuxAnt_Cnt[i] != 0) ? (dm_fat_tbl->AuxAnt_Sum[i] / dm_fat_tbl->AuxAnt_Cnt[i]) : 0;
TargetAnt = (Main_RSSI >= Aux_RSSI) ? MAIN_ANT : AUX_ANT; TargetAnt = (Main_RSSI >= Aux_RSSI) ? MAIN_ANT : AUX_ANT;
......
...@@ -355,7 +355,7 @@ void rtl8188e_EfusePowerSwitch(struct adapter *pAdapter, u8 PwrState) ...@@ -355,7 +355,7 @@ void rtl8188e_EfusePowerSwitch(struct adapter *pAdapter, u8 PwrState)
if (PwrState) { if (PwrState) {
rtw_write8(pAdapter, REG_EFUSE_ACCESS, EFUSE_ACCESS_ON); rtw_write8(pAdapter, REG_EFUSE_ACCESS, EFUSE_ACCESS_ON);
/* 1.2V Power: From VDDON with Power Cut(0x0000h[15]), defualt valid */ /* 1.2V Power: From VDDON with Power Cut(0x0000h[15]), default valid */
res = rtw_read16(pAdapter, REG_SYS_ISO_CTRL, &tmpV16); res = rtw_read16(pAdapter, REG_SYS_ISO_CTRL, &tmpV16);
if (res) if (res)
return; return;
......
...@@ -23,7 +23,7 @@ static u32 phy_calculate_bit_shift(u32 bitmask) ...@@ -23,7 +23,7 @@ static u32 phy_calculate_bit_shift(u32 bitmask)
/** /**
* Function: PHY_QueryBBReg * Function: PHY_QueryBBReg
* *
* OverView: Read "sepcific bits" from BB register * Overview: Read "sepcific bits" from BB register
* *
* Input: * Input:
* struct adapter *Adapter, * struct adapter *Adapter,
...@@ -56,7 +56,7 @@ rtl8188e_PHY_QueryBBReg( ...@@ -56,7 +56,7 @@ rtl8188e_PHY_QueryBBReg(
/** /**
* Function: PHY_SetBBReg * Function: PHY_SetBBReg
* *
* OverView: Write "Specific bits" to BB register (page 8~) * Overview: Write "Specific bits" to BB register (page 8~)
* *
* Input: * Input:
* struct adapter *Adapter, * struct adapter *Adapter,
...@@ -94,7 +94,7 @@ void rtl8188e_PHY_SetBBReg(struct adapter *Adapter, u32 RegAddr, u32 BitMask, u3 ...@@ -94,7 +94,7 @@ void rtl8188e_PHY_SetBBReg(struct adapter *Adapter, u32 RegAddr, u32 BitMask, u3
/** /**
* Function: phy_RFSerialRead * Function: phy_RFSerialRead
* *
* OverView: Read regster from RF chips * Overview: Read register from RF chips
* *
* Input: * Input:
* struct adapter *Adapter, * struct adapter *Adapter,
...@@ -160,7 +160,7 @@ phy_RFSerialRead( ...@@ -160,7 +160,7 @@ phy_RFSerialRead(
/** /**
* Function: phy_RFSerialWrite * Function: phy_RFSerialWrite
* *
* OverView: Write data to RF register (page 8~) * Overview: Write data to RF register (page 8~)
* *
* Input: * Input:
* struct adapter *Adapter, * struct adapter *Adapter,
...@@ -235,7 +235,7 @@ phy_RFSerialWrite( ...@@ -235,7 +235,7 @@ phy_RFSerialWrite(
/** /**
* Function: PHY_QueryRFReg * Function: PHY_QueryRFReg
* *
* OverView: Query "Specific bits" to RF register (page 8~) * Overview: Query "Specific bits" to RF register (page 8~)
* *
* Input: * Input:
* struct adapter *Adapter, * struct adapter *Adapter,
...@@ -261,7 +261,7 @@ u32 rtl8188e_PHY_QueryRFReg(struct adapter *Adapter, u32 RegAddr, u32 BitMask) ...@@ -261,7 +261,7 @@ u32 rtl8188e_PHY_QueryRFReg(struct adapter *Adapter, u32 RegAddr, u32 BitMask)
/** /**
* Function: PHY_SetRFReg * Function: PHY_SetRFReg
* *
* OverView: Write "Specific bits" to RF register (page 8~) * Overview: Write "Specific bits" to RF register (page 8~)
* *
* Input: * Input:
* struct adapter *Adapter, * struct adapter *Adapter,
...@@ -335,7 +335,7 @@ s32 PHY_MACConfig8188E(struct adapter *Adapter) ...@@ -335,7 +335,7 @@ s32 PHY_MACConfig8188E(struct adapter *Adapter)
/** /**
* Function: phy_InitBBRFRegisterDefinition * Function: phy_InitBBRFRegisterDefinition
* *
* OverView: Initialize Register definition offset for Radio Path A/B/C/D * Overview: Initialize Register definition offset for Radio Path A/B/C/D
* *
* Input: * Input:
* struct adapter *Adapter, * struct adapter *Adapter,
...@@ -363,7 +363,7 @@ phy_InitBBRFRegisterDefinition( ...@@ -363,7 +363,7 @@ phy_InitBBRFRegisterDefinition(
/* RF Interface (Output and) Enable */ /* RF Interface (Output and) Enable */
pHalData->PHYRegDef.rfintfe = rFPGA0_XA_RFInterfaceOE; /* 16 MSBs if read 32-bit from 0x860 (16-bit for 0x862) */ pHalData->PHYRegDef.rfintfe = rFPGA0_XA_RFInterfaceOE; /* 16 MSBs if read 32-bit from 0x860 (16-bit for 0x862) */
/* Addr of LSSI. Wirte RF register by driver */ /* Addr of LSSI. Write RF register by driver */
pHalData->PHYRegDef.rf3wireOffset = rFPGA0_XA_LSSIParameter; /* LSSI Parameter */ pHalData->PHYRegDef.rf3wireOffset = rFPGA0_XA_LSSIParameter; /* LSSI Parameter */
/* RF parameter */ /* RF parameter */
......
...@@ -92,7 +92,7 @@ ...@@ -92,7 +92,7 @@
#define rFPGA0_AdDaClockEn 0x888 #define rFPGA0_AdDaClockEn 0x888
#define rFPGA0_AnalogParameter4 0x88c #define rFPGA0_AnalogParameter4 0x88c
#define rFPGA0_XA_LSSIReadBack 0x8a0 /* Tranceiver LSSI Readback */ #define rFPGA0_XA_LSSIReadBack 0x8a0 /* Transceiver LSSI Readback */
#define rFPGA0_XB_LSSIReadBack 0x8a4 #define rFPGA0_XB_LSSIReadBack 0x8a4
#define rFPGA0_XC_LSSIReadBack 0x8a8 #define rFPGA0_XC_LSSIReadBack 0x8a8
#define rFPGA0_XD_LSSIReadBack 0x8ac #define rFPGA0_XD_LSSIReadBack 0x8ac
...@@ -167,7 +167,7 @@ ...@@ -167,7 +167,7 @@
/* RxIQ DC offset, Rx digital filter, DC notch filter */ /* RxIQ DC offset, Rx digital filter, DC notch filter */
#define rOFDM0_XARxAFE 0xc10 #define rOFDM0_XARxAFE 0xc10
#define rOFDM0_XARxIQImbalance 0xc14 /* RxIQ imblance matrix */ #define rOFDM0_XARxIQImbalance 0xc14 /* RxIQ imbalance matrix */
#define rOFDM0_XBRxAFE 0xc18 #define rOFDM0_XBRxAFE 0xc18
#define rOFDM0_XBRxIQImbalance 0xc1c #define rOFDM0_XBRxIQImbalance 0xc1c
#define rOFDM0_XCRxAFE 0xc20 #define rOFDM0_XCRxAFE 0xc20
......
...@@ -87,7 +87,7 @@ struct txpowerinfo24g { ...@@ -87,7 +87,7 @@ struct txpowerinfo24g {
/* 9bytes + 1byt + 5bytes and pre 1byte. */ /* 9bytes + 1byt + 5bytes and pre 1byte. */
/* For worst case: */ /* For worst case: */
/* | 2byte|----8bytes----|1byte|--7bytes--| 92D */ /* | 2byte|----8bytes----|1byte|--7bytes--| 92D */
/* PG data exclude header, dummy 7 bytes frome CP test and reserved 1byte. */ /* PG data exclude header, dummy 7 bytes from CP test and reserved 1byte. */
#define EFUSE_OOB_PROTECT_BYTES_88E 18 #define EFUSE_OOB_PROTECT_BYTES_88E 18
#define EFUSE_PROTECT_BYTES_BANK 16 #define EFUSE_PROTECT_BYTES_BANK 16
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
#ifndef __RTL8188E_SPEC_H__ #ifndef __RTL8188E_SPEC_H__
#define __RTL8188E_SPEC_H__ #define __RTL8188E_SPEC_H__
/* 8192C Regsiter offset definition */ /* 8192C Register offset definition */
#define HAL_PS_TIMER_INT_DELAY 50 /* 50 microseconds */ #define HAL_PS_TIMER_INT_DELAY 50 /* 50 microseconds */
#define HAL_92C_NAV_UPPER_UNIT 128 /* micro-second */ #define HAL_92C_NAV_UPPER_UNIT 128 /* micro-second */
...@@ -674,7 +674,7 @@ Current IOREG MAP ...@@ -674,7 +674,7 @@ Current IOREG MAP
#define REG_USB_HRPWM 0xFE58 #define REG_USB_HRPWM 0xFE58
#define REG_USB_HCPWM 0xFE57 #define REG_USB_HCPWM 0xFE57
/* 8192C Regsiter Bit and Content definition */ /* 8192C Register Bit and Content definition */
/* 0x0000h ~ 0x00FFh System Configuration */ /* 0x0000h ~ 0x00FFh System Configuration */
/* 2 SYS_ISO_CTRL */ /* 2 SYS_ISO_CTRL */
...@@ -1135,7 +1135,7 @@ Current IOREG MAP ...@@ -1135,7 +1135,7 @@ Current IOREG MAP
#define EEPROM_Default_CrystalCap_88E 0x20 #define EEPROM_Default_CrystalCap_88E 0x20
#define EEPROM_Default_ThermalMeter_88E 0x18 #define EEPROM_Default_ThermalMeter_88E 0x18
/* New EFUSE deafult value */ /* New EFUSE default value */
#define EEPROM_DEFAULT_24G_INDEX 0x2D #define EEPROM_DEFAULT_24G_INDEX 0x2D
#define EEPROM_DEFAULT_24G_HT20_DIFF 0X02 #define EEPROM_DEFAULT_24G_HT20_DIFF 0X02
#define EEPROM_DEFAULT_24G_OFDM_DIFF 0X04 #define EEPROM_DEFAULT_24G_OFDM_DIFF 0X04
......
...@@ -450,7 +450,7 @@ struct Tx_Beacon_param ...@@ -450,7 +450,7 @@ struct Tx_Beacon_param
mac[0] == 0 mac[0] == 0
==> CMD mode, return H2C_SUCCESS. ==> CMD mode, return H2C_SUCCESS.
The following condition must be ture under CMD mode The following condition must be true under CMD mode
mac[1] == mac[4], mac[2] == mac[3], mac[0]=mac[5]= 0; mac[1] == mac[4], mac[2] == mac[3], mac[0]=mac[5]= 0;
s0 == 0x1234, s1 == 0xabcd, w0 == 0x78563412, w1 == 0x5aa5def7; s0 == 0x1234, s1 == 0xabcd, w0 == 0x78563412, w1 == 0x5aa5def7;
s2 == (b1 << 8 | b0); s2 == (b1 << 8 | b0);
...@@ -503,7 +503,7 @@ struct drvextra_cmd_parm { ...@@ -503,7 +503,7 @@ struct drvextra_cmd_parm {
unsigned char *pbuf; unsigned char *pbuf;
}; };
/*------------------- Below are used for RF/BB tunning ---------------------*/ /*------------------- Below are used for RF/BB tuning ---------------------*/
struct setantenna_parm { struct setantenna_parm {
u8 tx_antset; u8 tx_antset;
......
...@@ -92,7 +92,7 @@ struct rx_pkt_attrib { ...@@ -92,7 +92,7 @@ struct rx_pkt_attrib {
u8 privacy; /* in frame_ctrl field */ u8 privacy; /* in frame_ctrl field */
u8 bdecrypted; u8 bdecrypted;
u8 encrypt; /* when 0 indicate no encrypt. when non-zero, u8 encrypt; /* when 0 indicate no encrypt. when non-zero,
* indicate the encrypt algorith */ * indicate the encrypt algorithm */
u8 iv_len; u8 iv_len;
u8 icv_len; u8 icv_len;
u8 crc_err; u8 crc_err;
...@@ -175,7 +175,7 @@ struct recv_priv { ...@@ -175,7 +175,7 @@ struct recv_priv {
u8 *precv_buf; /* 4 alignment */ u8 *precv_buf; /* 4 alignment */
struct __queue free_recv_buf_queue; struct __queue free_recv_buf_queue;
u32 free_recv_buf_queue_cnt; u32 free_recv_buf_queue_cnt;
/* For display the phy informatiom */ /* For display the phy information */
u8 is_signal_dbg; /* for debug */ u8 is_signal_dbg; /* for debug */
u8 signal_strength_dbg; /* for debug */ u8 signal_strength_dbg; /* for debug */
s8 rssi; s8 rssi;
......
...@@ -116,7 +116,7 @@ struct pkt_attrib { ...@@ -116,7 +116,7 @@ struct pkt_attrib {
u32 last_txcmdsz; u32 last_txcmdsz;
u8 nr_frags; u8 nr_frags;
u8 encrypt; /* when 0 indicate no encrypt. when non-zero, u8 encrypt; /* when 0 indicate no encrypt. when non-zero,
* indicate the encrypt algorith */ * indicate the encrypt algorithm */
u8 iv_len; u8 iv_len;
u8 icv_len; u8 icv_len;
u8 iv[18]; u8 iv[18];
......
...@@ -701,7 +701,7 @@ struct ADDBA_request { ...@@ -701,7 +701,7 @@ struct ADDBA_request {
#define P2P_WILDCARD_SSID_LEN 7 #define P2P_WILDCARD_SSID_LEN 7
/* default value, used when: (1)p2p disabed or (2)p2p enabled /* default value, used when: (1)p2p disabled or (2)p2p enabled
* but only do 1 scan phase */ * but only do 1 scan phase */
#define P2P_FINDPHASE_EX_NONE 0 #define P2P_FINDPHASE_EX_NONE 0
/* used when p2p enabled and want to do 1 scan phase and /* used when p2p enabled and want to do 1 scan phase and
...@@ -766,11 +766,11 @@ enum P2P_STATE { ...@@ -766,11 +766,11 @@ enum P2P_STATE {
P2P_STATE_TX_PROVISION_DIS_REQ = 6, P2P_STATE_TX_PROVISION_DIS_REQ = 6,
P2P_STATE_RX_PROVISION_DIS_RSP = 7, P2P_STATE_RX_PROVISION_DIS_RSP = 7,
P2P_STATE_RX_PROVISION_DIS_REQ = 8, P2P_STATE_RX_PROVISION_DIS_REQ = 8,
/* Doing the group owner negoitation handshake */ /* Doing the group owner negotiation handshake */
P2P_STATE_GONEGO_ING = 9, P2P_STATE_GONEGO_ING = 9,
/* finish the group negoitation handshake with success */ /* finish the group negotiation handshake with success */
P2P_STATE_GONEGO_OK = 10, P2P_STATE_GONEGO_OK = 10,
/* finish the group negoitation handshake with failure */ /* finish the group negotiation handshake with failure */
P2P_STATE_GONEGO_FAIL = 11, P2P_STATE_GONEGO_FAIL = 11,
/* receiving the P2P Inviation request and match with the profile. */ /* receiving the P2P Inviation request and match with the profile. */
P2P_STATE_RECV_INVITE_REQ_MATCH = 12, P2P_STATE_RECV_INVITE_REQ_MATCH = 12,
...@@ -790,9 +790,9 @@ enum P2P_STATE { ...@@ -790,9 +790,9 @@ enum P2P_STATE {
P2P_STATE_RECV_INVITE_REQ_JOIN = 19, P2P_STATE_RECV_INVITE_REQ_JOIN = 19,
/* recveing the P2P Inviation response with failure */ /* recveing the P2P Inviation response with failure */
P2P_STATE_RX_INVITE_RESP_FAIL = 20, P2P_STATE_RX_INVITE_RESP_FAIL = 20,
/* receiving p2p negoitation response with information is not available */ /* receiving p2p negotiation response with information is not available */
P2P_STATE_RX_INFOR_NOREADY = 21, P2P_STATE_RX_INFOR_NOREADY = 21,
/* sending p2p negoitation response with information is not available */ /* sending p2p negotiation response with information is not available */
P2P_STATE_TX_INFOR_NOREADY = 22, P2P_STATE_TX_INFOR_NOREADY = 22,
}; };
......
...@@ -2647,7 +2647,7 @@ static int rtw_p2p_connect(struct net_device *dev, ...@@ -2647,7 +2647,7 @@ static int rtw_p2p_connect(struct net_device *dev,
u32 peer_channel = 0; u32 peer_channel = 0;
/* Commented by Albert 20110304 */ /* Commented by Albert 20110304 */
/* The input data contains two informations. */ /* The input data contains two information. */
/* 1. First information is the MAC address which wants to formate with */ /* 1. First information is the MAC address which wants to formate with */
/* 2. Second information is the WPS PINCode or "pbc" string for push button method */ /* 2. Second information is the WPS PINCode or "pbc" string for push button method */
/* Format: 00:E0:4C:00:00:05 */ /* Format: 00:E0:4C:00:00:05 */
...@@ -2721,7 +2721,7 @@ static void rtw_p2p_invite_req(struct net_device *dev, ...@@ -2721,7 +2721,7 @@ static void rtw_p2p_invite_req(struct net_device *dev,
uint p2pielen = 0, attr_contentlen = 0; uint p2pielen = 0, attr_contentlen = 0;
struct tx_invite_req_info *pinvite_req_info = &pwdinfo->invitereq_info; struct tx_invite_req_info *pinvite_req_info = &pwdinfo->invitereq_info;
/* The input data contains two informations. */ /* The input data contains two information items. */
/* 1. First information is the P2P device address which you want to send to. */ /* 1. First information is the P2P device address which you want to send to. */
/* 2. Second information is the group id which combines with GO's mac address, space and GO's ssid. */ /* 2. Second information is the group id which combines with GO's mac address, space and GO's ssid. */
/* Command line sample: iwpriv wlan0 p2p_set invite ="00:11:22:33:44:55 00:E0:4C:00:00:05 DIRECT-xy" */ /* Command line sample: iwpriv wlan0 p2p_set invite ="00:11:22:33:44:55 00:E0:4C:00:00:05 DIRECT-xy" */
...@@ -2845,7 +2845,7 @@ static void rtw_p2p_prov_disc(struct net_device *dev, ...@@ -2845,7 +2845,7 @@ static void rtw_p2p_prov_disc(struct net_device *dev,
u8 *p2pie; u8 *p2pie;
uint p2pielen = 0, attr_contentlen = 0; uint p2pielen = 0, attr_contentlen = 0;
/* The input data contains two informations. */ /* The input data contains two information items. */
/* 1. First information is the MAC address which wants to issue the provisioning discovery request frame. */ /* 1. First information is the MAC address which wants to issue the provisioning discovery request frame. */
/* 2. Second information is the WPS configuration method which wants to discovery */ /* 2. Second information is the WPS configuration method which wants to discovery */
/* Format: 00:E0:4C:00:00:05_display */ /* Format: 00:E0:4C:00:00:05_display */
......
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