lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1470496429-2690-1-git-send-email-claudiu.beznea@gmail.com>
Date:	Sat,  6 Aug 2016 18:13:49 +0300
From:	Claudiu Beznea <claudiu.beznea@...il.com>
To:	gregkh@...uxfoundation.org
Cc:	linux-kernel@...r.kernel.org,
	Claudiu Beznea <claudiu.beznea@...il.com>
Subject: [PATCH] Staging: wlan-ng: fixed "block comments" warnings

This patch fix "block comments use *" warning returned
by checkpatch.pl script.

Signed-off-by: Claudiu Beznea <claudiu.beznea@...il.com>
---
 drivers/staging/wlan-ng/hfa384x.h      | 234 +++++++++++++++++++--------------
 drivers/staging/wlan-ng/hfa384x_usb.c  | 172 ++++++++++++++++--------
 drivers/staging/wlan-ng/p80211netdev.c |  45 ++++---
 drivers/staging/wlan-ng/p80211req.c    |   6 +-
 drivers/staging/wlan-ng/prism2fw.c     |  33 +++--
 drivers/staging/wlan-ng/prism2mgmt.c   |  30 +++--
 drivers/staging/wlan-ng/prism2mgmt.h   |   4 +-
 drivers/staging/wlan-ng/prism2mib.c    |  48 +++----
 8 files changed, 353 insertions(+), 219 deletions(-)

diff --git a/drivers/staging/wlan-ng/hfa384x.h b/drivers/staging/wlan-ng/hfa384x.h
index cec6d0b..6a3e1ef 100644
--- a/drivers/staging/wlan-ng/hfa384x.h
+++ b/drivers/staging/wlan-ng/hfa384x.h
@@ -110,7 +110,8 @@
 #define		HFA384x_ADDR_FLAT_CMD_OFF_MASK	(0x0000ffff)
 
 /* Mask bits for discarding unwanted pieces in AUX format
-   16-bit address parts */
+ * 16-bit address parts
+ */
 #define		HFA384x_ADDR_AUX_PAGE_MASK	(0xffff)
 #define		HFA384x_ADDR_AUX_OFF_MASK	(0x007f)
 
@@ -172,21 +173,23 @@
 /*--- Result Codes --------------------------*/
 #define		HFA384x_CMD_ERR			((u16)(0x7F))
 
-/*--- Programming Modes --------------------------
-	MODE 0: Disable programming
-	MODE 1: Enable volatile memory programming
-	MODE 2: Enable non-volatile memory programming
-	MODE 3: Program non-volatile memory section
---------------------------------------------------*/
+/* --- Programming Modes --------------------------
+ *	MODE 0: Disable programming
+ *	MODE 1: Enable volatile memory programming
+ *	MODE 2: Enable non-volatile memory programming
+ *	MODE 3: Program non-volatile memory section
+ * --------------------------------------------------
+ */
 #define		HFA384x_PROGMODE_DISABLE	((u16)0x00)
 #define		HFA384x_PROGMODE_RAM		((u16)0x01)
 #define		HFA384x_PROGMODE_NV		((u16)0x02)
 #define		HFA384x_PROGMODE_NVWRITE	((u16)0x03)
 
 /*--- Record ID Constants --------------------------*/
-/*--------------------------------------------------------------------
-Configuration RIDs: Network Parameters, Static Configuration Entities
---------------------------------------------------------------------*/
+/* ----------------------------------------------------------------------------
+ * Configuration RIDs: Network Parameters, Static Configuration Entities
+ * ----------------------------------------------------------------------------
+ */
 #define		HFA384x_RID_CNFPORTTYPE		((u16)0xFC00)
 #define		HFA384x_RID_CNFOWNMACADDR	((u16)0xFC01)
 #define		HFA384x_RID_CNFDESIREDSSID	((u16)0xFC02)
@@ -194,27 +197,30 @@ Configuration RIDs: Network Parameters, Static Configuration Entities
 #define		HFA384x_RID_CNFOWNSSID		((u16)0xFC04)
 #define		HFA384x_RID_CNFMAXDATALEN	((u16)0xFC07)
 
-/*--------------------------------------------------------------------
-Configuration RID lengths: Network Params, Static Config Entities
-  This is the length of JUST the DATA part of the RID (does not
-  include the len or code fields)
---------------------------------------------------------------------*/
+/* ----------------------------------------------------------------------------
+ * Configuration RID lengths: Network Params, Static Config Entities
+ *  This is the length of JUST the DATA part of the RID (does not
+ *  include the len or code fields)
+ * ----------------------------------------------------------------------------
+ */
 #define		HFA384x_RID_CNFOWNMACADDR_LEN	((u16)6)
 #define		HFA384x_RID_CNFDESIREDSSID_LEN	((u16)34)
 #define		HFA384x_RID_CNFOWNSSID_LEN	((u16)34)
 
-/*--------------------------------------------------------------------
-Configuration RIDs: Network Parameters, Dynamic Configuration Entities
---------------------------------------------------------------------*/
+/* ----------------------------------------------------------------------------
+ * Configuration RIDs: Network Parameters, Dynamic Configuration Entities
+ * ----------------------------------------------------------------------------
+ */
 #define		HFA384x_RID_CREATEIBSS		((u16)0xFC81)
 #define		HFA384x_RID_FRAGTHRESH		((u16)0xFC82)
 #define		HFA384x_RID_RTSTHRESH		((u16)0xFC83)
 #define		HFA384x_RID_TXRATECNTL		((u16)0xFC84)
 #define		HFA384x_RID_PROMISCMODE		((u16)0xFC85)
 
-/*----------------------------------------------------------------------
-Information RIDs: NIC Information
---------------------------------------------------------------------*/
+/* ----------------------------------------------------------------------------
+ * Information RIDs: NIC Information
+ * ----------------------------------------------------------------------------
+ */
 #define		HFA384x_RID_MAXLOADTIME		((u16)0xFD00)
 #define		HFA384x_RID_DOWNLOADBUFFER	((u16)0xFD01)
 #define		HFA384x_RID_PRIIDENTITY		((u16)0xFD02)
@@ -229,16 +235,18 @@ Information RIDs: NIC Information
 #define		HFA384x_RID_STA_MFIACTRANGES	((u16)0xFD22)
 #define		HFA384x_RID_STA_CFIACTRANGES	((u16)0xFD23)
 
-/*----------------------------------------------------------------------
-Information RID Lengths: NIC Information
-  This is the length of JUST the DATA part of the RID (does not
-  include the len or code fields)
---------------------------------------------------------------------*/
+/* ----------------------------------------------------------------------------
+ * Information RID Lengths: NIC Information
+ *  This is the length of JUST the DATA part of the RID (does not
+ *  include the len or code fields)
+ * ----------------------------------------------------------------------------
+ */
 #define		HFA384x_RID_NICSERIALNUMBER_LEN		((u16)12)
 
-/*--------------------------------------------------------------------
-Information RIDs:  MAC Information
---------------------------------------------------------------------*/
+/* ----------------------------------------------------------------------------
+ * Information RIDs:  MAC Information
+ * ----------------------------------------------------------------------------
+ */
 #define		HFA384x_RID_PORTSTATUS		((u16)0xFD40)
 #define		HFA384x_RID_CURRENTSSID		((u16)0xFD41)
 #define		HFA384x_RID_CURRENTBSSID	((u16)0xFD42)
@@ -249,24 +257,27 @@ Information RIDs:  MAC Information
 #define		HFA384x_RID_PRIVACYOPTIMP	((u16)0xFD4F)
 #define		HFA384x_RID_DBMCOMMSQUALITY	((u16)0xFD51)
 
