Commit f9bd6495 authored by Christos Tzoumakis's avatar Christos Tzoumakis Committed by Greg Kroah-Hartman

Staging: wlan-ng : fixing coding style issues in prism2sta.c

Signed-off-by: default avatarChristos Tzoumakis <ctzocy@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 717f4a5f
...@@ -1246,7 +1246,9 @@ void prism2sta_processing_defer(struct work_struct *data) ...@@ -1246,7 +1246,9 @@ void prism2sta_processing_defer(struct work_struct *data)
netif_carrier_on(wlandev->netdev); netif_carrier_on(wlandev->netdev);
/* If we are joining a specific AP, set our state and reset retries */ /* If we are joining a specific AP, set our
* state and reset retries
*/
if (hw->join_ap == 1) if (hw->join_ap == 1)
hw->join_ap = 2; hw->join_ap = 2;
hw->join_retries = 60; hw->join_retries = 60;
...@@ -1509,14 +1511,15 @@ static void prism2sta_inf_assocstatus(wlandevice_t *wlandev, ...@@ -1509,14 +1511,15 @@ static void prism2sta_inf_assocstatus(wlandevice_t *wlandev,
rec.reason = le16_to_cpu(rec.reason); rec.reason = le16_to_cpu(rec.reason);
/* /*
** Find the address in the list of authenticated stations. If it wasn't ** Find the address in the list of authenticated stations.
** found, then this address has not been previously authenticated and ** If it wasn't found, then this address has not been previously
** something weird has happened if this is anything other than an ** authenticated and something weird has happened if this is
** "authentication failed" message. If the address was found, then ** anything other than an "authentication failed" message.
** set the "associated" flag for that station, based on whether the ** If the address was found, then set the "associated" flag for
** station is associating or losing its association. Something weird ** that station, based on whether the station is associating or
** has also happened if we find the address in the list of authenticated ** losing its association. Something weird has also happened
** stations but we are getting an "authentication failed" message. ** if we find the address in the list of authenticated stations
** but we are getting an "authentication failed" message.
*/ */
for (i = 0; i < hw->authlist.cnt; i++) for (i = 0; i < hw->authlist.cnt; i++)
...@@ -1534,7 +1537,7 @@ static void prism2sta_inf_assocstatus(wlandevice_t *wlandev, ...@@ -1534,7 +1537,7 @@ static void prism2sta_inf_assocstatus(wlandevice_t *wlandev,
if (rec.assocstatus == HFA384x_ASSOCSTATUS_AUTHFAIL) if (rec.assocstatus == HFA384x_ASSOCSTATUS_AUTHFAIL)
printk(KERN_WARNING printk(KERN_WARNING
"authfail assocstatus info frame received for authenticated station.\n"); "authfail assocstatus info frame received for authenticated station.\n");
} }
return; return;
...@@ -1681,12 +1684,12 @@ static void prism2sta_inf_authreq_defer(wlandevice_t *wlandev, ...@@ -1681,12 +1684,12 @@ static void prism2sta_inf_authreq_defer(wlandevice_t *wlandev,
} }
/* /*
** If the authentication is okay, then add the MAC address to the list ** If the authentication is okay, then add the MAC address to the
** of authenticated stations. Don't add the address if it is already in ** list of authenticated stations. Don't add the address if it
** the list. (802.11b does not seem to disallow a station from issuing ** is already in the list. (802.11b does not seem to disallow
** an authentication request when the station is already authenticated. ** a station from issuing an authentication request when the
** Does this sort of thing ever happen? We might as well do the check ** station is already authenticated. Does this sort of thing
** just in case.) ** ever happen? We might as well do the check just in case.)
*/ */
added = 0; added = 0;
...@@ -1995,9 +1998,9 @@ void prism2sta_commsqual_defer(struct work_struct *data) ...@@ -1995,9 +1998,9 @@ void prism2sta_commsqual_defer(struct work_struct *data)
/* It only makes sense to poll these in non-IBSS */ /* It only makes sense to poll these in non-IBSS */
if (wlandev->macmode != WLAN_MACMODE_IBSS_STA) { if (wlandev->macmode != WLAN_MACMODE_IBSS_STA) {
result = hfa384x_drvr_getconfig(hw, HFA384x_RID_DBMCOMMSQUALITY, result = hfa384x_drvr_getconfig(
&hw->qual, hw, HFA384x_RID_DBMCOMMSQUALITY,
HFA384x_RID_DBMCOMMSQUALITY_LEN); &hw->qual, HFA384x_RID_DBMCOMMSQUALITY_LEN);
if (result) { if (result) {
printk(KERN_ERR "error fetching commsqual\n"); printk(KERN_ERR "error fetching commsqual\n");
......
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