Skip to contentSkip to conversation

Avoid CamelCases in hfa384x.h

PATCH RESEND New Sergio Paracuellos 1 participant 13 messages Oct 19, 2016 Staging

lore
Share & tools
lore
#1 lore raw

PATCH RESEND 1/12 staging: wlan-ng: avoid CamelCase: HFA384x_RID_CNFAPBCNint

In reply to Sergio Paracuellos

Replace CamelCase define to comply with the standard kernel coding style.

---
 drivers/staging/wlan-ng/hfa384x.h    | 2 +-
 drivers/staging/wlan-ng/prism2mgmt.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
drivers/staging/wlan-ng/hfa384x.h +1 -1
index 6337b1d..1c7a171 100644
@@ -286,7 +286,7 @@
 #define		HFA384x_RID_CNFWEPFLAGS		((u16)0xFC28)
 #define		HFA384x_RID_CNFAUTHENTICATION	((u16)0xFC2A)
 #define		HFA384x_RID_CNFROAMINGMODE	((u16)0xFC2D)
-#define		HFA384x_RID_CNFAPBCNint		((u16)0xFC33)
+#define		HFA384x_RID_CNFAPBCNINT		((u16)0xFC33)
 #define		HFA384x_RID_CNFDBMADJUST	((u16)0xFC46)
 #define		HFA384x_RID_CNFWPADATA		((u16)0xFC48)
 #define		HFA384x_RID_CNFBASICRATES	((u16)0xFCB3)
drivers/staging/wlan-ng/prism2mgmt.c +1 -1
index 90db53d..8be3a74 100644
@@ -583,7 +583,7 @@ int prism2mgmt_start(struct wlandevice *wlandev, void *msgp)
 
 	/* beacon period */
 	word = msg->beaconperiod.data;