-/*--------------------------------------------------------------------
-Information RID Lengths:  MAC Information
-  This is the length of JUST the DATA part of the RID (does not
-  include the len or code fields)
---------------------------------------------------------------------*/
+/* ----------------------------------------------------------------------------
+ * Information RID Lengths:  MAC Information
+ *  This is the length of JUST the DATA part of the RID (does not
+ *  include the len or code fields)
+ * ----------------------------------------------------------------------------
+ */
 #define		HFA384x_RID_DBMCOMMSQUALITY_LEN	 \
 	((u16) sizeof(hfa384x_dbmcommsquality_t))
 #define		HFA384x_RID_JOINREQUEST_LEN \
 	((u16)sizeof(hfa384x_JoinRequest_data_t))
 
-/*--------------------------------------------------------------------
-Information RIDs:  Modem Information
---------------------------------------------------------------------*/
+/* ----------------------------------------------------------------------------
+ * Information RIDs:  Modem Information
+ * ----------------------------------------------------------------------------
+ */
 #define		HFA384x_RID_CURRENTCHANNEL	((u16)0xFDC1)
 
-/*--------------------------------------------------------------------
-API ENHANCEMENTS (NOT ALREADY IMPLEMENTED)
---------------------------------------------------------------------*/
+/* ----------------------------------------------------------------------------
+ * API ENHANCEMENTS (NOT ALREADY IMPLEMENTED)
+ * ----------------------------------------------------------------------------
+ */
 #define		HFA384x_RID_CNFWEPDEFAULTKEYID	((u16)0xFC23)
 #define		HFA384x_RID_CNFWEPDEFAULTKEY0	((u16)0xFC24)
 #define		HFA384x_RID_CNFWEPDEFAULTKEY1	((u16)0xFC25)
@@ -289,9 +300,10 @@ API ENHANCEMENTS (NOT ALREADY IMPLEMENTED)
 #define		HFA384x_RID_CNFWEPDEFAULTKEY_LEN	((u16)6)
 #define		HFA384x_RID_CNFWEP128DEFAULTKEY_LEN	((u16)14)
 
-/*--------------------------------------------------------------------
-PD Record codes
---------------------------------------------------------------------*/
+/* ----------------------------------------------------------------------------
+ * PD Record codes
+ * ----------------------------------------------------------------------------
+ */
 #define HFA384x_PDR_PCB_PARTNUM		((u16)0x0001)
 #define HFA384x_PDR_PDAVER		((u16)0x0002)
 #define HFA384x_PDR_NIC_SERIAL		((u16)0x0003)
@@ -360,10 +372,11 @@ typedef struct hfa384x_bytestr32 {
 	u8 data[32];
 } __packed hfa384x_bytestr32_t;
 
-/*--------------------------------------------------------------------
-Configuration Record Structures:
-	Network Parameters, Static Configuration Entities
---------------------------------------------------------------------*/
+/* ----------------------------------------------------------------------------
+ * Configuration Record Structures:
+ *	Network Parameters, Static Configuration Entities
+ * ----------------------------------------------------------------------------
+ */
 
 /*-- Hardware/Firmware Component Information ----------*/
 typedef struct hfa384x_compident {
@@ -386,10 +399,11 @@ typedef struct hfa384x_caplevel {
 #define HFA384x_CNFAUTHENTICATION_SHAREDKEY	0x0002
 #define HFA384x_CNFAUTHENTICATION_LEAP		0x0004
 
-/*--------------------------------------------------------------------
-Configuration Record Structures:
-	Network Parameters, Dynamic Configuration Entities
---------------------------------------------------------------------*/
+/* ----------------------------------------------------------------------------
+ * Configuration Record Structures:
+ * Network Parameters, Dynamic Configuration Entities
+ * ----------------------------------------------------------------------------
+ */
 
 #define HFA384x_CREATEIBSS_JOINCREATEIBSS          0
 
@@ -419,9 +433,10 @@ typedef struct hfa384x_WPAData {
 	u8 data[0];		/* max 80 */
 } __packed hfa384x_WPAData_t;
 
-/*--------------------------------------------------------------------
-Information Record Structures: NIC Information
---------------------------------------------------------------------*/
+/* ----------------------------------------------------------------------------
+ * Information Record Structures: NIC Information
+ * ----------------------------------------------------------------------------
+ */
 
 /*-- Information Record: DownLoadBuffer --*/
 /* NOTE: The page and offset are in AUX format */
@@ -431,9 +446,10 @@ typedef struct hfa384x_downloadbuffer {
 	u16 len;
 } __packed hfa384x_downloadbuffer_t;
 
-/*--------------------------------------------------------------------
-Information Record Structures: NIC Information
---------------------------------------------------------------------*/
+/* ----------------------------------------------------------------------------
+ * Information Record Structures: NIC Information
+ * ----------------------------------------------------------------------------
+ */
 
 #define HFA384x_PSTATUS_CONN_IBSS	((u16)3)
 
@@ -451,11 +467,13 @@ typedef struct hfa384x_dbmcommsquality {
 	u16 ANLdbm_currFC;
 } __packed hfa384x_dbmcommsquality_t;
 
-/*--------------------------------------------------------------------
-FRAME STRUCTURES: Communication Frames
-----------------------------------------------------------------------
-Communication Frames: Transmit Frames
---------------------------------------------------------------------*/
+/* ----------------------------------------------------------------------------
+ * FRAME STRUCTURES: Communication Frames
+ * ----------------------------------------------------------------------------
+ * Communication Frames: Transmit Frames
+ * ----------------------------------------------------------------------------
+ */
+
 /*-- Communication Frame: Transmit Frame Structure --*/
 typedef struct hfa384x_tx_frame {
 	u16 status;
@@ -483,9 +501,12 @@ typedef struct hfa384x_tx_frame {
 	u8 src_addr[6];
 	u16 data_length;	/* big endian format */
 } __packed hfa384x_tx_frame_t;
-/*--------------------------------------------------------------------
-Communication Frames: Field Masks for Transmit Frames
---------------------------------------------------------------------*/
+
+/* ----------------------------------------------------------------------------
+ * Communication Frames: Field Masks for Transmit Frames
+ * ----------------------------------------------------------------------------
+ */
+
 /*-- Status Field --*/
 #define		HFA384x_TXSTATUS_ACKERR			((u16)BIT(5))
 #define		HFA384x_TXSTATUS_FORMERR		((u16)BIT(3))
@@ -498,9 +519,12 @@ Communication Frames: Field Masks for Transmit Frames
 #define		HFA384x_TX_STRUCTYPE			((u16)(BIT(4) | BIT(3)))
 #define		HFA384x_TX_TXEX				((u16)BIT(2))
 #define		HFA384x_TX_TXOK				((u16)BIT(1))
-/*--------------------------------------------------------------------
-Communication Frames: Test/Get/Set Field Values for Transmit Frames
---------------------------------------------------------------------*/
+
+/* ----------------------------------------------------------------------------
+ * Communication Frames: Test/Get/Set Field Values for Transmit Frames
+ * ----------------------------------------------------------------------------
+ */
+
 /*-- Status Field --*/
 #define HFA384x_TXSTATUS_ISERROR(v)	\
 	(((u16)(v))&\
@@ -515,9 +539,12 @@ Communication Frames: Test/Get/Set Field Values for Transmit Frames
 						HFA384x_TX_STRUCTYPE, 3)
 #define	HFA384x_TX_TXEX_SET(v)		HFA384x_TX_SET(v, HFA384x_TX_TXEX, 2)
 #define	HFA384x_TX_TXOK_SET(v)		HFA384x_TX_SET(v, HFA384x_TX_TXOK, 1)
-/*--------------------------------------------------------------------
-Communication Frames: Receive Frames
---------------------------------------------------------------------*/
+
+/* ----------------------------------------------------------------------------
+ * Communication Frames: Receive Frames
+ * ----------------------------------------------------------------------------
+ */
+
 /*-- Communication Frame: Receive Frame Structure --*/
 typedef struct hfa384x_rx_frame {
 	/*-- MAC rx descriptor (hfa384x byte order) --*/
@@ -545,27 +572,33 @@ typedef struct hfa384x_rx_frame {
 	u8 src_addr[6];
 	u16 data_length;	/* IEEE? (big endian) format */
 } __packed hfa384x_rx_frame_t;
-/*--------------------------------------------------------------------
-Communication Frames: Field Masks for Receive Frames
---------------------------------------------------------------------*/
+
+/* ----------------------------------------------------------------------------
+ * Communication Frames: Field Masks for Receive Frames
+ * ----------------------------------------------------------------------------
+ */
 
 /*-- Status Fields --*/
 #define		HFA384x_RXSTATUS_MACPORT		((u16)(BIT(10) | \
 								BIT(9) | \
 								BIT(8)))
 #define		HFA384x_RXSTATUS_FCSERR			((u16)BIT(0))
-/*--------------------------------------------------------------------
-Communication Frames: Test/Get/Set Field Values for Receive Frames
---------------------------------------------------------------------*/
+
+/* ----------------------------------------------------------------------------
+ * Communication Frames: Test/Get/Set Field Values for Receive Frames
+ * ----------------------------------------------------------------------------
+ */
 #define		HFA384x_RXSTATUS_MACPORT_GET(value)	((u16)((((u16)(value)) \
 					    & HFA384x_RXSTATUS_MACPORT) >> 8))
 #define		HFA384x_RXSTATUS_ISFCSERR(value)	((u16)(((u16)(value)) \
 						  & HFA384x_RXSTATUS_FCSERR))
