mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-06 16:49:22 +00:00
staging: rtl8172: fixed comment style in rts871x_cmd.c
Fixed comment style warning by checkpatch: * Block comments use * on subsequent lines * Block comments use a trailing */ on a separate line Signed-off-by: Louie Lu <louie.lu@hopebaytech.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
8f8064e4cc
commit
8292b4de4e
1 changed files with 25 additions and 21 deletions
|
@ -51,9 +51,9 @@
|
||||||
#include "mlme_osdep.h"
|
#include "mlme_osdep.h"
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Caller and the r8712_cmd_thread can protect cmd_q by spin_lock.
|
* Caller and the r8712_cmd_thread can protect cmd_q by spin_lock.
|
||||||
No irqsave is necessary.
|
* No irqsave is necessary.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
static sint _init_cmd_priv(struct cmd_priv *pcmdpriv)
|
static sint _init_cmd_priv(struct cmd_priv *pcmdpriv)
|
||||||
{
|
{
|
||||||
|
@ -110,14 +110,14 @@ static void _free_cmd_priv(struct cmd_priv *pcmdpriv)
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Calling Context:
|
* Calling Context:
|
||||||
|
*
|
||||||
_enqueue_cmd can only be called between kernel thread,
|
* _enqueue_cmd can only be called between kernel thread,
|
||||||
since only spin_lock is used.
|
* since only spin_lock is used.
|
||||||
|
*
|
||||||
ISR/Call-Back functions can't call this sub-function.
|
* ISR/Call-Back functions can't call this sub-function.
|
||||||
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
static sint _enqueue_cmd(struct __queue *queue, struct cmd_obj *obj)
|
static sint _enqueue_cmd(struct __queue *queue, struct cmd_obj *obj)
|
||||||
{
|
{
|
||||||
|
@ -211,11 +211,11 @@ void r8712_free_cmd_obj(struct cmd_obj *pcmd)
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
r8712_sitesurvey_cmd(~)
|
* r8712_sitesurvey_cmd(~)
|
||||||
### NOTE:#### (!!!!)
|
* ### NOTE:#### (!!!!)
|
||||||
MUST TAKE CARE THAT BEFORE CALLING THIS FUNC,
|
* MUST TAKE CARE THAT BEFORE CALLING THIS FUNC,
|
||||||
YOU SHOULD HAVE LOCKED pmlmepriv->lock
|
* YOU SHOULD HAVE LOCKED pmlmepriv->lock
|
||||||
*/
|
*/
|
||||||
u8 r8712_sitesurvey_cmd(struct _adapter *padapter,
|
u8 r8712_sitesurvey_cmd(struct _adapter *padapter,
|
||||||
struct ndis_802_11_ssid *pssid)
|
struct ndis_802_11_ssid *pssid)
|
||||||
{
|
{
|
||||||
|
@ -491,8 +491,9 @@ u8 r8712_joinbss_cmd(struct _adapter *padapter, struct wlan_network *pnetwork)
|
||||||
memcpy(&psecuritypriv->authenticator_ie[1],
|
memcpy(&psecuritypriv->authenticator_ie[1],
|
||||||
&psecnetwork->IEs[12], (256 - 1));
|
&psecnetwork->IEs[12], (256 - 1));
|
||||||
psecnetwork->IELength = 0;
|
psecnetwork->IELength = 0;
|
||||||
/* If the driver wants to use the bssid to create the connection.
|
/*
|
||||||
* If not, we copy the connecting AP's MAC address to it so that
|
* If the driver wants to use the bssid to create the connection.
|
||||||
|
* If not, we copy the connecting AP's MAC address to it so that
|
||||||
* the driver just has the bssid information for PMKIDList searching.
|
* the driver just has the bssid information for PMKIDList searching.
|
||||||
*/
|
*/
|
||||||
if (!pmlmepriv->assoc_by_bssid)
|
if (!pmlmepriv->assoc_by_bssid)
|
||||||
|
@ -519,7 +520,8 @@ u8 r8712_joinbss_cmd(struct _adapter *padapter, struct wlan_network *pnetwork)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (pregistrypriv->ht_enable) {
|
if (pregistrypriv->ht_enable) {
|
||||||
/* For WEP mode, we will use the bg mode to do the connection
|
/*
|
||||||
|
* For WEP mode, we will use the bg mode to do the connection
|
||||||
* to avoid some IOT issues, especially for Realtek 8192u
|
* to avoid some IOT issues, especially for Realtek 8192u
|
||||||
* SoftAP.
|
* SoftAP.
|
||||||
*/
|
*/
|
||||||
|
@ -904,8 +906,10 @@ void r8712_createbss_cmd_callback(struct _adapter *padapter,
|
||||||
(r8712_get_wlan_bssid_ex_sz(pnetwork)));
|
(r8712_get_wlan_bssid_ex_sz(pnetwork)));
|
||||||
if (pmlmepriv->fw_state & _FW_UNDER_LINKING)
|
if (pmlmepriv->fw_state & _FW_UNDER_LINKING)
|
||||||
pmlmepriv->fw_state ^= _FW_UNDER_LINKING;
|
pmlmepriv->fw_state ^= _FW_UNDER_LINKING;
|
||||||
/* we will set _FW_LINKED when there is one more sat to
|
/*
|
||||||
* join us (stassoc_event_callback) */
|
* we will set _FW_LINKED when there is one more sat to
|
||||||
|
* join us (stassoc_event_callback)
|
||||||
|
*/
|
||||||
}
|
}
|
||||||
createbss_cmd_fail:
|
createbss_cmd_fail:
|
||||||
spin_unlock_irqrestore(&pmlmepriv->lock, irqL);
|
spin_unlock_irqrestore(&pmlmepriv->lock, irqL);
|
||||||
|
|
Loading…
Reference in a new issue