-	result = hfa384x_drvr_setconfig16(hw, HFA384x_RID_CNFAPBCNint, word);
+	result = hfa384x_drvr_setconfig16(hw, HFA384x_RID_CNFAPBCNINT, word);
 	if (result) {
 		netdev_err(wlandev->netdev,
 			   "Failed to set beacon period=%d.\n", word);
Signature · 1 line
1.9.1
#8 lore raw

PATCH RESEND 8/12 staging: wlan-ng: avoid CamelCase: hfa384x_HScanResult

In reply to Sergio Paracuellos

Replace CamelCase struct name with underscores to comply with the standard kernel coding style.

---
 drivers/staging/wlan-ng/hfa384x.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/staging/wlan-ng/hfa384x.h +2 -2
index 46855fe..e5b72dc 100644
@@ -707,7 +707,7 @@ struct hfa384x_hscan_result_sub {
 	u16 atim;
 } __packed;
 
-struct hfa384x_HScanResult {
+struct hfa384x_hscan_result {
 	u16 nresult;
 	u16 rsvd;
 	struct hfa384x_hscan_result_sub result[HFA384x_HSCANRESULT_MAX];
@@ -766,7 +766,7 @@ struct hfa384x_KeyIDChanged {
 	struct hfa384x_comm_tallies_32 commtallies32;
 	struct hfa384x_scan_result scanresult;
 	struct hfa384x_ch_info_result chinforesult;
-	struct hfa384x_HScanResult hscanresult;
+	struct hfa384x_hscan_result hscanresult;
 	struct hfa384x_LinkStatus linkstatus;
 	struct hfa384x_assoc_status assocstatus;
 	struct hfa384x_AuthRequest authreq;
Signature · 1 line
1.9.1
#9 lore raw

PATCH RESEND 9/12 staging: wlan-ng: avoid CamelCase: hfa384x_LinkStatus

In reply to Sergio Paracuellos

Replace CamelCase struct name with underscores to comply with the standard kernel coding style.

---
 drivers/staging/wlan-ng/hfa384x.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/staging/wlan-ng/hfa384x.h +2 -2
index e5b72dc..2c08f8b 100644
@@ -723,7 +723,7 @@ struct hfa384x_hscan_result {
 #define HFA384x_LINK_AP_INRANGE		((u16)5)
 #define HFA384x_LINK_ASSOCFAIL		((u16)6)
 
-struct hfa384x_LinkStatus {
+struct hfa384x_link_status {
 	u16 linkstatus;
 } __packed;
 
@@ -767,7 +767,7 @@ struct hfa384x_KeyIDChanged {
 	struct hfa384x_scan_result scanresult;
 	struct hfa384x_ch_info_result chinforesult;
 	struct hfa384x_hscan_result hscanresult;
-	struct hfa384x_LinkStatus linkstatus;
+	struct hfa384x_link_status linkstatus;
 	struct hfa384x_assoc_status assocstatus;
 	struct hfa384x_AuthRequest authreq;
 	struct hfa384x_PSUserCount psusercnt;
Signature · 1 line
1.9.1
#7 lore raw

PATCH RESEND 7/12 staging: wlan-ng: avoid CamelCase: hfa384x_HScanResultSub

In reply to Sergio Paracuellos

Replace CamelCase struct name with underscores to comply with the standard kernel coding style.

---
 drivers/staging/wlan-ng/hfa384x.h    | 4 ++--
 drivers/staging/wlan-ng/prism2mgmt.c | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)
drivers/staging/wlan-ng/hfa384x.h +2 -2
index c5b5208..46855fe 100644
@@ -694,7 +694,7 @@ struct hfa384x_ch_info_result {
 } __packed;
 
 /*--  Inquiry Frame, Diagnose: Host Scan Results & Subfields--*/
-struct hfa384x_HScanResultSub {
+struct hfa384x_hscan_result_sub {
 	u16 chid;
 	u16 anl;
 	u16 sl;
@@ -710,7 +710,7 @@ struct hfa384x_HScanResultSub {
 struct hfa384x_HScanResult {
 	u16 nresult;
 	u16 rsvd;
-	struct hfa384x_HScanResultSub result[HFA384x_HSCANRESULT_MAX];
+	struct hfa384x_hscan_result_sub result[HFA384x_HSCANRESULT_MAX];
 } __packed;
 
 /*--  Unsolicited Frame, MAC Mgmt: LinkStatus --*/
drivers/staging/wlan-ng/prism2mgmt.c +1 -1
index 3a56308..f63704a 100644
@@ -373,7 +373,7 @@ int prism2mgmt_scan_results(struct wlandevice *wlandev, void *msgp)
 	int result = 0;
 	struct p80211msg_dot11req_scan_results *req;
 	struct hfa384x *hw = wlandev->priv;
-	struct hfa384x_HScanResultSub *item = NULL;
+	struct hfa384x_hscan_result_sub *item = NULL;
 
 	int count;
 
Signature · 1 line
1.9.1
#6 lore raw

PATCH RESEND 6/12 staging: wlan-ng: avoid CamelCase: hfa384x_ChInfoResult

In reply to Sergio Paracuellos

Replace CamelCase struct name with underscores to comply with the standard kernel coding style.

---
 drivers/staging/wlan-ng/hfa384x.h | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/staging/wlan-ng/hfa384x.h +3 -3
index 9556098..c5b5208 100644
@@ -688,7 +688,7 @@ struct hfa384x_ch_info_result_sub {
 #define HFA384x_CHINFORESULT_BSSACTIVE	BIT(0)
 #define HFA384x_CHINFORESULT_PCFACTIVE	BIT(1)
 
-struct hfa384x_ChInfoResult {
+struct hfa384x_ch_info_result {
 	u16 scanchannels;
 	struct hfa384x_ch_info_result_sub result[HFA384x_CHINFORESULT_MAX];
 } __packed;
@@ -765,7 +765,7 @@ struct hfa384x_KeyIDChanged {
 	struct hfa384x_comm_tallies_16 commtallies16;
 	struct hfa384x_comm_tallies_32 commtallies32;
 	struct hfa384x_scan_result scanresult;
-	struct hfa384x_ChInfoResult chinforesult;
+	struct hfa384x_ch_info_result chinforesult;
 	struct hfa384x_HScanResult hscanresult;
 	struct hfa384x_LinkStatus linkstatus;
 	struct hfa384x_assoc_status assocstatus;
@@ -1366,7 +1366,7 @@ struct hfa384x {
 	struct {
 		atomic_t done;
 		u8 count;
-		struct hfa384x_ChInfoResult results;
+		struct hfa384x_ch_info_result results;
 	} channel_info;
 
 	struct hfa384x_inf_frame *scanresults;
Signature · 1 line
1.9.1
#12 lore raw

PATCH RESEND 12/12 staging: wlan-ng: avoid CamelCase: hfa384x_KeyIDChanged

In reply to Sergio Paracuellos

Replace CamelCase struct name with underscores to comply with the standard kernel coding style.

---
 drivers/staging/wlan-ng/hfa384x.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/staging/wlan-ng/hfa384x.h +2 -2
index f989ce2..01945a9 100644
@@ -755,7 +755,7 @@ struct hfa384x_ps_user_count {
 	u16 usercnt;
 } __packed;
 
-struct hfa384x_KeyIDChanged {
+struct hfa384x_key_id_changed {
 	u8 sta_addr[ETH_ALEN];
 	u16 keyid;
 } __packed;
@@ -771,7 +771,7 @@ struct hfa384x_KeyIDChanged {
 	struct hfa384x_assoc_status assocstatus;
 	struct hfa384x_auth_request authreq;
 	struct hfa384x_ps_user_count psusercnt;
-	struct hfa384x_KeyIDChanged keyidchanged;
+	struct hfa384x_key_id_changed keyidchanged;
 } __packed;
 
 struct hfa384x_inf_frame {
Signature · 1 line
1.9.1
#11 lore raw

PATCH RESEND 11/12 staging: wlan-ng: avoid CamelCase: hfa384x_PSUserCount

In reply to Sergio Paracuellos

Replace CamelCase struct name with underscores to comply with the standard kernel coding style.

---
 drivers/staging/wlan-ng/hfa384x.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/staging/wlan-ng/hfa384x.h +2 -2
index c81ca93..f989ce2 100644
@@ -751,7 +751,7 @@ struct hfa384x_auth_request {
 
 /*--  Unsolicited Frame, MAC Mgmt: PSUserCount (AP Only) --*/
 
-struct hfa384x_PSUserCount {
+struct hfa384x_ps_user_count {
 	u16 usercnt;
 } __packed;
 
@@ -770,7 +770,7 @@ struct hfa384x_KeyIDChanged {
 	struct hfa384x_link_status linkstatus;
 	struct hfa384x_assoc_status assocstatus;
 	struct hfa384x_auth_request authreq;
-	struct hfa384x_PSUserCount psusercnt;
+	struct hfa384x_ps_user_count psusercnt;
 	struct hfa384x_KeyIDChanged keyidchanged;
 } __packed;
 
Signature · 1 line
1.9.1
#10 lore raw

PATCH RESEND 10/12 staging: wlan-ng: avoid CamelCase: hfa384x_AuthRequest

In reply to Sergio Paracuellos

Replace CamelCase struct name with underscores to comply with the standard kernel coding style.

---
 drivers/staging/wlan-ng/hfa384x.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/staging/wlan-ng/hfa384x.h +2 -2
index 2c08f8b..c81ca93 100644
@@ -744,7 +744,7 @@ struct hfa384x_assoc_status {
 
 /*--  Unsolicited Frame, MAC Mgmt: AuthRequest (AP Only) --*/
 
-struct hfa384x_AuthRequest {
+struct hfa384x_auth_request {
 	u8 sta_addr[ETH_ALEN];
 	u16 algorithm;
 } __packed;
@@ -769,7 +769,7 @@ struct hfa384x_KeyIDChanged {
 	struct hfa384x_hscan_result hscanresult;
 	struct hfa384x_link_status linkstatus;
 	struct hfa384x_assoc_status assocstatus;
-	struct hfa384x_AuthRequest authreq;
+	struct hfa384x_auth_request authreq;
 	struct hfa384x_PSUserCount psusercnt;
 	struct hfa384x_KeyIDChanged keyidchanged;
 } __packed;
Signature · 1 line
1.9.1
#0 lore raw

cover Avoid CamelCases in hfa384x.h

This patchset fix CamelCases in hfa384x.h header file.

This file is free of CamelCases now.

This patch series are resent because an mix error in the previous sent.

Sergio Paracuellos (12):
staging: wlan-ng: avoid CamelCase: HFA384x_RID_CNFAPBCNint
staging: wlan-ng: avoid CamelCase: hfa384x_HostScanRequest_data
staging: wlan-ng: avoid CamelCase: hfa384x_WPAData
staging: wlan-ng: avoid CamelCase in fields of struct
hfa384x_dbmcommsquality
staging: wlan-ng: avoid CamelCase: hfa384x_CommTallies16
staging: wlan-ng: avoid CamelCase: hfa384x_ChInfoResult
staging: wlan-ng: avoid CamelCase: hfa384x_HScanResultSub
staging: wlan-ng: avoid CamelCase: hfa384x_HScanResult
staging: wlan-ng: avoid CamelCase: hfa384x_LinkStatus
staging: wlan-ng: avoid CamelCase: hfa384x_AuthRequest
staging: wlan-ng: avoid CamelCase: hfa384x_PSUserCount
staging: wlan-ng: avoid CamelCase: hfa384x_KeyIDChanged

 drivers/staging/wlan-ng/hfa384x.h    | 50 ++++++++++++++++++------------------
 drivers/staging/wlan-ng/prism2mgmt.c | 12 ++++-----
 drivers/staging/wlan-ng/prism2mib.c  |  2 +-
 3 files changed, 32 insertions(+), 32 deletions(-)
Signature · 1 line
1.9.1
#5 lore raw

PATCH RESEND 5/12 staging: wlan-ng: avoid CamelCase: hfa384x_CommTallies16

Replace CamelCase struct name with underscores to comply with the standard kernel coding style.

---
 drivers/staging/wlan-ng/hfa384x.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/staging/wlan-ng/hfa384x.h +2 -2
index 2034c42..9556098 100644
@@ -610,7 +610,7 @@ struct hfa384x_rx_frame {
  */
 
 /*--  Inquiry Frame, Diagnose: Communication Tallies --*/
-struct hfa384x_CommTallies16 {
+struct hfa384x_comm_tallies_16 {
 	u16 txunicastframes;
 	u16 txmulticastframes;
 	u16 txfragments;
@@ -762,7 +762,7 @@ struct hfa384x_KeyIDChanged {
 
 /*--  Collection of all Inf frames ---------------*/
 union hfa384x_infodata {
-	struct hfa384x_CommTallies16 commtallies16;
+	struct hfa384x_comm_tallies_16 commtallies16;
 	struct hfa384x_comm_tallies_32 commtallies32;
 	struct hfa384x_scan_result scanresult;
 	struct hfa384x_ChInfoResult chinforesult;
Signature · 1 line
1.9.1
#4 lore raw

PATCH RESEND 4/12 staging: wlan-ng: avoid CamelCase in fields of struct hfa384x_dbmcommsquality

In reply to Sergio Paracuellos

Replace CamelCase fields of struct with underscores to comply with the standard kernel coding style

---
 drivers/staging/wlan-ng/hfa384x.h | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/staging/wlan-ng/hfa384x.h +3 -3
index a3a0ed5..2034c42 100644
@@ -462,9 +462,9 @@ struct hfa384x_commsquality {
 
 /*-- Information Record: dmbcommsquality --*/
 struct hfa384x_dbmcommsquality {
-	u16 CQdbm_currBSS;
-	u16 ASLdbm_currBSS;
-	u16 ANLdbm_currFC;
+	u16 cq_dbm_curr_bss;
+	u16 asl_dbm_curr_bss;
+	u16 anl_dbm_curr_fc;
 } __packed;
 
 /*--------------------------------------------------------------------
Signature · 1 line
1.9.1
#3 lore raw

PATCH RESEND 3/12 staging: wlan-ng: avoid CamelCase: hfa384x_WPAData

In reply to Sergio Paracuellos

Replace CamelCase struct name with underscores to comply with the standard kernel coding style.

---
 drivers/staging/wlan-ng/hfa384x.h   | 2 +-
 drivers/staging/wlan-ng/prism2mib.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
drivers/staging/wlan-ng/hfa384x.h +1 -1
index 89380ac..a3a0ed5 100644
@@ -428,7 +428,7 @@ struct hfa384x_authenticate_station_data {
 } __packed;
 
 /*-- Configuration Record: WPAData       (data portion only) --*/
-struct hfa384x_WPAData {
+struct hfa384x_wpa_data {
 	u16 datalen;
 	u8 data[0];		/* max 80 */
 } __packed;
drivers/staging/wlan-ng/prism2mib.c +1 -1
index d7792cd..8ea6a64 100644
@@ -709,7 +709,7 @@ static int prism2mib_priv(struct mibrec *mib,
 
 	switch (mib->did) {
 	case DIDmib_lnx_lnxConfigTable_lnxRSNAIE:{
-			struct hfa384x_WPAData wpa;
+			struct hfa384x_wpa_data wpa;
 
 			if (isget) {
 				hfa384x_drvr_getconfig(hw,
Signature · 1 line
1.9.1
#2 lore raw

PATCH RESEND 2/12 staging: wlan-ng: avoid CamelCase: hfa384x_HostScanRequest_data

In reply to Sergio Paracuellos

Replace CamelCase struct name and fields with underscores to comply with the standard kernel coding style.

---
 drivers/staging/wlan-ng/hfa384x.h    | 6 +++---
 drivers/staging/wlan-ng/prism2mgmt.c | 8 ++++----
 2 files changed, 7 insertions(+), 7 deletions(-)
drivers/staging/wlan-ng/hfa384x.h +3 -3
index 1c7a171..89380ac 100644
@@ -408,9 +408,9 @@ struct hfa384x_caplevel {
 #define HFA384x_CREATEIBSS_JOINCREATEIBSS          0
 
 /*-- Configuration Record: HostScanRequest (data portion only) --*/
-struct hfa384x_HostScanRequest_data {
-	u16 channelList;
-	u16 txRate;
+struct hfa384x_host_scan_request_data {
+	u16 channel_list;
+	u16 tx_rate;
 	struct hfa384x_bytestr32 ssid;
 } __packed;
 
drivers/staging/wlan-ng/prism2mgmt.c +4 -4
index 8be3a74..3a56308 100644
@@ -123,7 +123,7 @@ int prism2mgmt_scan(struct wlandevice *wlandev, void *msgp)
 	int i, timeout;
 	int istmpenable = 0;
 
-	struct hfa384x_HostScanRequest_data scanreq;
+	struct hfa384x_host_scan_request_data scanreq;
 
 	/* gatekeeper check */
 	if (HFA384x_FIRMWARE_VERSION(hw->ident_sta_fw.major,
@@ -185,7 +185,7 @@ int prism2mgmt_scan(struct wlandevice *wlandev, void *msgp)
 
 	/* set up the txrate to be 2MBPS. Should be fastest basicrate... */
 	word = HFA384x_RATEBIT_2;
-	scanreq.txRate = cpu_to_le16(word);
+	scanreq.tx_rate = cpu_to_le16(word);
 
 	/* set up the channel list */
 	word = 0;
@@ -197,7 +197,7 @@ int prism2mgmt_scan(struct wlandevice *wlandev, void *msgp)
 		/* channel 1 is BIT 0 ... channel 14 is BIT 13 */
 		word |= (1 << (channel - 1));
 	}
-	scanreq.channelList = cpu_to_le16(word);
+	scanreq.channel_list = cpu_to_le16(word);
 
 	/* set up the ssid, if present. */
 	scanreq.ssid.len = cpu_to_le16(msg->ssid.data.len);
@@ -293,7 +293,7 @@ int prism2mgmt_scan(struct wlandevice *wlandev, void *msgp)
 
 	result = hfa384x_drvr_setconfig(hw,
 					HFA384x_RID_HOSTSCAN, &scanreq,
-					sizeof(struct hfa384x_HostScanRequest_data));
+					sizeof(struct hfa384x_host_scan_request_data));
 	if (result) {
 		netdev_err(wlandev->netdev,
 			   "setconfig(SCANREQUEST) failed. result=%d\n",
Signature · 1 line
1.9.1