-/*--------------------------------------------------------------------
- FRAME STRUCTURES: Information Types and Information Frame Structures
-----------------------------------------------------------------------
-Information Types
---------------------------------------------------------------------*/
+
+/* ----------------------------------------------------------------------------
+ * FRAME STRUCTURES: Information Types and Information Frame Structures
+ * ----------------------------------------------------------------------------
+ * Information Types
+ * ----------------------------------------------------------------------------
+ */
 #define		HFA384x_IT_HANDOVERADDR			((u16)0xF000UL)
 #define		HFA384x_IT_COMMTALLIES			((u16)0xF100UL)
 #define		HFA384x_IT_SCANRESULTS			((u16)0xF101UL)
@@ -579,11 +612,12 @@ Information Types
 #define		HFA384x_IT_ASSOCREQ			((u16)0xF205UL)
 #define		HFA384x_IT_MICFAILURE			((u16)0xF206UL)
 
-/*--------------------------------------------------------------------
-Information Frames Structures
-----------------------------------------------------------------------
-Information Frames: Notification Frame Structures
---------------------------------------------------------------------*/
+/* ----------------------------------------------------------------------------
+ * Information Frames Structures
+ * ----------------------------------------------------------------------------
+ * Information Frames: Notification Frame Structures
+ * ----------------------------------------------------------------------------
+ */
 
 /*--  Inquiry Frame, Diagnose: Communication Tallies --*/
 typedef struct hfa384x_CommTallies16 {
@@ -756,9 +790,10 @@ typedef struct hfa384x_InfFrame {
 	hfa384x_infodata_t info;
 } __packed hfa384x_InfFrame_t;
 
-/*--------------------------------------------------------------------
-USB Packet structures and constants.
---------------------------------------------------------------------*/
+/* ----------------------------------------------------------------------------
+ * USB Packet structures and constants.
+ * ----------------------------------------------------------------------------
+ */
 
 /* Should be sent to the bulkout endpoint */
 #define HFA384x_USB_TXFRM	0
@@ -903,9 +938,10 @@ typedef union hfa384x_usbin {
 	u8 boguspad[3000];
 } __packed hfa384x_usbin_t;
 
-/*--------------------------------------------------------------------
-PD record structures.
---------------------------------------------------------------------*/
+/* ----------------------------------------------------------------------------
+ * PD record structures.
+ * ----------------------------------------------------------------------------
+ */
 
 typedef struct hfa384x_pdr_pcb_partnum {
 	u8 num[8];
@@ -1111,10 +1147,11 @@ typedef struct hfa384x_pdrec {
 } __packed hfa384x_pdrec_t;
 
 #ifdef __KERNEL__
-/*--------------------------------------------------------------------
----  MAC state structure, argument to all functions --
----  Also, a collection of support types --
---------------------------------------------------------------------*/
+/* ----------------------------------------------------------------------------
+ * ---  MAC state structure, argument to all functions --
+ * ---  Also, a collection of support types --
+ * ----------------------------------------------------------------------------
+ */
 typedef struct hfa384x_statusresult {
 	u16 status;
 	u16 resp0;
@@ -1297,7 +1334,8 @@ typedef struct hfa384x {
 	int dbmadjust;
 
 	/* Group Addresses - right now, there are up to a total
-	   of MAX_GRP_ADDR group addresses */
+	 * of MAX_GRP_ADDR group addresses
+	 */
 	u8 dot11_grp_addr[MAX_GRP_ADDR][ETH_ALEN];
 	unsigned int dot11_grpcnt;
 
diff --git a/drivers/staging/wlan-ng/hfa384x_usb.c b/drivers/staging/wlan-ng/hfa384x_usb.c
index 3378107..dbe4dd4 100644
--- a/drivers/staging/wlan-ng/hfa384x_usb.c
+++ b/drivers/staging/wlan-ng/hfa384x_usb.c
@@ -321,7 +321,8 @@ void dbprint_urb(struct urb *urb)
 *
 * Call context:
 *	Any
-----------------------------------------------------------------*/
+* ----------------------------------------------------------------
+*/
 static int submit_rx_urb(hfa384x_t *hw, gfp_t memflags)
 {
 	struct sk_buff *skb;
@@ -383,7 +384,8 @@ done:
 *
 * Call context:
 *	Any
-----------------------------------------------------------------*/
+* ----------------------------------------------------------------
+*/
 static int submit_tx_urb(hfa384x_t *hw, struct urb *tx_urb, gfp_t memflags)
 {
 	struct net_device *netdev = hw->wlandev->netdev;
@@ -426,7 +428,8 @@ static int submit_tx_urb(hfa384x_t *hw, struct urb *tx_urb, gfp_t memflags)
 *
 * Call context:
 *	process (by design)
-----------------------------------------------------------------*/
+* ----------------------------------------------------------------
+*/
 static void hfa384x_usb_defer(struct work_struct *data)
 {
 	hfa384x_t *hw = container_of(data, struct hfa384x, usb_work);
@@ -520,7 +523,8 @@ static void hfa384x_usb_defer(struct work_struct *data)
 *
 * Call context:
 *	process
-----------------------------------------------------------------*/
+* ----------------------------------------------------------------
+*/
 void hfa384x_create(hfa384x_t *hw, struct usb_device *usb)
 {
 	memset(hw, 0, sizeof(hfa384x_t));
@@ -591,7 +595,8 @@ void hfa384x_create(hfa384x_t *hw, struct usb_device *usb)
 *
 * Call context:
 *	process
-----------------------------------------------------------------*/
+* ----------------------------------------------------------------
+*/
 void hfa384x_destroy(hfa384x_t *hw)
 {
 	struct sk_buff *skb;
@@ -648,7 +653,8 @@ usbctlx_get_rridresult(const hfa384x_usb_rridresp_t *rridresp,
 * Completor object:
 * This completor must be passed to hfa384x_usbctlx_complete_sync()
 * when processing a CTLX that returns a hfa384x_cmdresult_t structure.
-----------------------------------------------------------------*/
+* ----------------------------------------------------------------
+*/
 struct usbctlx_cmd_completor {
 	struct usbctlx_completor head;
 
@@ -681,7 +687,8 @@ static inline struct usbctlx_completor *init_cmd_completor(
 * Completor object:
 * This completor must be passed to hfa384x_usbctlx_complete_sync()
 * when processing a CTLX that reads a RID.
-----------------------------------------------------------------*/
+* ----------------------------------------------------------------
+*/
 struct usbctlx_rrid_completor {
 	struct usbctlx_completor head;
 
@@ -728,19 +735,22 @@ static inline struct usbctlx_completor *init_rrid_completor(
 /*----------------------------------------------------------------
 * Completor object:
 * Interprets the results of a synchronous RID-write
-----------------------------------------------------------------*/
+* ----------------------------------------------------------------
+*/
 #define init_wrid_completor  init_cmd_completor
 
 /*----------------------------------------------------------------
 * Completor object:
 * Interprets the results of a synchronous memory-write
-----------------------------------------------------------------*/
+* ----------------------------------------------------------------
+*/
 #define init_wmem_completor  init_cmd_completor
 
 /*----------------------------------------------------------------
 * Completor object:
 * Interprets the results of a synchronous memory-read
-----------------------------------------------------------------*/
+* ----------------------------------------------------------------
+*/
 struct usbctlx_rmem_completor {
 	struct usbctlx_completor head;
 
@@ -794,7 +804,8 @@ static inline struct usbctlx_completor *init_rmem_completor(
 *
 * Call context:
 *	interrupt
-----------------------------------------------------------------*/
+* ----------------------------------------------------------------
+*/
 static void hfa384x_cb_status(hfa384x_t *hw, const hfa384x_usbctlx_t *ctlx)
 {
 	if (ctlx->usercb) {
@@ -922,7 +933,8 @@ hfa384x_dowmem_async(hfa384x_t *hw,
 *
 * Call context:
 *	process
-----------------------------------------------------------------*/
+* ----------------------------------------------------------------
+*/
 int hfa384x_cmd_initialize(hfa384x_t *hw)
 {
 	int result = 0;
@@ -968,7 +980,8 @@ int hfa384x_cmd_initialize(hfa384x_t *hw)
 *
 * Call context:
 *	process
-----------------------------------------------------------------*/
+* ----------------------------------------------------------------
+*/
 int hfa384x_cmd_disable(hfa384x_t *hw, u16 macport)
 {
 	hfa384x_metacmd_t cmd;
@@ -1001,7 +1014,8 @@ int hfa384x_cmd_disable(hfa384x_t *hw, u16 macport)
 *
 * Call context:
 *	process
-----------------------------------------------------------------*/
+* ----------------------------------------------------------------
+*/
 int hfa384x_cmd_enable(hfa384x_t *hw, u16 macport)
 {
 	hfa384x_metacmd_t cmd;
@@ -1043,7 +1057,8 @@ int hfa384x_cmd_enable(hfa384x_t *hw, u16 macport)
 *
 * Call context:
 *	process
-----------------------------------------------------------------*/
+* ----------------------------------------------------------------
+*/
 int hfa384x_cmd_monitor(hfa384x_t *hw, u16 enable)
 {
 	hfa384x_metacmd_t cmd;
@@ -1094,7 +1109,8 @@ int hfa384x_cmd_monitor(hfa384x_t *hw, u16 enable)
 *
 * Call context:
 *	process
-----------------------------------------------------------------*/
+* ----------------------------------------------------------------
+*/
 int hfa384x_cmd_download(hfa384x_t *hw, u16 mode, u16 lowaddr,
 			 u16 highaddr, u16 codelen)
 {
@@ -1135,7 +1151,8 @@ int hfa384x_cmd_download(hfa384x_t *hw, u16 mode, u16 lowaddr,
 *
 * Call context:
 *	process
-----------------------------------------------------------------*/
+* ----------------------------------------------------------------
+*/
 int hfa384x_corereset(hfa384x_t *hw, int holdtime, int settletime, int genesis)
 {
 	int result;
@@ -1172,7 +1189,8 @@ int hfa384x_corereset(hfa384x_t *hw, int holdtime, int settletime, int genesis)
 *
 * Call context:
 *	process
-----------------------------------------------------------------*/
+* ----------------------------------------------------------------
+*/
 static int hfa384x_usbctlx_complete_sync(hfa384x_t *hw,
 					 hfa384x_usbctlx_t *ctlx,
 					 struct usbctlx_completor *completor)
@@ -1287,7 +1305,8 @@ cleanup:
 *
 * Call context:
 *	process
-----------------------------------------------------------------*/
+* ----------------------------------------------------------------
+*/
 static int
 hfa384x_docmd(hfa384x_t *hw,
 	      enum cmd_mode mode,
@@ -1375,7 +1394,8 @@ done:
 * Call context:
 *	interrupt (DOASYNC)
 *	process (DOWAIT or DOASYNC)
-----------------------------------------------------------------*/
+* ----------------------------------------------------------------
+*/
 static int
 hfa384x_dorrid(hfa384x_t *hw,
 	       enum cmd_mode mode,
@@ -1456,7 +1476,8 @@ done:
 * Call context:
 *	interrupt (DOASYNC)
 *	process (DOWAIT or DOASYNC)
-----------------------------------------------------------------*/
+* ----------------------------------------------------------------
+*/
 static int
 hfa384x_dowrid(hfa384x_t *hw,
 	       enum cmd_mode mode,
@@ -1543,7 +1564,8 @@ done:
 * Call context:
 *	interrupt (DOASYNC)
 *	process (DOWAIT or DOASYNC)
-----------------------------------------------------------------*/
+* ----------------------------------------------------------------
+*/
 static int
 hfa384x_dormem(hfa384x_t *hw,
 	       enum cmd_mode mode,
@@ -1634,7 +1656,8 @@ done:
 * Call context:
 *	interrupt (DOWAIT)
 *	process (DOWAIT or DOASYNC)
-----------------------------------------------------------------*/
+* ----------------------------------------------------------------
+*/
 static int
 hfa384x_dowmem(hfa384x_t *hw,
 	       enum cmd_mode mode,
@@ -1714,7 +1737,8 @@ done:
 *
 * Call context:
 *	process
-----------------------------------------------------------------*/
+* ----------------------------------------------------------------
+*/
 int hfa384x_drvr_disable(hfa384x_t *hw, u16 macport)
 {
 	int result = 0;
@@ -1752,7 +1776,8 @@ int hfa384x_drvr_disable(hfa384x_t *hw, u16 macport)
 *
 * Call context:
 *	process
-----------------------------------------------------------------*/
+* ----------------------------------------------------------------
+*/
 int hfa384x_drvr_enable(hfa384x_t *hw, u16 macport)
 {
 	int result = 0;
@@ -1789,7 +1814,8 @@ int hfa384x_drvr_enable(hfa384x_t *hw, u16 macport)
 *
 * Call context:
 *	process
-----------------------------------------------------------------*/
+* ----------------------------------------------------------------
+*/
 int hfa384x_drvr_flashdl_enable(hfa384x_t *hw)
 {
 	int result = 0;
@@ -1848,7 +1874,8 @@ int hfa384x_drvr_flashdl_enable(hfa384x_t *hw)
 *
 * Call context:
 *	process
-----------------------------------------------------------------*/
+* ----------------------------------------------------------------
+*/
 int hfa384x_drvr_flashdl_disable(hfa384x_t *hw)
 {
 	/* Check that we're already in the download state */
@@ -1893,7 +1920,8 @@ int hfa384x_drvr_flashdl_disable(hfa384x_t *hw)
 *
 * Call context:
 *	process
-----------------------------------------------------------------*/
+* ----------------------------------------------------------------
+*/
 int hfa384x_drvr_flashdl_write(hfa384x_t *hw, u32 daddr, void *buf, u32 len)
 {
 	int result = 0;
@@ -2031,7 +2059,8 @@ exit_proc:
 *
 * Call context:
 *	process
-----------------------------------------------------------------*/
+* ----------------------------------------------------------------
+*/
 int hfa384x_drvr_getconfig(hfa384x_t *hw, u16 rid, void *buf, u16 len)
 {
 	return hfa384x_dorrid_wait(hw, rid, buf, len);
@@ -2059,7 +2088,8 @@ int hfa384x_drvr_getconfig(hfa384x_t *hw, u16 rid, void *buf, u16 len)
  *
  * Call context:
  *       process
- ----------------------------------------------------------------*/
+ * ----------------------------------------------------------------
+ */
 int
 hfa384x_drvr_setconfig_async(hfa384x_t *hw,
 			     u16 rid,
@@ -2087,7 +2117,8 @@ hfa384x_drvr_setconfig_async(hfa384x_t *hw,
 *
 * Call context:
 *	process
-----------------------------------------------------------------*/
+* ----------------------------------------------------------------
+*/
 int hfa384x_drvr_ramdl_disable(hfa384x_t *hw)
 {
 	/* Check that we're already in the download state */
@@ -2127,7 +2158,8 @@ int hfa384x_drvr_ramdl_disable(hfa384x_t *hw)
 *
 * Call context:
 *	process
-----------------------------------------------------------------*/
+* ----------------------------------------------------------------
+*/
 int hfa384x_drvr_ramdl_enable(hfa384x_t *hw, u32 exeaddr)
 {
 	int result = 0;
@@ -2195,7 +2227,8 @@ int hfa384x_drvr_ramdl_enable(hfa384x_t *hw, u32 exeaddr)
 *
 * Call context:
 *	process
-----------------------------------------------------------------*/
+* ----------------------------------------------------------------
+*/
 int hfa384x_drvr_ramdl_write(hfa384x_t *hw, u32 daddr, void *buf, u32 len)
 {
 	int result = 0;
@@ -2275,7 +2308,8 @@ int hfa384x_drvr_ramdl_write(hfa384x_t *hw, u32 daddr, void *buf, u32 len)
 *
 * Call context:
 *	process or non-card interrupt.
-----------------------------------------------------------------*/
+* ----------------------------------------------------------------
+*/
 int hfa384x_drvr_readpda(hfa384x_t *hw, void *buf, unsigned int len)
 {
 	int result = 0;
@@ -2385,7 +2419,8 @@ int hfa384x_drvr_readpda(hfa384x_t *hw, void *buf, unsigned int len)
 *
 * Call context:
 *	process
-----------------------------------------------------------------*/
+* ----------------------------------------------------------------
+*/
 int hfa384x_drvr_setconfig(hfa384x_t *hw, u16 rid, void *buf, u16 len)
 {
 	return hfa384x_dowrid_wait(hw, rid, buf, len);
@@ -2409,8 +2444,8 @@ int hfa384x_drvr_setconfig(hfa384x_t *hw, u16 rid, void *buf, u16 len)
 *
 * Call context:
 *	process
-----------------------------------------------------------------*/
-
+* ----------------------------------------------------------------
+*/
 int hfa384x_drvr_start(hfa384x_t *hw)
 {
 	int result, result1, result2;
@@ -2511,7 +2546,8 @@ done:
 *
 * Call context:
 *	process
-----------------------------------------------------------------*/
+* ----------------------------------------------------------------
+*/
 int hfa384x_drvr_stop(hfa384x_t *hw)
 {
 	int i;
@@ -2561,7 +2597,8 @@ int hfa384x_drvr_stop(hfa384x_t *hw)
 *
 * Call context:
 *	interrupt
-----------------------------------------------------------------*/
+* ----------------------------------------------------------------
+*/
 int hfa384x_drvr_txframe(hfa384x_t *hw, struct sk_buff *skb,
 			 union p80211_hdr *p80211_hdr,
 			 struct p80211_metawep *p80211_wep)
@@ -2687,7 +2724,8 @@ void hfa384x_tx_timeout(wlandevice_t *wlandev)
 *
 * Call context:
 *	Interrupt
-----------------------------------------------------------------*/
+* ----------------------------------------------------------------
+*/
 static void hfa384x_usbctlx_reaper_task(unsigned long data)
 {
 	hfa384x_t *hw = (hfa384x_t *)data;
@@ -2720,7 +2758,8 @@ static void hfa384x_usbctlx_reaper_task(unsigned long data)
 *
 * Call context:
 *	Interrupt
-----------------------------------------------------------------*/
+* ----------------------------------------------------------------
+*/
 static void hfa384x_usbctlx_completion_task(unsigned long data)
 {
 	hfa384x_t *hw = (hfa384x_t *)data;
@@ -2796,7 +2835,8 @@ static void hfa384x_usbctlx_completion_task(unsigned long data)
 *
 * Call context:
 *	Either process or interrupt, but presumably interrupt
-----------------------------------------------------------------*/
+* ----------------------------------------------------------------
+*/
 static int unlocked_usbctlx_cancel_async(hfa384x_t *hw,
 					 hfa384x_usbctlx_t *ctlx)
 {
@@ -2846,7 +2886,8 @@ static int unlocked_usbctlx_cancel_async(hfa384x_t *hw,
 *
 * Call context:
 *	Either, assume interrupt
-----------------------------------------------------------------*/
+* ----------------------------------------------------------------
+*/
 static void unlocked_usbctlx_complete(hfa384x_t *hw, hfa384x_usbctlx_t *ctlx)
 {
 	/* Timers have been stopped, and ctlx should be in
@@ -2885,7 +2926,8 @@ static void unlocked_usbctlx_complete(hfa384x_t *hw, hfa384x_usbctlx_t *ctlx)
 *
 * Call context:
 *	any
-----------------------------------------------------------------*/
+* ----------------------------------------------------------------
+*/
 static void hfa384x_usbctlxq_run(hfa384x_t *hw)
 {
 	unsigned long flags;
@@ -2985,7 +3027,8 @@ unlock:
 *
 * Call context:
 *	interrupt
-----------------------------------------------------------------*/
+* ----------------------------------------------------------------
+*/
 static void hfa384x_usbin_callback(struct urb *urb)
 {
 	wlandevice_t *wlandev = urb->context;
@@ -3165,7 +3208,8 @@ exit:
 *
 * Call context:
 *	interrupt
-----------------------------------------------------------------*/
+* ----------------------------------------------------------------
+*/
 static void hfa384x_usbin_ctlx(hfa384x_t *hw, hfa384x_usbin_t *usbin,
 			       int urb_status)
 {
@@ -3284,7 +3328,8 @@ unlock:
 *
 * Call context:
 *	interrupt
-----------------------------------------------------------------*/
+* ----------------------------------------------------------------
+*/
 static void hfa384x_usbin_txcompl(wlandevice_t *wlandev,
 				  hfa384x_usbin_t *usbin)
 {
@@ -3315,7 +3360,8 @@ static void hfa384x_usbin_txcompl(wlandevice_t *wlandev,
 *
 * Call context:
 *	interrupt
-----------------------------------------------------------------*/
+* ----------------------------------------------------------------
+*/
 static void hfa384x_usbin_rx(wlandevice_t *wlandev, struct sk_buff *skb)
 {
 	hfa384x_usbin_t *usbin = (hfa384x_usbin_t *)skb->data;
@@ -3415,7 +3461,8 @@ static void hfa384x_usbin_rx(wlandevice_t *wlandev, struct sk_buff *skb)
 *	Allocates an skb and passes it up via the PF_PACKET interface.
 * Call context:
 *	interrupt
-----------------------------------------------------------------*/
+* ----------------------------------------------------------------
+*/
 static void hfa384x_int_rxmonitor(wlandevice_t *wlandev,
 				  hfa384x_usb_rxfrm_t *rxfrm)
 {
@@ -3474,7 +3521,8 @@ static void hfa384x_int_rxmonitor(wlandevice_t *wlandev,
 	}
 
 	/* Copy the 802.11 header to the skb
-	   (ctl frames may be less than a full header) */
+	 * (ctl frames may be less than a full header)
+	 */
 	datap = skb_put(skb, hdrlen);
 	memcpy(datap, &(rxdesc->frame_control), hdrlen);
 
@@ -3516,7 +3564,8 @@ static void hfa384x_int_rxmonitor(wlandevice_t *wlandev,
 *
 * Call context:
 *	interrupt
-----------------------------------------------------------------*/
+* ----------------------------------------------------------------
+*/
 static void hfa384x_usbin_info(wlandevice_t *wlandev, hfa384x_usbin_t *usbin)
 {
 	usbin->infofrm.info.framelen =
@@ -3539,7 +3588,8 @@ static void hfa384x_usbin_info(wlandevice_t *wlandev, hfa384x_usbin_t *usbin)
 *
 * Call context:
 *	interrupt
-----------------------------------------------------------------*/
+* ----------------------------------------------------------------
+*/
 static void hfa384x_usbout_callback(struct urb *urb)
 {
 	wlandevice_t *wlandev = urb->context;
@@ -3614,7 +3664,8 @@ static void hfa384x_usbout_callback(struct urb *urb)
 *
 * Call context:
 * interrupt
-----------------------------------------------------------------*/
+* ----------------------------------------------------------------
+*/
 static void hfa384x_ctlxout_callback(struct urb *urb)
 {
 	hfa384x_t *hw = urb->context;
@@ -3745,7 +3796,8 @@ delresp:
 *
 * Call context:
 *	interrupt
-----------------------------------------------------------------*/
+* ----------------------------------------------------------------
+*/
 static void hfa384x_usbctlx_reqtimerfn(unsigned long data)
 {
 	hfa384x_t *hw = (hfa384x_t *)data;
@@ -3803,7 +3855,8 @@ static void hfa384x_usbctlx_reqtimerfn(unsigned long data)
 *
 * Call context:
 *	interrupt
-----------------------------------------------------------------*/
+* ----------------------------------------------------------------
+*/
 static void hfa384x_usbctlx_resptimerfn(unsigned long data)
 {
 	hfa384x_t *hw = (hfa384x_t *)data;
@@ -3842,7 +3895,8 @@ static void hfa384x_usbctlx_resptimerfn(unsigned long data)
 *
 * Call context:
 *	Interrupt
-----------------------------------------------------------------*/
+* ----------------------------------------------------------------
+*/
 static void hfa384x_usb_throttlefn(unsigned long data)
 {
 	hfa384x_t *hw = (hfa384x_t *)data;
@@ -3884,7 +3938,8 @@ static void hfa384x_usb_throttlefn(unsigned long data)
 *
 * Call context:
 *	process or interrupt
-----------------------------------------------------------------*/
+* ----------------------------------------------------------------
+*/
 static int hfa384x_usbctlx_submit(hfa384x_t *hw, hfa384x_usbctlx_t *ctlx)
 {
 	unsigned long flags;
@@ -3919,7 +3974,8 @@ static int hfa384x_usbctlx_submit(hfa384x_t *hw, hfa384x_usbctlx_t *ctlx)
 * Side effects:
 *
 * Call context:
-----------------------------------------------------------------*/
+* ----------------------------------------------------------------
+*/
 static int hfa384x_isgood_pdrcode(u16 pdrcode)
 {
 	switch (pdrcode) {
diff --git a/drivers/staging/wlan-ng/p80211netdev.c b/drivers/staging/wlan-ng/p80211netdev.c
index 90cc8cd..c0cb632 100644
--- a/drivers/staging/wlan-ng/p80211netdev.c
+++ b/drivers/staging/wlan-ng/p80211netdev.c
@@ -122,7 +122,8 @@ MODULE_PARM_DESC(wlan_wext_write, "enable write wireless extensions");
 *
 * Returns:
 *	nothing
-----------------------------------------------------------------*/
+* ----------------------------------------------------------------
+*/
 static int p80211knetdev_init(netdevice_t *netdev)
 {
 	/* Called in response to register_netdev */
@@ -145,7 +146,8 @@ static int p80211knetdev_init(netdevice_t *netdev)
 *
 * Returns:
 *	zero on success, non-zero otherwise
-----------------------------------------------------------------*/
+* ----------------------------------------------------------------
+*/
 static int p80211knetdev_open(netdevice_t *netdev)
 {
 	int result = 0;		/* success */
@@ -180,7 +182,8 @@ static int p80211knetdev_open(netdevice_t *netdev)
 *
 * Returns:
 *	zero on success, non-zero otherwise
-----------------------------------------------------------------*/
+* ----------------------------------------------------------------
+*/
 static int p80211knetdev_stop(netdevice_t *netdev)
 {
 	int result = 0;
@@ -207,7 +210,8 @@ static int p80211knetdev_stop(netdevice_t *netdev)
 *	nothing
 * Side effects:
 *
-----------------------------------------------------------------*/
+* ----------------------------------------------------------------
+*/
 void p80211netdev_rx(wlandevice_t *wlandev, struct sk_buff *skb)
 {
 	/* Enqueue for post-irq processing */
@@ -316,7 +320,8 @@ static void p80211netdev_rx_bh(unsigned long arg)
 *
 * Returns:
 *	zero on success, non-zero on failure.
-----------------------------------------------------------------*/
+* ----------------------------------------------------------------
+*/
 static int p80211knetdev_hard_start_xmit(struct sk_buff *skb,
 					 netdevice_t *netdev)
 {
@@ -445,7 +450,8 @@ failed:
 *
 * Returns:
 *	nothing
-----------------------------------------------------------------*/
+* ----------------------------------------------------------------
+*/
 static void p80211knetdev_set_multicast_list(netdevice_t *dev)
 {
 	wlandevice_t *wlandev = dev->ml_priv;
@@ -530,7 +536,8 @@ static int p80211netdev_ethtool(wlandevice_t *wlandev, void __user *useraddr)
 * Call Context:
 *	Process thread (ioctl caller).  TODO: SMP support may require
 *	locks.
-----------------------------------------------------------------*/
+* ----------------------------------------------------------------
+*/
 static int p80211knetdev_do_ioctl(netdevice_t *dev, struct ifreq *ifr, int cmd)
 {
 	int result = 0;
@@ -609,7 +616,8 @@ bail:
 *		-and errors returned by: p80211req_dorequest(..)
 *
 * by: Collin R. Mulliner <collin@...liner.org>
-----------------------------------------------------------------*/
+* ----------------------------------------------------------------
+*/
 static int p80211knetdev_set_mac_address(netdevice_t *dev, void *addr)
 {
 	struct sockaddr *new_addr = addr;
@@ -672,7 +680,8 @@ static int p80211knetdev_set_mac_address(netdevice_t *dev, void *addr)
 static int wlan_change_mtu(netdevice_t *dev, int new_mtu)
 {
 	/* 2312 is max 802.11 payload, 20 is overhead, (ether + llc +snap)
-	   and another 8 for wep. */
+	 * and another 8 for wep.
+	 */
 	if ((new_mtu < 68) || (new_mtu > (2312 - 20 - 8)))
 		return -EINVAL;
 
@@ -716,7 +725,8 @@ static const struct net_device_ops p80211_netdev_ops = {
 *	interrupt though.  When we add support for statically
 *	compiled drivers, this function will be called in the
 *	context of the kernel startup code.
-----------------------------------------------------------------*/
+* ----------------------------------------------------------------
+*/
 int wlan_setup(wlandevice_t *wlandev, struct device *physdev)
 {
 	int result = 0;
@@ -782,7 +792,8 @@ int wlan_setup(wlandevice_t *wlandev, struct device *physdev)
 *	interrupt though.  When we add support for statically
 *	compiled drivers, this function will be called in the
 *	context of the kernel startup code.
-----------------------------------------------------------------*/
+* ----------------------------------------------------------------
+*/
 void wlan_unsetup(wlandevice_t *wlandev)
 {
 	struct wireless_dev *wdev;
@@ -816,7 +827,8 @@ void wlan_unsetup(wlandevice_t *wlandev)
 *	zero on success, non-zero otherwise.
 * Call Context:
 *	Can be either interrupt or not.
-----------------------------------------------------------------*/
+* ----------------------------------------------------------------
+*/
 int register_wlandev(wlandevice_t *wlandev)
 {
 	return register_netdev(wlandev->netdev);
@@ -838,7 +850,8 @@ int register_wlandev(wlandevice_t *wlandev)
 *	zero on success, non-zero otherwise.
 * Call Context:
 *	Can be either interrupt or not.
-----------------------------------------------------------------*/
+* ----------------------------------------------------------------
+*/
 int unregister_wlandev(wlandevice_t *wlandev)
 {
 	struct sk_buff *skb;
@@ -881,7 +894,8 @@ int unregister_wlandev(wlandevice_t *wlandev)
 *
 * Call context:
 *	Usually interrupt.
-----------------------------------------------------------------*/
+* ----------------------------------------------------------------
+*/
 void p80211netdev_hwremoved(wlandevice_t *wlandev)
 {
 	wlandev->hwremoved = 1;
@@ -911,7 +925,8 @@ void p80211netdev_hwremoved(wlandevice_t *wlandev)
 *
 * Call context:
 *	interrupt
-----------------------------------------------------------------*/
+* ----------------------------------------------------------------
+*/
 static int p80211_rx_typedrop(wlandevice_t *wlandev, u16 fc)
 {
 	u16 ftype;
diff --git a/drivers/staging/wlan-ng/p80211req.c b/drivers/staging/wlan-ng/p80211req.c
index 4b84b56..8b68a5d 100644
--- a/drivers/staging/wlan-ng/p80211req.c
+++ b/drivers/staging/wlan-ng/p80211req.c
@@ -92,7 +92,8 @@ static void p80211req_mibset_mibget(wlandevice_t *wlandev,
 * Call context:
 *	Potentially blocks the caller, so it's a good idea to
 *	not call this function from an interrupt context.
-----------------------------------------------------------------*/
+* ----------------------------------------------------------------
+*/
 int p80211req_dorequest(wlandevice_t *wlandev, u8 *msgbuf)
 {
 	struct p80211msg *msg = (struct p80211msg *) msgbuf;
@@ -148,7 +149,8 @@ int p80211req_dorequest(wlandevice_t *wlandev, u8 *msgbuf)
 *
 * Call context:
 *	Process thread
-----------------------------------------------------------------*/
+* ----------------------------------------------------------------
+*/
 static void p80211req_handlemsg(wlandevice_t *wlandev, struct p80211msg *msg)
 {
 	switch (msg->msgcode) {
diff --git a/drivers/staging/wlan-ng/prism2fw.c b/drivers/staging/wlan-ng/prism2fw.c
index 56bffd9..9bdfc19 100644
--- a/drivers/staging/wlan-ng/prism2fw.c
+++ b/drivers/staging/wlan-ng/prism2fw.c
@@ -200,7 +200,8 @@ static int validate_identity(void);
 * Returns:
 *	0	- success
 *	~0	- failure
-----------------------------------------------------------------*/
+* ----------------------------------------------------------------
+*/
 static int prism2_fwtry(struct usb_device *udev, wlandevice_t *wlandev)
 {
 	const struct firmware *fw_entry = NULL;
@@ -237,7 +238,8 @@ static int prism2_fwtry(struct usb_device *udev, wlandevice_t *wlandev)
 * Returns:
 *	0	- success
 *	~0	- failure
-----------------------------------------------------------------*/
+* ----------------------------------------------------------------
+*/
 static int prism2_fwapply(const struct ihex_binrec *rfptr,
 			  wlandevice_t *wlandev)
 {
@@ -387,7 +389,8 @@ out:
 * Returns:
 *	0	success
 *	~0	failure
-----------------------------------------------------------------*/
+* ----------------------------------------------------------------
+*/
 static int crcimage(struct imgchunk *fchunk, unsigned int nfchunks,
 	     struct s3crcrec *s3crc, unsigned int ns3crc)
 {
@@ -448,7 +451,8 @@ static int crcimage(struct imgchunk *fchunk, unsigned int nfchunks,
 *
 * Returns:
 *	nothing
-----------------------------------------------------------------*/
+* ----------------------------------------------------------------
+*/
 static void free_chunks(struct imgchunk *fchunk, unsigned int *nfchunks)
 {
 	int i;
@@ -471,7 +475,8 @@ static void free_chunks(struct imgchunk *fchunk, unsigned int *nfchunks)
 *
 * Returns:
 *	nothing
-----------------------------------------------------------------*/
+* ----------------------------------------------------------------
+*/
 static void free_srecs(void)
 {
 	ns3data = 0;
@@ -498,7 +503,8 @@ static void free_srecs(void)
 * Returns:
 *	0	- success
 *	~0	- failure (probably an errno)
-----------------------------------------------------------------*/
+* ----------------------------------------------------------------
+*/
 static int mkimage(struct imgchunk *clist, unsigned int *ccnt)
 {
 	int result = 0;
@@ -589,7 +595,8 @@ static int mkimage(struct imgchunk *clist, unsigned int *ccnt)
 * Returns:
 *	0	- success
 *	~0	- failure (probably an errno)
-----------------------------------------------------------------*/
+* ----------------------------------------------------------------
+*/
 static int mkpdrlist(struct pda *pda)
 {
 	u16 *pda16 = (u16 *) pda->buf;
@@ -659,7 +666,8 @@ static int mkpdrlist(struct pda *pda)
 * Returns:
 *	0	success
 *	~0	failure
-----------------------------------------------------------------*/
+* ----------------------------------------------------------------
+*/
 static int plugimage(struct imgchunk *fchunk, unsigned int nfchunks,
 	      struct s3plugrec *s3plug, unsigned int ns3plug, struct pda *pda)
 {
@@ -765,7 +773,8 @@ static int plugimage(struct imgchunk *fchunk, unsigned int nfchunks,
 * Returns:
 *	0	- success
 *	~0	- failure (probably an errno)
-----------------------------------------------------------------*/
+* ----------------------------------------------------------------
+*/
 static int read_cardpda(struct pda *pda, wlandevice_t *wlandev)
 {
 	int result = 0;
@@ -860,7 +869,8 @@ static int read_cardpda(struct pda *pda, wlandevice_t *wlandev)
 * Returns:
 *	0	- success
 *	~0	- failure (probably an errno)
-----------------------------------------------------------------*/
+* ----------------------------------------------------------------
+*/
 static int read_fwfile(const struct ihex_binrec *record)
 {
 	int		i;
@@ -981,7 +991,8 @@ static int read_fwfile(const struct ihex_binrec *record)
 * Returns:
 *	0	success
 *	~0	failure
-----------------------------------------------------------------*/
+* ----------------------------------------------------------------
+*/
 static int writeimage(wlandevice_t *wlandev, struct imgchunk *fchunk,
 	       unsigned int nfchunks)
 {
diff --git a/drivers/staging/wlan-ng/prism2mgmt.c b/drivers/staging/wlan-ng/prism2mgmt.c
index d8ed9a0..a42e02e 100644
--- a/drivers/staging/wlan-ng/prism2mgmt.c
+++ b/drivers/staging/wlan-ng/prism2mgmt.c
@@ -112,7 +112,8 @@
 * Call context:
 *	process thread  (usually)
 *	interrupt
-----------------------------------------------------------------*/
+* ----------------------------------------------------------------
+*/
 int prism2mgmt_scan(wlandevice_t *wlandev, void *msgp)
 {
 	int result = 0;
@@ -365,7 +366,8 @@ exit:
 * Call context:
 *	process thread  (usually)
 *	interrupt
-----------------------------------------------------------------*/
+* ----------------------------------------------------------------
+*/
 int prism2mgmt_scan_results(wlandevice_t *wlandev, void *msgp)
 {
 	int result = 0;
@@ -524,7 +526,8 @@ exit:
 * Call context:
 *	process thread  (usually)
 *	interrupt
-----------------------------------------------------------------*/
+* ----------------------------------------------------------------
+*/
 int prism2mgmt_start(wlandevice_t *wlandev, void *msgp)
 {
 	int result = 0;
@@ -707,7 +710,8 @@ done:
 *
 * Call context:
 *	process thread  (usually)
-----------------------------------------------------------------*/
+* ----------------------------------------------------------------
+*/
 int prism2mgmt_readpda(wlandevice_t *wlandev, void *msgp)
 {
 	hfa384x_t *hw = wlandev->priv;
@@ -773,7 +777,8 @@ int prism2mgmt_readpda(wlandevice_t *wlandev, void *msgp)
 *
 * Call context:
 *	process thread  (usually)
-----------------------------------------------------------------*/
+* ----------------------------------------------------------------
+*/
 int prism2mgmt_ramdl_state(wlandevice_t *wlandev, void *msgp)
 {
 	hfa384x_t *hw = wlandev->priv;
@@ -828,7 +833,8 @@ int prism2mgmt_ramdl_state(wlandevice_t *wlandev, void *msgp)
 *
 * Call context:
 *	process thread  (usually)
-----------------------------------------------------------------*/
+* ----------------------------------------------------------------
+*/
 int prism2mgmt_ramdl_write(wlandevice_t *wlandev, void *msgp)
 {
 	hfa384x_t *hw = wlandev->priv;
@@ -889,7 +895,8 @@ int prism2mgmt_ramdl_write(wlandevice_t *wlandev, void *msgp)
 *
 * Call context:
 *	process thread  (usually)
-----------------------------------------------------------------*/
+* ----------------------------------------------------------------
+*/
 int prism2mgmt_flashdl_state(wlandevice_t *wlandev, void *msgp)
 {
 	int result = 0;
@@ -960,7 +967,8 @@ int prism2mgmt_flashdl_state(wlandevice_t *wlandev, void *msgp)
 *
 * Call context:
 *	process thread  (usually)
-----------------------------------------------------------------*/
+* ----------------------------------------------------------------
+*/
 int prism2mgmt_flashdl_write(wlandevice_t *wlandev, void *msgp)
 {
 	hfa384x_t *hw = wlandev->priv;
@@ -1020,7 +1028,8 @@ int prism2mgmt_flashdl_write(wlandevice_t *wlandev, void *msgp)
 * Call context:
 *	process thread  (usually)
 *	interrupt
-----------------------------------------------------------------*/
+* ----------------------------------------------------------------
+*/
 int prism2mgmt_autojoin(wlandevice_t *wlandev, void *msgp)
 {
 	hfa384x_t *hw = wlandev->priv;
@@ -1091,7 +1100,8 @@ int prism2mgmt_autojoin(wlandevice_t *wlandev, void *msgp)
 * Call context:
 *	process thread  (usually)
 *	interrupt
-----------------------------------------------------------------*/
+* ----------------------------------------------------------------
+*/
 int prism2mgmt_wlansniff(wlandevice_t *wlandev, void *msgp)
 {
 	int result = 0;
diff --git a/drivers/staging/wlan-ng/prism2mgmt.h b/drivers/staging/wlan-ng/prism2mgmt.h
index e647203..2fa4f19 100644
--- a/drivers/staging/wlan-ng/prism2mgmt.h
+++ b/drivers/staging/wlan-ng/prism2mgmt.h
@@ -85,7 +85,9 @@ int prism2mgmt_autojoin(wlandevice_t *wlandev, void *msgp);
 /*---------------------------------------------------------------
 * conversion functions going between wlan message data types and
 * Prism2 data types
----------------------------------------------------------------*/
+* ---------------------------------------------------------------
+*/
+
 /* byte area conversion functions*/
 void prism2mgmt_bytearea2pstr(u8 *bytearea, p80211pstrd_t *pstr, int len);
 
diff --git a/drivers/staging/wlan-ng/prism2mib.c b/drivers/staging/wlan-ng/prism2mib.c
index fe914b1..7a90295 100644
--- a/drivers/staging/wlan-ng/prism2mib.c
+++ b/drivers/staging/wlan-ng/prism2mib.c
@@ -255,8 +255,8 @@ static struct mibrec mibtab[] = {
 * Call context:
 *	process thread  (usually)
 *	interrupt
-----------------------------------------------------------------*/
-
+* ----------------------------------------------------------------
+*/
 int prism2mgmt_mibset_mibget(wlandevice_t *wlandev, void *msgp)
 {
 	hfa384x_t *hw = wlandev->priv;
@@ -369,8 +369,8 @@ done:
 *       0   - Success.
 *       ~0  - Error.
 *
-----------------------------------------------------------------*/
-
+* ----------------------------------------------------------------
+*/
 static int prism2mib_bytearea2pstr(struct mibrec *mib,
 				   int isget,
 				   wlandevice_t *wlandev,
@@ -419,8 +419,8 @@ static int prism2mib_bytearea2pstr(struct mibrec *mib,
 *       0   - Success.
 *       ~0  - Error.
 *
-----------------------------------------------------------------*/
-
+* ----------------------------------------------------------------
+*/
 static int prism2mib_uint32(struct mibrec *mib,
 			    int isget,
 			    wlandevice_t *wlandev,
@@ -466,8 +466,8 @@ static int prism2mib_uint32(struct mibrec *mib,
 *       0   - Success.
 *       ~0  - Error.
 *
-----------------------------------------------------------------*/
-
+* ----------------------------------------------------------------
+*/
 static int prism2mib_flag(struct mibrec *mib,
 			  int isget,
 			  wlandevice_t *wlandev,
@@ -523,8 +523,8 @@ static int prism2mib_flag(struct mibrec *mib,
 *       0   - Success.
 *       ~0  - Error.
 *
-----------------------------------------------------------------*/
-
+* ----------------------------------------------------------------
+*/
 static int prism2mib_wepdefaultkey(struct mibrec *mib,
 				   int isget,
 				   wlandevice_t *wlandev,
@@ -573,8 +573,8 @@ static int prism2mib_wepdefaultkey(struct mibrec *mib,
 *       0   - Success.
 *       ~0  - Error.
 *
-----------------------------------------------------------------*/
-
+* ----------------------------------------------------------------
+*/
 static int prism2mib_privacyinvoked(struct mibrec *mib,
 				    int isget,
 				    wlandevice_t *wlandev,
@@ -615,8 +615,8 @@ static int prism2mib_privacyinvoked(struct mibrec *mib,
 *       0   - Success.
 *       ~0  - Error.
 *
-----------------------------------------------------------------*/
-
+* ----------------------------------------------------------------
+*/
 static int prism2mib_excludeunencrypted(struct mibrec *mib,
 					int isget,
 					wlandevice_t *wlandev,
@@ -651,8 +651,8 @@ static int prism2mib_excludeunencrypted(struct mibrec *mib,
 *       0   - Success.
 *       ~0  - Error.
 *
-----------------------------------------------------------------*/
-
+* ----------------------------------------------------------------
+*/
 static int prism2mib_fragmentationthreshold(struct mibrec *mib,
 					    int isget,
 					    wlandevice_t *wlandev,
@@ -697,8 +697,8 @@ static int prism2mib_fragmentationthreshold(struct mibrec *mib,
 *       0   - Success.
 *       ~0  - Error.
 *
-----------------------------------------------------------------*/
-
+* ----------------------------------------------------------------
+*/
 static int prism2mib_priv(struct mibrec *mib,
 			  int isget,
 			  wlandevice_t *wlandev,
@@ -749,8 +749,8 @@ static int prism2mib_priv(struct mibrec *mib,
 * Returns:
 *	Nothing
 *
-----------------------------------------------------------------*/
-
+* ----------------------------------------------------------------
+*/
 void prism2mgmt_pstr2bytestr(struct hfa384x_bytestr *bytestr,
 			     p80211pstrd_t *pstr)
 {
@@ -771,8 +771,8 @@ void prism2mgmt_pstr2bytestr(struct hfa384x_bytestr *bytestr,
 * Returns:
 *	Nothing
 *
-----------------------------------------------------------------*/
-
+* ----------------------------------------------------------------
+*/
 void prism2mgmt_bytestr2pstr(struct hfa384x_bytestr *bytestr,
 			     p80211pstrd_t *pstr)
 {
@@ -793,8 +793,8 @@ void prism2mgmt_bytestr2pstr(struct hfa384x_bytestr *bytestr,
 * Returns:
 *	Nothing
 *
-----------------------------------------------------------------*/
-
+* ----------------------------------------------------------------
+*/
 void prism2mgmt_bytearea2pstr(u8 *bytearea, p80211pstrd_t *pstr, int len)
 {
 	pstr->len = (u8) len;
-- 
1.9.1

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