Skip to content

Commit

Permalink
libertas: use kernel-doc notation, fix comment style
Browse files Browse the repository at this point in the history
Convert all libertas/ files to use kernel-doc notation instead
of whatever it was (doxygen?).

Add or fix function parameters in several places.

Use expected style for multi-line comments in lots of places.

Remove erroneous /** in multiple places.

Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
Acked-by: Dan Williams <dcbw@redhat.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
  • Loading branch information
Randy Dunlap authored and John W. Linville committed Apr 28, 2011
1 parent 4768480 commit 8973a6e
Show file tree
Hide file tree
Showing 20 changed files with 730 additions and 557 deletions.
45 changes: 27 additions & 18 deletions drivers/net/wireless/libertas/cfg.c
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,10 @@ static u8 lbs_auth_to_authtype(enum nl80211_auth_type auth_type)
}


/* Various firmware commands need the list of supported rates, but with
the hight-bit set for basic rates */
/*
* Various firmware commands need the list of supported rates, but with
* the hight-bit set for basic rates
*/
static int lbs_add_rates(u8 *rates)
{
size_t i;
Expand Down Expand Up @@ -425,7 +427,7 @@ static int lbs_add_wpa_tlv(u8 *tlv, const u8 *ie, u8 ie_len)
return ie_len + 2;
}

/***************************************************************************
/*
* Set Channel
*/

Expand All @@ -452,7 +454,7 @@ static int lbs_cfg_set_channel(struct wiphy *wiphy,



/***************************************************************************
/*
* Scanning
*/

Expand Down Expand Up @@ -538,8 +540,10 @@ static int lbs_ret_scan(struct lbs_private *priv, unsigned long dummy,
goto done;
}

/* Validity check: the TLV holds TSF values with 8 bytes each, so
* the size in the TLV must match the nr_sets value */
/*
* Validity check: the TLV holds TSF values with 8 bytes each, so
* the size in the TLV must match the nr_sets value
*/
i = get_unaligned_le16(tsfdesc);
tsfdesc += 2;
if (i / 8 != scanresp->nr_sets) {
Expand Down Expand Up @@ -581,8 +585,10 @@ static int lbs_ret_scan(struct lbs_private *priv, unsigned long dummy,

/* To find out the channel, we must parse the IEs */
ie = pos;
/* 6+1+8+2+2: size of BSSID, RSSI, time stamp, beacon
interval, capabilities */
/*
* 6+1+8+2+2: size of BSSID, RSSI, time stamp, beacon
* interval, capabilities
*/
ielen = left = len - (6 + 1 + 8 + 2 + 2);
while (left >= 2) {
u8 id, elen;
Expand Down Expand Up @@ -790,7 +796,7 @@ static int lbs_cfg_scan(struct wiphy *wiphy,



/***************************************************************************
/*
* Events
*/

Expand Down Expand Up @@ -825,7 +831,7 @@ void lbs_send_mic_failureevent(struct lbs_private *priv, u32 event)



/***************************************************************************
/*
* Connect/disconnect
*/

Expand Down Expand Up @@ -950,8 +956,10 @@ static int lbs_enable_rsn(struct lbs_private *priv, int enable)
* Set WPA/WPA key material
*/

/* like "struct cmd_ds_802_11_key_material", but with cmd_header. Once we
* get rid of WEXT, this should go into host.h */
/*
* like "struct cmd_ds_802_11_key_material", but with cmd_header. Once we
* get rid of WEXT, this should go into host.h
*/

struct cmd_key_material {
struct cmd_header hdr;
Expand Down Expand Up @@ -1536,7 +1544,7 @@ static int lbs_cfg_del_key(struct wiphy *wiphy, struct net_device *netdev,
}


/***************************************************************************
/*
* Get station
*/

Expand Down Expand Up @@ -1581,7 +1589,7 @@ static int lbs_cfg_get_station(struct wiphy *wiphy, struct net_device *dev,



/***************************************************************************
/*
* "Site survey", here just current channel and noise level
*/

Expand Down Expand Up @@ -1614,7 +1622,7 @@ static int lbs_get_survey(struct wiphy *wiphy, struct net_device *dev,



/***************************************************************************
/*
* Change interface
*/

Expand Down Expand Up @@ -1656,11 +1664,12 @@ static int lbs_change_intf(struct wiphy *wiphy, struct net_device *dev,



/***************************************************************************
/*
* IBSS (Ad-Hoc)
*/

/* The firmware needs the following bits masked out of the beacon-derived
/*
* The firmware needs the following bits masked out of the beacon-derived
* capability field when associating/joining to a BSS:
* 9 (QoS), 11 (APSD), 12 (unused), 14 (unused), 15 (unused)
*/
Expand Down Expand Up @@ -1999,7 +2008,7 @@ static int lbs_leave_ibss(struct wiphy *wiphy, struct net_device *dev)



/***************************************************************************
/*
* Initialization
*/

Expand Down
Loading

0 comments on commit 8973a6e

Please sign in to comment.