mirror of
https://github.com/lwfinger/rtl8188eu.git
synced 2025-06-23 08:34:20 +00:00
rtl8188eu: Change "while(" to "while ("
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
This commit is contained in:
parent
6ead3e77dc
commit
8e22f0d2e8
37 changed files with 151 additions and 151 deletions
|
@ -77,7 +77,7 @@ static __inline__ unsigned char *__nat25_find_pppoe_tag(struct pppoe_hdr *ph, un
|
|||
unsigned short tagLen, tagType;
|
||||
|
||||
start_ptr = cur_ptr = (unsigned char *)ph->tag;
|
||||
while((cur_ptr - start_ptr) < ntohs(ph->length)) {
|
||||
while ((cur_ptr - start_ptr) < ntohs(ph->length)) {
|
||||
/* prevent un-alignment access */
|
||||
tagType = (unsigned short)((cur_ptr[0] << 8) + cur_ptr[1]);
|
||||
tagLen = (unsigned short)((cur_ptr[2] << 8) + cur_ptr[3]);
|
||||
|
@ -1459,7 +1459,7 @@ void dhcp_flag_bcast(struct adapter *priv, struct sk_buff *skb)
|
|||
/* recalculate checksum */
|
||||
sum = ~(udph->check) & 0xffff;
|
||||
sum += dhcph->flags;
|
||||
while(sum >> 16)
|
||||
while (sum >> 16)
|
||||
sum = (sum & 0xffff) + (sum >> 16);
|
||||
udph->check = ~sum;
|
||||
}
|
||||
|
|
|
@ -116,7 +116,7 @@ void _rtw_free_evt_priv (struct evt_priv *pevtpriv)
|
|||
|
||||
#ifdef CONFIG_C2H_WK
|
||||
_cancel_workitem_sync(&pevtpriv->c2h_wk);
|
||||
while(pevtpriv->c2h_wk_alive)
|
||||
while (pevtpriv->c2h_wk_alive)
|
||||
rtw_msleep_os(10);
|
||||
|
||||
while (!rtw_cbuf_empty(pevtpriv->c2h_queue)) {
|
||||
|
@ -380,7 +380,7 @@ int rtw_cmd_thread(void * context)
|
|||
|
||||
RT_TRACE(_module_rtl871x_cmd_c_,_drv_info_,("start r871x rtw_cmd_thread !!!!\n"));
|
||||
|
||||
while(1)
|
||||
while (1)
|
||||
{
|
||||
if (_rtw_down_sema(&pcmdpriv->cmd_queue_sema) == _FAIL) {
|
||||
DBG_871X_LEVEL(_drv_always_, FUNC_ADPT_FMT" _rtw_down_sema(&pcmdpriv->cmd_queue_sema) return _FAIL, break\n", FUNC_ADPT_ARG(padapter));
|
||||
|
@ -489,7 +489,7 @@ post_process:
|
|||
/* DBG_871X("%s: leaving... drop cmdcode:%u\n", __FUNCTION__, pcmd->cmdcode); */
|
||||
|
||||
rtw_free_cmd_obj(pcmd);
|
||||
}while(1);
|
||||
}while (1);
|
||||
|
||||
_rtw_up_sema(&pcmdpriv->terminate_cmdthread_sema);
|
||||
|
||||
|
@ -2278,12 +2278,12 @@ static void rtw_chk_hi_queue_hdl(struct adapter *padapter)
|
|||
{
|
||||
u8 val = 0;
|
||||
|
||||
/* while((rtw_read32(padapter, 0x414)&0x00ffff00)!=0) */
|
||||
/* while((rtw_read32(padapter, 0x414)&0x0000ff00)!=0) */
|
||||
/* while ((rtw_read32(padapter, 0x414)&0x00ffff00)!=0) */
|
||||
/* while ((rtw_read32(padapter, 0x414)&0x0000ff00)!=0) */
|
||||
|
||||
rtw_hal_get_hwreg(padapter, HW_VAR_CHK_HI_QUEUE_EMPTY, &val);
|
||||
|
||||
while(false == val)
|
||||
while (false == val)
|
||||
{
|
||||
rtw_msleep_os(100);
|
||||
|
||||
|
|
|
@ -206,8 +206,8 @@ ReadEFuseByte(
|
|||
/* Check bit 32 read-ready */
|
||||
retry = 0;
|
||||
value32 = rtw_read32(Adapter, EFUSE_CTRL);
|
||||
/* while(!(((value32 >> 24) & 0xff) & 0x80) && (retry<10)) */
|
||||
while(!(((value32 >> 24) & 0xff) & 0x80) && (retry<10000))
|
||||
/* while (!(((value32 >> 24) & 0xff) & 0x80) && (retry<10)) */
|
||||
while (!(((value32 >> 24) & 0xff) & 0x80) && (retry<10000))
|
||||
{
|
||||
value32 = rtw_read32(Adapter, EFUSE_CTRL);
|
||||
retry++;
|
||||
|
@ -324,7 +324,7 @@ EFUSE_Read1Byte(
|
|||
|
||||
/* Wait Write-ready (0x30[31]=1) */
|
||||
Bytetemp = rtw_read8(Adapter, EFUSE_CTRL+3);
|
||||
while(!(Bytetemp & 0x80))
|
||||
while (!(Bytetemp & 0x80))
|
||||
{
|
||||
Bytetemp = rtw_read8(Adapter, EFUSE_CTRL+3);
|
||||
k++;
|
||||
|
@ -398,7 +398,7 @@ EFUSE_Write1Byte(
|
|||
|
||||
/* Wait Write-ready (0x30[31]=0) */
|
||||
Bytetemp = rtw_read8(Adapter, EFUSE_CTRL+3);
|
||||
while(Bytetemp & 0x80)
|
||||
while (Bytetemp & 0x80)
|
||||
{
|
||||
Bytetemp = rtw_read8(Adapter, EFUSE_CTRL+3);
|
||||
k++;
|
||||
|
@ -435,7 +435,7 @@ efuse_OneByteRead(
|
|||
|
||||
rtw_write8(pAdapter, EFUSE_CTRL+3, 0x72);/* read cmd */
|
||||
|
||||
while(!(0x80 &rtw_read8(pAdapter, EFUSE_CTRL+3))&&(tmpidx<100))
|
||||
while (!(0x80 &rtw_read8(pAdapter, EFUSE_CTRL+3))&&(tmpidx<100))
|
||||
{
|
||||
tmpidx++;
|
||||
}
|
||||
|
@ -481,7 +481,7 @@ efuse_OneByteWrite(
|
|||
|
||||
rtw_write8(pAdapter, EFUSE_CTRL+3, 0xF2);/* write cmd */
|
||||
|
||||
while((0x80 & rtw_read8(pAdapter, EFUSE_CTRL+3)) && (tmpidx<100) ){
|
||||
while ((0x80 & rtw_read8(pAdapter, EFUSE_CTRL+3)) && (tmpidx<100) ){
|
||||
tmpidx++;
|
||||
}
|
||||
|
||||
|
|
|
@ -72,7 +72,7 @@ int rtw_get_bit_value_from_ieee_value(u8 val)
|
|||
unsigned char dot11_rate_table[]={2,4,11,22,12,18,24,36,48,72,96,108,0}; /* last element must be zero!! */
|
||||
|
||||
int i=0;
|
||||
while(dot11_rate_table[i] != 0) {
|
||||
while (dot11_rate_table[i] != 0) {
|
||||
if (dot11_rate_table[i] == val)
|
||||
return BIT(i);
|
||||
i++;
|
||||
|
@ -84,7 +84,7 @@ uint rtw_is_cckrates_included(u8 *rate)
|
|||
{
|
||||
u32 i = 0;
|
||||
|
||||
while(rate[i]!=0) {
|
||||
while (rate[i]!=0) {
|
||||
if ((((rate[i]) & 0x7f) == 2) || (((rate[i]) & 0x7f) == 4) ||
|
||||
(((rate[i]) & 0x7f) == 11) || (((rate[i]) & 0x7f) == 22) )
|
||||
return true;
|
||||
|
@ -228,7 +228,7 @@ u8 *rtw_get_ie(u8 *pbuf, sint index, sint *len, sint limit)
|
|||
p = pbuf;
|
||||
i = 0;
|
||||
*len = 0;
|
||||
while(1)
|
||||
while (1)
|
||||
{
|
||||
if (*p == index)
|
||||
{
|
||||
|
@ -274,7 +274,7 @@ u8 *rtw_get_ie_ex(u8 *in_ie, uint in_len, u8 eid, u8 *oui, u8 oui_len, u8 *ie, u
|
|||
|
||||
cnt = 0;
|
||||
|
||||
while(cnt<in_len)
|
||||
while (cnt<in_len)
|
||||
{
|
||||
if (eid == in_ie[cnt]
|
||||
&& ( !oui || _rtw_memcmp(&in_ie[cnt+2], oui, oui_len) == true))
|
||||
|
@ -381,7 +381,7 @@ uint rtw_get_rateset_len(u8 *rateset)
|
|||
{
|
||||
uint i = 0;
|
||||
;
|
||||
while(1)
|
||||
while (1)
|
||||
{
|
||||
if ((rateset[i]) == 0)
|
||||
break;
|
||||
|
@ -490,7 +490,7 @@ unsigned char *rtw_get_wpa_ie(unsigned char *pie, int *wpa_ie_len, int limit)
|
|||
u8 *pbuf = pie;
|
||||
int limit_new = limit;
|
||||
|
||||
while(1)
|
||||
while (1)
|
||||
{
|
||||
pbuf = rtw_get_ie(pbuf, _WPA_IE_ID_, &len, limit_new);
|
||||
|
||||
|
@ -752,7 +752,7 @@ int rtw_get_sec_ie(u8 *in_ie,uint in_len,u8 *rsn_ie,u16 *rsn_len,u8 *wpa_ie,u16
|
|||
|
||||
sec_idx=0;
|
||||
|
||||
while(cnt<in_len)
|
||||
while (cnt<in_len)
|
||||
{
|
||||
authmode=in_ie[cnt];
|
||||
|
||||
|
@ -869,7 +869,7 @@ u8 *rtw_get_wps_ie(u8 *in_ie, uint in_len, u8 *wps_ie, uint *wps_ielen)
|
|||
|
||||
cnt = 0;
|
||||
|
||||
while(cnt<in_len)
|
||||
while (cnt<in_len)
|
||||
{
|
||||
eid = in_ie[cnt];
|
||||
|
||||
|
@ -925,7 +925,7 @@ u8 *rtw_get_wps_attr(u8 *wps_ie, uint wps_ielen, u16 target_attr_id ,u8 *buf_att
|
|||
/* 6 = 1(Element ID) + 1(Length) + 4(WPS OUI) */
|
||||
attr_ptr = wps_ie + 6; /* goto first attr */
|
||||
|
||||
while(attr_ptr - wps_ie < wps_ielen)
|
||||
while (attr_ptr - wps_ie < wps_ielen)
|
||||
{
|
||||
/* 4 = 2(Attribute ID) + 2(Length) */
|
||||
u16 attr_id = RTW_GET_BE16(attr_ptr);
|
||||
|
@ -1295,7 +1295,7 @@ void dump_ies(u8 *buf, u32 buf_len)
|
|||
u8* pos = (u8*)buf;
|
||||
u8 id, len;
|
||||
|
||||
while(pos-buf<=buf_len){
|
||||
while (pos-buf<=buf_len){
|
||||
id = *pos;
|
||||
len = *(pos+1);
|
||||
|
||||
|
@ -1326,7 +1326,7 @@ void dump_wps_ie(u8 *ie, u32 ie_len)
|
|||
return;
|
||||
|
||||
pos+=6;
|
||||
while(pos-ie < ie_len){
|
||||
while (pos-ie < ie_len){
|
||||
id = RTW_GET_BE16(pos);
|
||||
len = RTW_GET_BE16(pos + 2);
|
||||
|
||||
|
@ -1350,7 +1350,7 @@ u32 rtw_get_p2p_merged_ies_len(u8 *in_ie, u32 in_len)
|
|||
int i=0;
|
||||
int j=0, len=0;
|
||||
|
||||
while( i < in_len)
|
||||
while ( i < in_len)
|
||||
{
|
||||
pIE = (struct ndis_802_11_variable_ies *)(in_ie+ i);
|
||||
|
||||
|
@ -1386,7 +1386,7 @@ int rtw_p2p_merge_ies(u8 *in_ie, u32 in_len, u8 *merge_ie)
|
|||
memcpy(merge_ie, ELOUI, 6);
|
||||
merge_ie += 6;
|
||||
|
||||
while( i < in_len)
|
||||
while ( i < in_len)
|
||||
{
|
||||
pIE = (struct ndis_802_11_variable_ies *)(in_ie+ i);
|
||||
|
||||
|
@ -1421,7 +1421,7 @@ void dump_p2p_ie(u8 *ie, u32 ie_len) {
|
|||
return;
|
||||
|
||||
pos+=6;
|
||||
while(pos-ie < ie_len){
|
||||
while (pos-ie < ie_len){
|
||||
id = *pos;
|
||||
len = RTW_GET_LE16(pos+1);
|
||||
|
||||
|
@ -1471,7 +1471,7 @@ u8 *rtw_get_p2p_ie(u8 *in_ie, int in_len, u8 *p2p_ie, uint *p2p_ielen)
|
|||
if ( p2p_ielen != NULL )
|
||||
*p2p_ielen = 0;
|
||||
|
||||
while(cnt<in_len)
|
||||
while (cnt<in_len)
|
||||
{
|
||||
eid = in_ie[cnt];
|
||||
if ((in_len < 0) || (cnt > MAX_IE_SZ)) {
|
||||
|
@ -1535,7 +1535,7 @@ u8 *rtw_get_p2p_attr(u8 *p2p_ie, uint p2p_ielen, u8 target_attr_id ,u8 *buf_attr
|
|||
/* 6 = 1(Element ID) + 1(Length) + 3 (OUI) + 1(OUI Type) */
|
||||
attr_ptr = p2p_ie + 6; /* goto first attr */
|
||||
|
||||
while(attr_ptr - p2p_ie < p2p_ielen)
|
||||
while (attr_ptr - p2p_ie < p2p_ielen)
|
||||
{
|
||||
/* 3 = 1(Attribute ID) + 2(Length) */
|
||||
u8 attr_id = *attr_ptr;
|
||||
|
@ -1623,7 +1623,7 @@ static uint rtw_p2p_attr_remove(u8 *ie, uint ielen_ori, u8 attr_id)
|
|||
uint ielen = ielen_ori;
|
||||
int index=0;
|
||||
|
||||
while(1) {
|
||||
while (1) {
|
||||
target_attr=rtw_get_p2p_attr(ie, ielen, attr_id, NULL, &target_attr_len);
|
||||
if (target_attr && target_attr_len)
|
||||
{
|
||||
|
@ -1683,7 +1683,7 @@ void dump_wfd_ie(u8 *ie, u32 ie_len)
|
|||
return;
|
||||
|
||||
pos+=6;
|
||||
while(pos-ie < ie_len){
|
||||
while (pos-ie < ie_len){
|
||||
id = *pos;
|
||||
len = RTW_GET_BE16(pos+1);
|
||||
|
||||
|
@ -1707,7 +1707,7 @@ int rtw_get_wfd_ie(u8 *in_ie, int in_len, u8 *wfd_ie, uint *wfd_ielen)
|
|||
return match;
|
||||
}
|
||||
|
||||
while(cnt<in_len)
|
||||
while (cnt<in_len)
|
||||
{
|
||||
eid = in_ie[cnt];
|
||||
|
||||
|
@ -1795,7 +1795,7 @@ int rtw_get_wfd_attr_content(u8 *wfd_ie, uint wfd_ielen, u8 target_attr_id ,u8 *
|
|||
|
||||
/* 1 ( WFD IE ) + 1 ( Length ) + 3 ( OUI ) + 1 ( OUI Type ) */
|
||||
cnt = 6;
|
||||
while( cnt < wfd_ielen )
|
||||
while ( cnt < wfd_ielen )
|
||||
{
|
||||
u16 attrlen = RTW_GET_BE16(wfd_ie + cnt + 1);
|
||||
|
||||
|
|
|
@ -1232,7 +1232,7 @@ u16 rtw_get_cur_max_rate(struct adapter *adapter)
|
|||
}
|
||||
else
|
||||
{
|
||||
while( (pcur_bss->SupportedRates[i]!=0) && (pcur_bss->SupportedRates[i]!=0xFF))
|
||||
while ( (pcur_bss->SupportedRates[i]!=0) && (pcur_bss->SupportedRates[i]!=0xFF))
|
||||
{
|
||||
rate = pcur_bss->SupportedRates[i]&0x7F;
|
||||
if (rate>max_rate)
|
||||
|
|
|
@ -595,7 +595,7 @@ struct wlan_network * rtw_get_oldest_wlan_network(struct __queue *scanned_queue
|
|||
|
||||
plist = get_next(phead);
|
||||
|
||||
while(1)
|
||||
while (1)
|
||||
{
|
||||
|
||||
if (rtw_end_of_queue_search(phead,plist)== true)
|
||||
|
@ -737,7 +737,7 @@ void rtw_update_scanned_network(struct adapter *adapter, struct wlan_bssid_ex *t
|
|||
feature = 1; /* p2p enable */
|
||||
#endif
|
||||
|
||||
while(1)
|
||||
while (1)
|
||||
{
|
||||
if (rtw_end_of_queue_search(phead,plist)== true)
|
||||
break;
|
||||
|
@ -2036,7 +2036,7 @@ void _rtw_join_timeout_handler (struct adapter *adapter)
|
|||
spin_lock_bh(&pmlmepriv->lock);
|
||||
|
||||
if (rtw_to_roaming(adapter) > 0) { /* join timeout caused by roaming */
|
||||
while(1) {
|
||||
while (1) {
|
||||
pmlmepriv->to_roaming--;
|
||||
if (rtw_to_roaming(adapter) != 0) { /* try another */
|
||||
DBG_871X("%s try another roaming\n", __FUNCTION__);
|
||||
|
@ -2509,7 +2509,7 @@ int rtw_restruct_wmm_ie(struct adapter *adapter, u8 *in_ie, u8 *out_ie, uint in_
|
|||
unsigned int i, j;
|
||||
|
||||
i = 12; /* after the fixed IE */
|
||||
while(i<in_len)
|
||||
while (i<in_len)
|
||||
{
|
||||
ielength = initial_out_len;
|
||||
|
||||
|
@ -2565,7 +2565,7 @@ static int SecIsInPMKIDList(struct adapter *Adapter, u8 *bssid)
|
|||
/* continue; */
|
||||
}
|
||||
|
||||
}while(i<NUM_PMKID_CACHE);
|
||||
}while (i<NUM_PMKID_CACHE);
|
||||
|
||||
if ( i == NUM_PMKID_CACHE )
|
||||
{
|
||||
|
@ -3079,7 +3079,7 @@ void _rtw_roaming(struct adapter *padapter, struct wlan_network *tgt_network)
|
|||
|
||||
pmlmepriv->assoc_by_bssid = false;
|
||||
|
||||
while(1) {
|
||||
while (1) {
|
||||
if ( _SUCCESS==(do_join_r=rtw_do_join(padapter)) ) {
|
||||
break;
|
||||
} else {
|
||||
|
|
|
@ -4774,7 +4774,7 @@ int issue_probereq_p2p_ex(struct adapter *adapter, u8 *da, int try_cnt, int wait
|
|||
if (i < try_cnt && wait_ms > 0 && ret==_FAIL)
|
||||
rtw_msleep_os(wait_ms);
|
||||
|
||||
}while((i<try_cnt) && ((ret==_FAIL)||(wait_ms==0)));
|
||||
}while ((i<try_cnt) && ((ret==_FAIL)||(wait_ms==0)));
|
||||
|
||||
if (ret != _FAIL) {
|
||||
ret = _SUCCESS;
|
||||
|
@ -6327,7 +6327,7 @@ int issue_probereq_ex(struct adapter *padapter, struct ndis_802_11_ssid *pssid,
|
|||
if (i < try_cnt && wait_ms > 0 && ret==_FAIL)
|
||||
rtw_msleep_os(wait_ms);
|
||||
|
||||
}while((i<try_cnt) && ((ret==_FAIL)||(wait_ms==0)));
|
||||
}while ((i<try_cnt) && ((ret==_FAIL)||(wait_ms==0)));
|
||||
|
||||
if (ret != _FAIL) {
|
||||
ret = _SUCCESS;
|
||||
|
@ -7164,7 +7164,7 @@ int issue_nulldata(struct adapter *padapter, unsigned char *da, unsigned int pow
|
|||
if (i < try_cnt && wait_ms > 0 && ret==_FAIL)
|
||||
rtw_msleep_os(wait_ms);
|
||||
|
||||
}while((i<try_cnt) && ((ret==_FAIL)||(wait_ms==0)));
|
||||
}while ((i<try_cnt) && ((ret==_FAIL)||(wait_ms==0)));
|
||||
|
||||
if (ret != _FAIL) {
|
||||
ret = _SUCCESS;
|
||||
|
@ -7299,7 +7299,7 @@ int issue_qos_nulldata(struct adapter *padapter, unsigned char *da, u16 tid, int
|
|||
if (i < try_cnt && wait_ms > 0 && ret==_FAIL)
|
||||
rtw_msleep_os(wait_ms);
|
||||
|
||||
}while((i<try_cnt) && ((ret==_FAIL)||(wait_ms==0)));
|
||||
}while ((i<try_cnt) && ((ret==_FAIL)||(wait_ms==0)));
|
||||
|
||||
if (ret != _FAIL) {
|
||||
ret = _SUCCESS;
|
||||
|
@ -7422,7 +7422,7 @@ int issue_deauth_ex(struct adapter *padapter, u8 *da, unsigned short reason, int
|
|||
if (i < try_cnt && wait_ms > 0 && ret==_FAIL)
|
||||
rtw_msleep_os(wait_ms);
|
||||
|
||||
}while((i<try_cnt) && ((ret==_FAIL)||(wait_ms==0)));
|
||||
}while ((i<try_cnt) && ((ret==_FAIL)||(wait_ms==0)));
|
||||
|
||||
if (ret != _FAIL) {
|
||||
ret = _SUCCESS;
|
||||
|
@ -7834,7 +7834,7 @@ static void issue_action_BSSCoexistPacket(struct adapter *padapter)
|
|||
phead = get_list_head(queue);
|
||||
plist = get_next(phead);
|
||||
|
||||
while(1)
|
||||
while (1)
|
||||
{
|
||||
int len;
|
||||
u8 *p;
|
||||
|
@ -7965,9 +7965,9 @@ unsigned int send_beacon(struct adapter *padapter)
|
|||
rtw_yield_os();
|
||||
rtw_hal_get_hwreg(padapter, HW_VAR_BCN_VALID, (u8 *)(&bxmitok));
|
||||
poll++;
|
||||
}while((poll%10)!=0 && false == bxmitok && !padapter->bSurpriseRemoved && !padapter->bDriverStopped);
|
||||
}while ((poll%10)!=0 && false == bxmitok && !padapter->bSurpriseRemoved && !padapter->bDriverStopped);
|
||||
|
||||
}while(false == bxmitok && issue<100 && !padapter->bSurpriseRemoved && !padapter->bDriverStopped);
|
||||
}while (false == bxmitok && issue<100 && !padapter->bSurpriseRemoved && !padapter->bDriverStopped);
|
||||
|
||||
if (padapter->bSurpriseRemoved || padapter->bDriverStopped)
|
||||
{
|
||||
|
|
|
@ -2520,7 +2520,7 @@ static u8 rtw_p2p_get_peer_ch_list(struct wifidirect_info *pwdinfo, u8 *ch_conte
|
|||
ch_content += 3;
|
||||
ch_cnt -= 3;
|
||||
|
||||
while( ch_cnt > 0)
|
||||
while ( ch_cnt > 0)
|
||||
{
|
||||
ch_content += 1;
|
||||
ch_cnt -= 1;
|
||||
|
@ -3880,7 +3880,7 @@ void process_p2p_ps_ie(struct adapter *padapter, u8 *IEs, u32 IELength)
|
|||
|
||||
p2p_ie = rtw_get_p2p_ie( ies, ies_len, NULL, &p2p_ielen);
|
||||
|
||||
while(p2p_ie)
|
||||
while (p2p_ie)
|
||||
{
|
||||
find_p2p = true;
|
||||
/* Get Notice of Absence IE. */
|
||||
|
@ -3901,7 +3901,7 @@ void process_p2p_ps_ie(struct adapter *padapter, u8 *IEs, u32 IELength)
|
|||
/* NoA length should be n*(13) + 2 */
|
||||
if (attr_contentlen > 2)
|
||||
{
|
||||
while(noa_offset < attr_contentlen)
|
||||
while (noa_offset < attr_contentlen)
|
||||
{
|
||||
/* memcpy(&wifidirect_info->noa_count[noa_num], &noa_attr[noa_offset], 1); */
|
||||
pwdinfo->noa_count[noa_num] = noa_attr[noa_offset];
|
||||
|
|
|
@ -283,7 +283,7 @@ void rtw_free_recvframe_queue(struct __queue *pframequeue, struct __queue *pf
|
|||
phead = get_list_head(pframequeue);
|
||||
plist = get_next(phead);
|
||||
|
||||
while(rtw_end_of_queue_search(phead, plist) == false)
|
||||
while (rtw_end_of_queue_search(phead, plist) == false)
|
||||
{
|
||||
precvframe = LIST_CONTAINOR(plist, union recv_frame, u);
|
||||
|
||||
|
@ -302,7 +302,7 @@ u32 rtw_free_uc_swdec_pending_queue(struct adapter *adapter)
|
|||
{
|
||||
u32 cnt = 0;
|
||||
union recv_frame *pending_frame;
|
||||
while((pending_frame=rtw_alloc_recvframe(&adapter->recvpriv.uc_swdec_pending_queue))) {
|
||||
while ((pending_frame=rtw_alloc_recvframe(&adapter->recvpriv.uc_swdec_pending_queue))) {
|
||||
rtw_free_recvframe(pending_frame, &adapter->recvpriv.free_recv_queue);
|
||||
cnt++;
|
||||
}
|
||||
|
@ -1982,7 +1982,7 @@ static union recv_frame * recvframe_defrag(struct adapter *adapter, struct __qu
|
|||
|
||||
data=get_recvframe_data(prframe);
|
||||
|
||||
while(rtw_end_of_queue_search(phead, plist) == false)
|
||||
while (rtw_end_of_queue_search(phead, plist) == false)
|
||||
{
|
||||
pnextrframe = LIST_CONTAINOR(plist, union recv_frame , u);
|
||||
pnfhdr=&pnextrframe->u.hdr;
|
||||
|
@ -2186,7 +2186,7 @@ static int amsdu_to_msdu(struct adapter *padapter, union recv_frame *prframe)
|
|||
|
||||
pdata = prframe->u.hdr.rx_data;
|
||||
|
||||
while(a_len > ETH_HLEN) {
|
||||
while (a_len > ETH_HLEN) {
|
||||
|
||||
/* Offset 12 denote 2 mac address */
|
||||
#ifdef ENDIAN_FREE
|
||||
|
@ -2407,7 +2407,7 @@ int enqueue_reorder_recvframe(struct recv_reorder_ctrl *preorder_ctrl, union rec
|
|||
phead = get_list_head(ppending_recvframe_queue);
|
||||
plist = get_next(phead);
|
||||
|
||||
while(rtw_end_of_queue_search(phead, plist) == false)
|
||||
while (rtw_end_of_queue_search(phead, plist) == false)
|
||||
{
|
||||
pnextrframe = LIST_CONTAINOR(plist, union recv_frame, u);
|
||||
pnextattrib = &pnextrframe->u.hdr.attrib;
|
||||
|
@ -2475,7 +2475,7 @@ int recv_indicatepkts_in_order(struct adapter *padapter, struct recv_reorder_ctr
|
|||
|
||||
/* Prepare indication list and indication. */
|
||||
/* Check if there is any packet need indicate. */
|
||||
while(!rtw_is_list_empty(phead))
|
||||
while (!rtw_is_list_empty(phead))
|
||||
{
|
||||
|
||||
prframe = LIST_CONTAINOR(plist, union recv_frame, u);
|
||||
|
@ -2837,7 +2837,7 @@ int recv_func(struct adapter *padapter, union recv_frame *rframe)
|
|||
union recv_frame *pending_frame;
|
||||
int cnt = 0;
|
||||
|
||||
while((pending_frame=rtw_alloc_recvframe(&padapter->recvpriv.uc_swdec_pending_queue))) {
|
||||
while ((pending_frame=rtw_alloc_recvframe(&padapter->recvpriv.uc_swdec_pending_queue))) {
|
||||
cnt++;
|
||||
recv_func_posthandle(padapter, pending_frame);
|
||||
}
|
||||
|
|
|
@ -354,7 +354,7 @@ void rtw_secmicappend(struct mic_data *pmicdata, u8 * src, u32 nbytes )
|
|||
{
|
||||
;
|
||||
/* This is simple */
|
||||
while( nbytes > 0 )
|
||||
while ( nbytes > 0 )
|
||||
{
|
||||
rtw_secmicappendbyte(pmicdata, *src++ );
|
||||
nbytes--;
|
||||
|
@ -371,7 +371,7 @@ void rtw_secgetmic(struct mic_data *pmicdata, u8 * dst )
|
|||
rtw_secmicappendbyte(pmicdata, 0 );
|
||||
rtw_secmicappendbyte(pmicdata, 0 );
|
||||
/* and then zeroes until the length is a multiple of 4 */
|
||||
while( pmicdata->nBytesInM != 0 )
|
||||
while ( pmicdata->nBytesInM != 0 )
|
||||
rtw_secmicappendbyte(pmicdata, 0 );
|
||||
/* The appendByte function has already computed the result. */
|
||||
secmicputuint32( dst, pmicdata->L );
|
||||
|
|
|
@ -434,7 +434,7 @@ u32 rtw_free_stainfo(struct adapter *padapter , struct sta_info *psta)
|
|||
phead = get_list_head(ppending_recvframe_queue);
|
||||
plist = get_next(phead);
|
||||
|
||||
while(!rtw_is_list_empty(phead))
|
||||
while (!rtw_is_list_empty(phead))
|
||||
{
|
||||
prframe = LIST_CONTAINOR(plist, union recv_frame, u);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue