Fix some style warnings in hfa384x.h
cover Fix some style warnings in hfa384x.h
This patch series fix some warnings reported by checkpatch.pl script in hfa384x.h:
WARNING: Block comments use * on subsequent lines
WARNING: Block comments use a trailing */ on a separate line
WARNING: do not add new typedefs
Sergio Paracuellos (87):
staging: wlang-ng: avoid new typedef: hfa384x_bytestr32_t
staging: wlang-ng: avoid new typedef: hfa384x_compident_t
staging: wlang-ng: Fix block comments style warnings in hfa384x.h
staging: wlang-ng: avoid new typedef: hfa384x_caplevel_t
staging: wlang-ng: avoid new typedef: hfa384x_HostScanRequest_data_t
staging: wlang-ng: avoid new typedef: hfa384x_JoinRequest_data_t
staging: wlang-ng: avoid new typedef:
hfa384x_authenticateStation_data_t
staging: wlang-ng: avoid new typedef: hfa384x_WPAData_t
staging: wlang-ng: avoid new typedef: hfa384x_downloadbuffer_t
staging: wlang-ng: avoid new typedef: hfa384x_commsquality_t
staging: wlang-ng: avoid new typedef: hfa384x_dbmcommsquality_t
staging: wlang-ng: avoid new typedef: hfa384x_tx_frame_t
staging: wlang-ng: avoid new typedef: hfa384x_rx_frame_t
staging: wlang-ng: avoid new typedef: hfa384x_CommTallies16_t
staging: wlang-ng: avoid new typedef: hfa384x_CommTallies32_t
staging: wlang-ng: avoid new typedef: hfa384x_ScanResultSub_t
staging: wlang-ng: avoid new typedef: hfa384x_ScanResult_t
staging: wlang-ng: avoid new typedef: hfa384x_ChInfoResultSub_t
staging: wlang-ng: avoid new typedef: hfa384x_ChInfoResult_t
staging: wlang-ng: avoid new typedef: hfa384x_HScanResultSub_t
staging: wlang-ng: avoid new typedef: hfa384x_HScanResult_t
staging: wlang-ng: avoid new typedef: hfa384x_LinkStatus_t
staging: wlang-ng: avoid new typedef: hfa384x_AssocStatus_t
staging: wlang-ng: avoid new typedef: hfa384x_AuthReq_t
staging: wlang-ng: avoid new typedef: hfa384x_PSUserCount_t
staging: wlang-ng: avoid new typedef: hfa384x_KeyIDChanged_t
staging: wlang-ng: avoid new typedef: hfa384x_infodata_t
staging: wlang-ng: avoid new typedef: hfa384x_InfFrame_t
staging: wlang-ng: avoid new typedef: hfa384x_usb_txfrm_t
staging: wlang-ng: avoid new typedef: hfa384x_usb_cmdreq_t
staging: wlang-ng: avoid new typedef: hfa384x_usb_wridreq_t
staging: wlang-ng: avoid new typedef: hfa384x_usb_rridreq_t
staging: wlang-ng: avoid new typedef: hfa384x_usb_wmemreq_t
staging: wlang-ng: avoid new typedef: hfa384x_usb_rmemreq_t
staging: wlang-ng: avoid new typedef: hfa384x_usb_rxfrm_t
staging: wlang-ng: avoid new typedef: hfa384x_usb_infofrm_t
staging: wlang-ng: avoid new typedef: hfa384x_usb_cmdresp_t
staging: wlang-ng: avoid new typedef: hfa384x_usb_wridresp_t
staging: wlang-ng: avoid new typedef: hfa384x_usb_rridresp_t
staging: wlang-ng: avoid new typedef: hfa384x_usb_wmemresp_t
staging: wlang-ng: avoid new typedef: hfa384x_usb_rmemresp_t
staging: wlang-ng: avoid new typedef: hfa384x_usb_bufavail_t
staging: wlang-ng: avoid new typedef: hfa384x_usb_error_t
staging: wlang-ng: avoid new typedef: hfa384x_usbout_t
staging: wlang-ng: avoid new typedef: hfa384x_usbin_t
staging: wlang-ng: avoid new typedef: hfa384x_pdr_pcb_partnum_t
staging: wlang-ng: avoid new typedef: hfa384x_pdr_pcb_tracenum_t
staging: wlang-ng: avoid new typedef: hfa384x_pdr_nic_serial_t
staging: wlang-ng: avoid new typedef: hfa384x_pdr_mkk_measurements_t
staging: wlang-ng: avoid new typedef: hfa384x_pdr_nic_ramsize_t
staging: wlang-ng: avoid new typedef: hfa384x_pdr_mfisuprange_t
staging: wlang-ng: avoid new typedef: hfa384x_pdr_cfisuprange_t
staging: wlang-ng: avoid new typedef: hfa384x_pdr_nicid_t
staging: wlang-ng: avoid new typedef:
hfa384x_pdr_refdac_measurements_t
staging: wlang-ng: avoid new typedef: hfa384x_pdr_vgdac_measurements_t
staging: wlang-ng: avoid new typedef:
hfa384x_pdr_level_compc_measurements_t
staging: wlang-ng: avoid new typedef: hfa384x_pdr_mac_address_t
staging: wlang-ng: avoid new typedef: hfa384x_pdr_mkk_callname_t
staging: wlang-ng: avoid new typedef: hfa384x_pdr_regdomain_t
staging: wlang-ng: avoid new typedef: hfa384x_pdr_allowed_channel_t
staging: wlang-ng: avoid new typedef: hfa384x_pdr_default_channel_t
staging: wlang-ng: avoid new typedef: hfa384x_pdr_privacy_option_t
staging: wlang-ng: avoid new typedef: hfa384x_pdr_temptype_t
staging: wlang-ng: avoid new typedef: hfa384x_pdr_refdac_setup_t
staging: wlang-ng: avoid new typedef: hfa384x_pdr_vgdac_setup_t
staging: wlang-ng: avoid new typedef: hfa384x_pdr_level_comp_setup_t
staging: wlang-ng: avoid new typedef: hfa384x_pdr_trimdac_setup_t
staging: wlang-ng: avoid new typedef: hfa384x_pdr_ifr_setting_t
staging: wlang-ng: avoid new typedef: hfa384x_pdr_rfr_setting_t
staging: wlang-ng: avoid new typedef: hfa384x_pdr_hfa3861_baseline_t
staging: wlang-ng: avoid new typedef: hfa384x_pdr_hfa3861_shadow_t
staging: wlang-ng: avoid new typedef: hfa384x_pdr_hfa3861_ifrf_t
staging: wlang-ng: avoid new typedef: hfa384x_pdr_hfa3861_chcalsp_t
staging: wlang-ng: avoid new typedef: hfa384x_pdr_hfa3861_chcali_t
staging: wlang-ng: avoid new typedef: hfa384x_pdr_nic_config_t
staging: wlang-ng: avoid new typedef: hfa384x_hfo_delay_t
staging: wlang-ng: avoid new typedef:
hfa384x_pdr_hfa3861_manf_testsp_t
staging: wlang-ng: avoid new typedef: hfa384x_pdr_hfa3861_manf_testi_t
staging: wlang-ng: avoid new typedef: hfa384x_pdr_end_of_pda_t
staging: wlang-ng: avoid new typedef: hfa384x_pdrec_t
staging: wlang-ng: avoid new typedef: hfa384x_cmdresult_t
staging: wlang-ng: avoid new typedef: hfa384x_rridresult_t
staging: wlang-ng: avoid new typedef: hfa384x_usbctlx_t
staging: wlang-ng: avoid new typedef: hfa384x_usbctlxq_t
staging: wlang-ng: avoid new typedef: hfa384x_metacmd_t
staging: wlang-ng: avoid new typedef: hfa384x_t
staging: wlang-ng: Fix block comments style warnings in hfa384x.h
drivers/staging/wlan-ng/hfa384x.h | 874 +++++++++++++++++----------------- drivers/staging/wlan-ng/hfa384x_usb.c | 293 ++++++------ drivers/staging/wlan-ng/prism2fw.c | 22 +- drivers/staging/wlan-ng/prism2mgmt.c | 26 +- drivers/staging/wlan-ng/prism2mgmt.h | 7 +- drivers/staging/wlan-ng/prism2mib.c | 38 +- drivers/staging/wlan-ng/prism2sta.c | 130 ++--- drivers/staging/wlan-ng/prism2usb.c | 10 +- 8 files changed, 712 insertions(+), 688 deletions(-)
Signature · 1 line
1.9.1
PATCH 1/87 staging: wlang-ng: avoid new typedef: hfa384x_bytestr32_t
This patch fixes the following checkpatch.pl warning in hfa384x.h:
WARNING: do not add new typedefs
It applies for typedef hfa384x_bytestr32_t
--- drivers/staging/wlan-ng/hfa384x.h | 10 +++++----- drivers/staging/wlan-ng/prism2sta.c | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-)
drivers/staging/wlan-ng/hfa384x.h +5 -5
@@ -356,10 +356,10 @@ struct hfa384x_bytestr {u8 data[0 ]; } __packed; -typedef struct hfa384x_bytestr32 { +struct hfa384x_bytestr32 {u16 len;u8 data[32 ]; -} __packed hfa384x_bytestr32_t; +} __packed;/*-------------------------------------------------------------------- Configuration Record Structures:
@@ -398,7 +398,7 @@ struct hfa384x_bytestr {typedef struct hfa384x_HostScanRequest_data {u16 channelList;u16 txRate; -hfa384x_bytestr32_t ssid; +struct hfa384x_bytestr32 ssid; } __packed hfa384x_HostScanRequest_data_t;/*-- Configuration Record: JoinRequest (data portion only) --*/
@@ -643,7 +643,7 @@ struct hfa384x_bytestr {u8 bssid[WLAN_BSSID_LEN ];u16 bcnint;u16 capinfo; -hfa384x_bytestr32_t ssid; +struct hfa384x_bytestr32 ssid;u8 supprates[10 ];/* 802.11 info element */ u16 proberesp_rate; }__packed hfa384x_ScanResultSub_t;
@@ -678,7 +678,7 @@ struct hfa384x_bytestr {u8 bssid[WLAN_BSSID_LEN ];u16 bcnint;u16 capinfo; -hfa384x_bytestr32_t ssid; +struct hfa384x_bytestr32 ssid;u8 supprates[10 ];/* 802.11 info element */ u16 proberesp_rate;u16 atim;
drivers/staging/wlan-ng/prism2sta.c +2 -2
@@ -1171,7 +1171,7 @@ void prism2sta_processing_defer(struct work_struct *data) { hfa384x_t *hw = container_of(data, struct hfa384x, link_bh);struct wlandevice *wlandev = hw->wlandev; -hfa384x_bytestr32_t ssid; +struct hfa384x_bytestr32 ssid;int result;/* First let's process the auth frames */
@@ -1914,7 +1914,7 @@ void prism2sta_commsqual_defer(struct work_struct *data) { hfa384x_t *hw = container_of(data, struct hfa384x, commsqual_bh);struct wlandevice *wlandev = hw->wlandev; -hfa384x_bytestr32_t ssid; +struct hfa384x_bytestr32 ssid;struct p80211msg_dot11req_mibget msg;struct p80211item_uint32 *mibitem = (struct p80211item_uint32 *) &msg.mibattribute.data;
Signature · 1 line
1.9.1
PATCH 2/87 staging: wlang-ng: avoid new typedef: hfa384x_compident_t
In reply to Sergio ParacuellosThis patch fixes the following checkpatch.pl warning in hfa384x.h:
WARNING: do not add new typedefs
It applies for typedef hfa384x_compident_t
--- drivers/staging/wlan-ng/hfa384x.h | 12 ++++++------ drivers/staging/wlan-ng/prism2fw.c | 6 +++--- drivers/staging/wlan-ng/prism2sta.c | 6 +++--- 3 files changed, 12 insertions(+), 12 deletions(-)
drivers/staging/wlan-ng/hfa384x.h +6 -6
@@ -367,12 +367,12 @@ struct hfa384x_bytestr32 {--------------------------------------------------------------------*/ /*-- Hardware/Firmware Component Information ----------*/ -typedef struct hfa384x_compident { +struct hfa384x_compident {u16 id;u16 variant;u16 major;u16 minor; -} __packed hfa384x_compident_t; +} __packed; typedef struct hfa384x_caplevel { u16 role;
@@ -1304,10 +1304,10 @@ struct prism2sta_accesslist {unsigned int dot11_grpcnt;/* Component Identities */ -hfa384x_compident_t ident_nic; -hfa384x_compident_t ident_pri_fw; -hfa384x_compident_t ident_sta_fw; -hfa384x_compident_t ident_ap_fw; +struct hfa384x_compident ident_nic; +struct hfa384x_compident ident_pri_fw; +struct hfa384x_compident ident_sta_fw; +struct hfa384x_compident ident_ap_fw;u16 mm_mods;/* Supplier compatibility ranges */
drivers/staging/wlan-ng/prism2fw.c +3 -3
@@ -96,10 +96,10 @@ struct s3inforec {u16 len;u16 type;union { -hfa384x_compident_t version; +struct hfa384x_compident version;hfa384x_caplevel_t compat;u16 buildseq; -hfa384x_compident_t platform; +struct hfa384x_compident platform; } info; };
@@ -152,7 +152,7 @@ struct imgchunk {/* PDA, built from [card|newfile]+[addfile1+addfile2...] */ static struct pda pda; -static hfa384x_compident_t nicid; +static struct hfa384x_compident nicid;static hfa384x_caplevel_t rfid;static hfa384x_caplevel_t macid;static hfa384x_caplevel_t priid;
drivers/staging/wlan-ng/prism2sta.c +3 -3
@@ -592,7 +592,7 @@ static int prism2sta_getcardinfo(struct wlandevice *wlandev)/* NIC identity */ result =hfa384x_drvr_getconfig (hw, HFA384x_RID_NICIDENTITY, &hw->ident_nic, -sizeof (hfa384x_compident_t)); +sizeof (struct hfa384x_compident ));if (result) {netdev_err (wlandev->netdev,"Failed to retrieve NICIDENTITY\n" ); goto failed;
@@ -611,7 +611,7 @@ static int prism2sta_getcardinfo(struct wlandevice *wlandev)/* Primary f/w identity */ result =hfa384x_drvr_getconfig (hw, HFA384x_RID_PRIIDENTITY, &hw->ident_pri_fw, -sizeof (hfa384x_compident_t)); +sizeof (struct hfa384x_compident ));if (result) {netdev_err (wlandev->netdev,"Failed to retrieve PRIIDENTITY\n" ); goto failed;
@@ -630,7 +630,7 @@ static int prism2sta_getcardinfo(struct wlandevice *wlandev)/* Station (Secondary?) f/w identity */ result =hfa384x_drvr_getconfig (hw, HFA384x_RID_STAIDENTITY, &hw->ident_sta_fw, -sizeof (hfa384x_compident_t)); +sizeof (struct hfa384x_compident ));if (result) {netdev_err (wlandev->netdev,"Failed to retrieve STAIDENTITY\n" ); goto failed;
Signature · 1 line
1.9.1
PATCH 3/87 staging: wlang-ng: Fix block comments style warnings in hfa384x.h
In reply to Sergio Paracuellos This patch fixes the following checkpatch.pl warnings in hfa384x.h:
WARNING: Block comments use * on subsequent lines
WARNING: Block comments use a trailing */ on a separate line
--- drivers/staging/wlan-ng/hfa384x.h | 166 ++++++++++++++++++++++---------------- 1 file changed, 96 insertions(+), 70 deletions(-)
drivers/staging/wlan-ng/hfa384x.h +96 -70
@@ -174,11 +174,12 @@#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 ---------------------------------------------------*/ +* 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)
@@ -186,8 +187,9 @@/*--- 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)
@@ -196,17 +198,19 @@#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)
@@ -214,8 +218,9 @@#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)
@@ -231,15 +236,17 @@#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)
@@ -251,23 +258,26 @@#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)
@@ -291,8 +301,9 @@ API ENHANCEMENTS (NOT ALREADY IMPLEMENTED)#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)
@@ -362,9 +373,10 @@ struct hfa384x_bytestr32 { } __packed;/*-------------------------------------------------------------------- -Configuration Record Structures: -Network Parameters, Static Configuration Entities ---------------------------------------------------------------------*/ +* Configuration Record Structures: +* Network Parameters, Static Configuration Entities +*-------------------------------------------------------------------- +*/ /*-- Hardware/Firmware Component Information ----------*/ struct hfa384x_compident {
@@ -388,9 +400,10 @@ struct hfa384x_compident {#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
@@ -421,8 +434,9 @@ struct hfa384x_compident { }__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 */
@@ -433,8 +447,9 @@ struct hfa384x_compident { }__packed hfa384x_downloadbuffer_t;/*-------------------------------------------------------------------- -Information Record Structures: NIC Information ---------------------------------------------------------------------*/ +* Information Record Structures: NIC Information +*-------------------------------------------------------------------- +*/ #define HFA384x_PSTATUS_CONN_IBSS ((u16)3)
@@ -453,10 +468,11 @@ struct hfa384x_compident { }__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;
@@ -485,8 +501,9 @@ struct hfa384x_compident {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))
@@ -500,8 +517,9 @@ struct hfa384x_compident {#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)) & \
@@ -517,8 +535,9 @@ struct hfa384x_compident {#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) --*/
@@ -547,8 +566,9 @@ struct hfa384x_compident {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) | \
@@ -556,17 +576,19 @@ struct hfa384x_compident { 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)
@@ -581,10 +603,11 @@ struct hfa384x_compident {#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 {
@@ -758,8 +781,9 @@ struct hfa384x_compident { }__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
@@ -905,8 +929,9 @@ struct hfa384x_compident { }__packed hfa384x_usbin_t;/*-------------------------------------------------------------------- -PD record structures. ---------------------------------------------------------------------*/ +* PD record structures. +*-------------------------------------------------------------------- +*/ typedef struct hfa384x_pdr_pcb_partnum { u8 num[8];
@@ -1113,9 +1138,10 @@ struct hfa384x_compident { #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;
Signature · 1 line
1.9.1
PATCH 4/87 staging: wlang-ng: avoid new typedef: hfa384x_caplevel_t
In reply to Sergio ParacuellosThis patch fixes the following checkpatch.pl warning in hfa384x.h:
WARNING: do not add new typedefs
It applies for typedef hfa384x_caplevel_t
--- drivers/staging/wlan-ng/hfa384x.h | 24 ++++++++++++------------ drivers/staging/wlan-ng/prism2fw.c | 8 ++++---- drivers/staging/wlan-ng/prism2sta.c | 14 +++++++------- 3 files changed, 23 insertions(+), 23 deletions(-)
drivers/staging/wlan-ng/hfa384x.h +12 -12
@@ -386,13 +386,13 @@ struct hfa384x_compident {u16 minor; } __packed; -typedef struct hfa384x_caplevel { +struct hfa384x_caplevel {u16 role;u16 id;u16 variant;u16 bottom;u16 top; -} __packed hfa384x_caplevel_t; +} __packed;/*-- Configuration Record: cnfAuthentication --*/ #define HFA384x_CNFAUTHENTICATION_OPENSYSTEM 0x0001
@@ -1337,31 +1337,31 @@ struct prism2sta_accesslist {u16 mm_mods;/* Supplier compatibility ranges */ -hfa384x_caplevel_t cap_sup_mfi; -hfa384x_caplevel_t cap_sup_cfi; -hfa384x_caplevel_t cap_sup_pri; -hfa384x_caplevel_t cap_sup_sta; -hfa384x_caplevel_t cap_sup_ap; +struct hfa384x_caplevel cap_sup_mfi; +struct hfa384x_caplevel cap_sup_cfi; +struct hfa384x_caplevel cap_sup_pri; +struct hfa384x_caplevel cap_sup_sta; +struct hfa384x_caplevel cap_sup_ap;/* Actor compatibility ranges */ -hfa384x_caplevel_t cap_act_pri_cfi;/* +struct hfa384x_caplevel cap_act_pri_cfi;/* * pri f/w to controller * interface */ -hfa384x_caplevel_t cap_act_sta_cfi;/* +struct hfa384x_caplevel cap_act_sta_cfi;/* * sta f/w to controller * interface */ -hfa384x_caplevel_t cap_act_sta_mfi;/* sta f/w to modem interface */ +struct hfa384x_caplevel cap_act_sta_mfi;/* sta f/w to modem interface */ -hfa384x_caplevel_t cap_act_ap_cfi;/* +struct hfa384x_caplevel cap_act_ap_cfi;/* * ap f/w to controller * interface */ -hfa384x_caplevel_t cap_act_ap_mfi;/* ap f/w to modem interface */ +struct hfa384x_caplevel cap_act_ap_mfi;/* ap f/w to modem interface */ u32 psusercount;/* Power save user count. */ hfa384x_CommTallies32_t tallies;/* Communication tallies. */
drivers/staging/wlan-ng/prism2fw.c +4 -4
@@ -97,7 +97,7 @@ struct s3inforec {u16 type;union {struct hfa384x_compident version; -hfa384x_caplevel_t compat; +struct hfa384x_caplevel compat;u16 buildseq;struct hfa384x_compident platform; } info;
@@ -153,9 +153,9 @@ struct imgchunk {static struct pda pda;static struct hfa384x_compident nicid; -static hfa384x_caplevel_t rfid; -static hfa384x_caplevel_t macid; -static hfa384x_caplevel_t priid; +static struct hfa384x_caplevel rfid; +static struct hfa384x_caplevel macid; +static struct hfa384x_caplevel priid;/*================================================================*/ /* Local Function Declarations */
drivers/staging/wlan-ng/prism2sta.c +7 -7
@@ -670,7 +670,7 @@ static int prism2sta_getcardinfo(struct wlandevice *wlandev)/* Compatibility range, Modem supplier */ result =hfa384x_drvr_getconfig (hw, HFA384x_RID_MFISUPRANGE, &hw->cap_sup_mfi, -sizeof (hfa384x_caplevel_t)); +sizeof (struct hfa384x_caplevel ));if (result) {netdev_err (wlandev->netdev,"Failed to retrieve MFISUPRANGE\n" ); goto failed;
@@ -694,7 +694,7 @@ static int prism2sta_getcardinfo(struct wlandevice *wlandev)/* Compatibility range, Controller supplier */ result =hfa384x_drvr_getconfig (hw, HFA384x_RID_CFISUPRANGE, &hw->cap_sup_cfi, -sizeof (hfa384x_caplevel_t)); +sizeof (struct hfa384x_caplevel ));if (result) {netdev_err (wlandev->netdev,"Failed to retrieve CFISUPRANGE\n" ); goto failed;
@@ -718,7 +718,7 @@ static int prism2sta_getcardinfo(struct wlandevice *wlandev)/* Compatibility range, Primary f/w supplier */ result =hfa384x_drvr_getconfig (hw, HFA384x_RID_PRISUPRANGE, &hw->cap_sup_pri, -sizeof (hfa384x_caplevel_t)); +sizeof (struct hfa384x_caplevel ));if (result) {netdev_err (wlandev->netdev,"Failed to retrieve PRISUPRANGE\n" ); goto failed;
@@ -742,7 +742,7 @@ static int prism2sta_getcardinfo(struct wlandevice *wlandev)/* Compatibility range, Station f/w supplier */ result =hfa384x_drvr_getconfig (hw, HFA384x_RID_STASUPRANGE, &hw->cap_sup_sta, -sizeof (hfa384x_caplevel_t)); +sizeof (struct hfa384x_caplevel ));if (result) {netdev_err (wlandev->netdev,"Failed to retrieve STASUPRANGE\n" ); goto failed;
@@ -774,7 +774,7 @@ static int prism2sta_getcardinfo(struct wlandevice *wlandev)/* Compatibility range, primary f/w actor, CFI supplier */ result =hfa384x_drvr_getconfig (hw, HFA384x_RID_PRI_CFIACTRANGES, &hw->cap_act_pri_cfi, -sizeof (hfa384x_caplevel_t)); +sizeof (struct hfa384x_caplevel ));if (result) {netdev_err (wlandev->netdev,"Failed to retrieve PRI_CFIACTRANGES\n" ); goto failed;
@@ -798,7 +798,7 @@ static int prism2sta_getcardinfo(struct wlandevice *wlandev)/* Compatibility range, sta f/w actor, CFI supplier */ result =hfa384x_drvr_getconfig (hw, HFA384x_RID_STA_CFIACTRANGES, &hw->cap_act_sta_cfi, -sizeof (hfa384x_caplevel_t)); +sizeof (struct hfa384x_caplevel ));if (result) {netdev_err (wlandev->netdev,"Failed to retrieve STA_CFIACTRANGES\n" ); goto failed;
@@ -822,7 +822,7 @@ static int prism2sta_getcardinfo(struct wlandevice *wlandev)/* Compatibility range, sta f/w actor, MFI supplier */ result =hfa384x_drvr_getconfig (hw, HFA384x_RID_STA_MFIACTRANGES, &hw->cap_act_sta_mfi, -sizeof (hfa384x_caplevel_t)); +sizeof (struct hfa384x_caplevel ));if (result) {netdev_err (wlandev->netdev,"Failed to retrieve STA_MFIACTRANGES\n" ); goto failed;
Signature · 1 line
1.9.1
PATCH 5/87 staging: wlang-ng: avoid new typedef: hfa384x_HostScanRequest_data_t
In reply to Sergio ParacuellosThis patch fixes the following checkpatch.pl warning in hfa384x.h:
WARNING: do not add new typedefs
It applies for typedef hfa384x_HostScanRequest_data_t
--- drivers/staging/wlan-ng/hfa384x.h | 4 ++-- drivers/staging/wlan-ng/prism2mgmt.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-)
drivers/staging/wlan-ng/hfa384x.h +2 -2
@@ -408,11 +408,11 @@ struct hfa384x_caplevel {#define HFA384x_CREATEIBSS_JOINCREATEIBSS 0/*-- Configuration Record: HostScanRequest (data portion only) --*/ -typedef struct hfa384x_HostScanRequest_data { +struct hfa384x_HostScanRequest_data {u16 channelList;u16 txRate;struct hfa384x_bytestr32 ssid; -} __packed hfa384x_HostScanRequest_data_t; +} __packed;/*-- Configuration Record: JoinRequest (data portion only) --*/ typedef struct hfa384x_JoinRequest_data {
drivers/staging/wlan-ng/prism2mgmt.c +2 -2
@@ -122,7 +122,7 @@ int prism2mgmt_scan(struct wlandevice *wlandev, void *msgp)int i, timeout;int istmpenable =0 ; -hfa384x_HostScanRequest_data_t scanreq; +struct hfa384x_HostScanRequest_data scanreq;/* gatekeeper check */ if (HFA384x_FIRMWARE_VERSION(hw->ident_sta_fw.major,
@@ -292,7 +292,7 @@ int prism2mgmt_scan(struct wlandevice *wlandev, void *msgp) result =hfa384x_drvr_setconfig (hw, HFA384x_RID_HOSTSCAN, &scanreq, -sizeof (hfa384x_HostScanRequest_data_t)); +sizeof (struct hfa384x_HostScanRequest_data ));if (result) { netdev_err(wlandev->netdev, "setconfig(SCANREQUEST) failed. result=%d\n",
Signature · 1 line
1.9.1
PATCH 6/87 staging: wlang-ng: avoid new typedef: hfa384x_JoinRequest_data_t
In reply to Sergio ParacuellosThis patch fixes the following checkpatch.pl warning in hfa384x.h:
WARNING: do not add new typedefs
It applies for typedef hfa384x_JoinRequest_data_t
--- drivers/staging/wlan-ng/hfa384x.h | 8 ++++---- drivers/staging/wlan-ng/prism2sta.c | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-)
drivers/staging/wlan-ng/hfa384x.h +4 -4
@@ -266,7 +266,7 @@#define HFA384x_RID_DBMCOMMSQUALITY_LEN \ ((u16)sizeof(hfa384x_dbmcommsquality_t))#define HFA384x_RID_JOINREQUEST_LEN \ - ((u16)sizeof(hfa384x_JoinRequest_data_t)) + ((u16)sizeof(struct hfa384x_JoinRequest_data))/*-------------------------------------------------------------------- * Information RIDs: Modem Information
@@ -415,10 +415,10 @@ struct hfa384x_HostScanRequest_data { } __packed;/*-- Configuration Record: JoinRequest (data portion only) --*/ -typedef struct hfa384x_JoinRequest_data { +struct hfa384x_JoinRequest_data {u8 bssid[WLAN_BSSID_LEN ];u16 channel; -} __packed hfa384x_JoinRequest_data_t; +} __packed;/*-- Configuration Record: authenticateStation (data portion only) --*/ typedef struct hfa384x_authenticateStation_data {
@@ -1298,7 +1298,7 @@ struct prism2sta_accesslist {int scanflag;/* to signal scan complete */ int join_ap;/* are we joined to a specific ap */ int join_retries;/* number of join retries till we fail */ -hfa384x_JoinRequest_data_t joinreq;/* join request saved data */ +struct hfa384x_JoinRequest_data joinreq;/* join request saved data */ struct wlandevice *wlandev;/* Timer to allow for the deferred processing of linkstatus messages */
drivers/staging/wlan-ng/prism2sta.c +2 -2
@@ -1035,7 +1035,7 @@ static void prism2sta_inf_scanresults(struct wlandevice *wlandev,int nbss;hfa384x_ScanResult_t *sr = &(inf->info.scanresult);int i; -hfa384x_JoinRequest_data_t joinreq; +struct hfa384x_JoinRequest_data joinreq;int result;/* Get the number of results, first in bytes, then in results */
@@ -1389,7 +1389,7 @@ void prism2sta_processing_defer(struct work_struct *data)* Disable Transmits, Ignore receives of data frames */ if (hw->join_ap && --hw->join_retries >0 ) { -hfa384x_JoinRequest_data_t joinreq; +struct hfa384x_JoinRequest_data joinreq; joinreq = hw->joinreq;/* Send the join request */
Signature · 1 line
1.9.1
PATCH 7/87 staging: wlang-ng: avoid new typedef: hfa384x_authenticateStation_data_t
In reply to Sergio ParacuellosThis patch fixes the following checkpatch.pl warning in hfa384x.h:
WARNING: do not add new typedefs
It applies for typedef hfa384x_authenticateStation_data_t
--- drivers/staging/wlan-ng/hfa384x.h | 4 ++-- drivers/staging/wlan-ng/prism2sta.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-)
drivers/staging/wlan-ng/hfa384x.h +2 -2
@@ -421,11 +421,11 @@ struct hfa384x_JoinRequest_data { } __packed;/*-- Configuration Record: authenticateStation (data portion only) --*/ -typedef struct hfa384x_authenticateStation_data { +struct hfa384x_authenticateStation_data {u8 address[ETH_ALEN ];u16 status;u16 algorithm; -} __packed hfa384x_authenticateStation_data_t; +} __packed;/*-- Configuration Record: WPAData (data portion only) --*/ typedef struct hfa384x_WPAData {
drivers/staging/wlan-ng/prism2sta.c +1 -1
@@ -1545,7 +1545,7 @@ static void prism2sta_inf_authreq_defer(struct wlandevice *wlandev, hfa384x_InfFrame_t *inf) {hfa384x_t *hw = wlandev->priv; -hfa384x_authenticateStation_data_t rec; +struct hfa384x_authenticateStation_data rec;int i, added, result, cnt;u8 *addr;
Signature · 1 line
1.9.1
PATCH 8/87 staging: wlang-ng: avoid new typedef: hfa384x_WPAData_t
In reply to Sergio ParacuellosThis patch fixes the following checkpatch.pl warning in hfa384x.h:
WARNING: do not add new typedefs
It applies for typedef hfa384x_WPAData_t
--- drivers/staging/wlan-ng/hfa384x.h | 4 ++-- drivers/staging/wlan-ng/prism2mib.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-)
drivers/staging/wlan-ng/hfa384x.h +2 -2
@@ -428,10 +428,10 @@ struct hfa384x_authenticateStation_data { } __packed;/*-- Configuration Record: WPAData (data portion only) --*/ -typedef struct hfa384x_WPAData { +struct hfa384x_WPAData {u16 datalen;u8 data[0 ];/* max 80 */ -} __packed hfa384x_WPAData_t; +} __packed;/*-------------------------------------------------------------------- * Information Record Structures: NIC Information
drivers/staging/wlan-ng/prism2mib.c +1 -1
@@ -709,7 +709,7 @@ static int prism2mib_priv(struct mibrec *mib,switch (mib->did) {case DIDmib_lnx_lnxConfigTable_lnxRSNAIE:{ -hfa384x_WPAData_t wpa; +struct hfa384x_WPAData wpa;if (isget) { hfa384x_drvr_getconfig(hw,
Signature · 1 line
1.9.1
PATCH 9/87 staging: wlang-ng: avoid new typedef: hfa384x_downloadbuffer_t
In reply to Sergio ParacuellosThis patch fixes the following checkpatch.pl warning in hfa384x.h:
WARNING: do not add new typedefs
It applies for typedef hfa384x_downloadbuffer_t
--- drivers/staging/wlan-ng/hfa384x.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/staging/wlan-ng/hfa384x.h +3 -3
@@ -440,11 +440,11 @@ struct hfa384x_WPAData {/*-- Information Record: DownLoadBuffer --*/ /* NOTE: The page and offset are in AUX format */ -typedef struct hfa384x_downloadbuffer { +struct hfa384x_downloadbuffer {u16 page;u16 offset;u16 len; -} __packed hfa384x_downloadbuffer_t; +} __packed;/*-------------------------------------------------------------------- * Information Record Structures: NIC Information
@@ -1292,7 +1292,7 @@ struct prism2sta_accesslist {/* Download support */ unsigned int dlstate; -hfa384x_downloadbuffer_t bufinfo; +struct hfa384x_downloadbuffer bufinfo;u16 dltimeout;int scanflag;/* to signal scan complete */
Signature · 1 line
1.9.1
PATCH 10/87 staging: wlang-ng: avoid new typedef: hfa384x_commsquality_t
In reply to Sergio ParacuellosThis patch fixes the following checkpatch.pl warning in hfa384x.h:
WARNING: do not add new typedefs
It applies for typedef hfa384x_commsquality_t
--- drivers/staging/wlan-ng/hfa384x.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/staging/wlan-ng/hfa384x.h +3 -3
@@ -454,11 +454,11 @@ struct hfa384x_downloadbuffer {#define HFA384x_PSTATUS_CONN_IBSS ((u16)3)/*-- Information Record: commsquality --*/ -typedef struct hfa384x_commsquality { +struct hfa384x_commsquality {u16 CQ_currBSS;u16 ASL_currBSS;u16 ANL_currFC; -} __packed hfa384x_commsquality_t; +} __packed;/*-- Information Record: dmbcommsquality --*/ typedef struct hfa384x_dbmcommsquality {
@@ -1305,7 +1305,7 @@ struct prism2sta_accesslist {struct work_struct link_bh;struct work_struct commsqual_bh; -hfa384x_commsquality_t qual; +struct hfa384x_commsquality qual;struct timer_list commsqual_timer;u16 link_status;
Signature · 1 line
1.9.1
PATCH 11/87 staging: wlang-ng: avoid new typedef: hfa384x_dbmcommsquality_t
In reply to Sergio ParacuellosThis patch fixes the following checkpatch.pl warning in hfa384x.h:
WARNING: do not add new typedefs
It applies for typedef hfa384x_dbmcommsquality_t
--- drivers/staging/wlan-ng/hfa384x.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/staging/wlan-ng/hfa384x.h +3 -3
@@ -264,7 +264,7 @@*-------------------------------------------------------------------- */ #define HFA384x_RID_DBMCOMMSQUALITY_LEN \ - ((u16)sizeof(hfa384x_dbmcommsquality_t)) + ((u16)sizeof(struct hfa384x_dbmcommsquality))#define HFA384x_RID_JOINREQUEST_LEN \ ((u16)sizeof(struct hfa384x_JoinRequest_data))
@@ -461,11 +461,11 @@ struct hfa384x_commsquality { } __packed;/*-- Information Record: dmbcommsquality --*/ -typedef struct hfa384x_dbmcommsquality { +struct hfa384x_dbmcommsquality {u16 CQdbm_currBSS;u16 ASLdbm_currBSS;u16 ANLdbm_currFC; -} __packed hfa384x_dbmcommsquality_t; +} __packed;/*-------------------------------------------------------------------- * FRAME STRUCTURES: Communication Frames
Signature · 1 line
1.9.1
PATCH 12/87 staging: wlang-ng: avoid new typedef: hfa384x_tx_frame_t
In reply to Sergio ParacuellosThis patch fixes the following checkpatch.pl warning in hfa384x.h:
WARNING: do not add new typedefs
It applies for typedef hfa384x_tx_frame_t
--- drivers/staging/wlan-ng/hfa384x.h | 6 +++--- drivers/staging/wlan-ng/hfa384x_usb.c | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-)
drivers/staging/wlan-ng/hfa384x.h +3 -3
@@ -474,7 +474,7 @@ struct hfa384x_dbmcommsquality {*-------------------------------------------------------------------- */ /*-- Communication Frame: Transmit Frame Structure --*/ -typedef struct hfa384x_tx_frame { +struct hfa384x_tx_frame {u16 status;u16 reserved1;u16 reserved2;
@@ -499,7 +499,7 @@ struct hfa384x_dbmcommsquality {u8 dest_addr[6 ];u8 src_addr[6 ];u16 data_length;/* big endian format */ -}__packed hfa384x_tx_frame_t; +} __packed;/*-------------------------------------------------------------------- * Communication Frames: Field Masks for Transmit Frames *--------------------------------------------------------------------
@@ -809,7 +809,7 @@ struct hfa384x_dbmcommsquality {/* Request (bulk OUT) packet contents */ typedef struct hfa384x_usb_txfrm { -hfa384x_tx_frame_t desc; +struct hfa384x_tx_frame desc;u8 data[WLAN_DATA_MAXLEN ]; } __packed hfa384x_usb_txfrm_t;
drivers/staging/wlan-ng/hfa384x_usb.c +1 -1
@@ -2566,7 +2566,7 @@ int hfa384x_drvr_txframe(hfa384x_t *hw, struct sk_buff *skb,union p80211_hdr *p80211_hdr, struct p80211_metawep *p80211_wep) { - int usbpktlen = sizeof(hfa384x_tx_frame_t); + int usbpktlen = sizeof(struct hfa384x_tx_frame);int result;int ret;char *ptr;
Signature · 1 line
1.9.1
PATCH 13/87 staging: wlang-ng: avoid new typedef: hfa384x_rx_frame_t
In reply to Sergio ParacuellosThis patch fixes the following checkpatch.pl warning in hfa384x.h:
WARNING: do not add new typedefs
It applies for typedef hfa384x_rx_frame_t
--- drivers/staging/wlan-ng/hfa384x.h | 6 +++--- drivers/staging/wlan-ng/hfa384x_usb.c | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-)
drivers/staging/wlan-ng/hfa384x.h +3 -3
@@ -539,7 +539,7 @@ struct hfa384x_tx_frame {*-------------------------------------------------------------------- */ /*-- Communication Frame: Receive Frame Structure --*/ -typedef struct hfa384x_rx_frame { +struct hfa384x_rx_frame {/*-- MAC rx descriptor (hfa384x byte order) --*/ u16 status;u32 time;
@@ -564,7 +564,7 @@ struct hfa384x_tx_frame {u8 dest_addr[6 ];u8 src_addr[6 ];u16 data_length;/* IEEE? (big endian) format */ -}__packed hfa384x_rx_frame_t; +} __packed;/*-------------------------------------------------------------------- * Communication Frames: Field Masks for Receive Frames *--------------------------------------------------------------------
@@ -856,7 +856,7 @@ struct hfa384x_tx_frame {/* Response (bulk IN) packet contents */ typedef struct hfa384x_usb_rxfrm { -hfa384x_rx_frame_t desc; +struct hfa384x_rx_frame desc;u8 data[WLAN_DATA_MAXLEN ]; } __packed hfa384x_usb_rxfrm_t;
drivers/staging/wlan-ng/hfa384x_usb.c +2 -2
@@ -3346,7 +3346,7 @@ static void hfa384x_usbin_rx(struct wlandevice *wlandev, struct sk_buff *skb) hdrlen =p80211_headerlen (fc);/* Pull off the descriptor */ -skb_pull (skb,sizeof (hfa384x_rx_frame_t)); +skb_pull (skb,sizeof (struct hfa384x_rx_frame ));/* Now shunt the header block up against the data block * with an "overlapping" copy
@@ -3419,7 +3419,7 @@ static void hfa384x_usbin_rx(struct wlandevice *wlandev, struct sk_buff *skb)static void hfa384x_int_rxmonitor (struct wlandevice *wlandev,hfa384x_usb_rxfrm_t *rxfrm) { -hfa384x_rx_frame_t *rxdesc = &(rxfrm->desc); +struct hfa384x_rx_frame *rxdesc = &(rxfrm->desc);unsigned int hdrlen =0 ;unsigned int datalen =0 ;unsigned int skblen =0 ;
Signature · 1 line
1.9.1
PATCH 14/87 staging: wlang-ng: avoid new typedef: hfa384x_CommTallies16_t
In reply to Sergio ParacuellosThis patch fixes the following checkpatch.pl warning in hfa384x.h:
WARNING: do not add new typedefs
It applies for typedef hfa384x_CommTallies16_t
--- drivers/staging/wlan-ng/hfa384x.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/staging/wlan-ng/hfa384x.h +3 -3
@@ -610,7 +610,7 @@ struct hfa384x_rx_frame {*/ /*-- Inquiry Frame, Diagnose: Communication Tallies --*/ -typedef struct hfa384x_CommTallies16 { +struct hfa384x_CommTallies16 {u16 txunicastframes;u16 txmulticastframes;u16 txfragments;
@@ -632,7 +632,7 @@ struct hfa384x_rx_frame {u16 rxdiscardswepundecr;u16 rxmsginmsgfrag;u16 rxmsginbadmsgfrag; -}__packed hfa384x_CommTallies16_t; +} __packed; typedef struct hfa384x_CommTallies32 { u32 txunicastframes;
@@ -762,7 +762,7 @@ struct hfa384x_rx_frame {/*-- Collection of all Inf frames ---------------*/ typedef union hfa384x_infodata { - hfa384x_CommTallies16_t commtallies16; + struct hfa384x_CommTallies16 commtallies16; hfa384x_CommTallies32_t commtallies32; hfa384x_ScanResult_t scanresult; hfa384x_ChInfoResult_t chinforesult;
Signature · 1 line
1.9.1
PATCH 15/87 staging: wlang-ng: avoid new typedef: hfa384x_CommTallies32_t
In reply to Sergio ParacuellosThis patch fixes the following checkpatch.pl warning in hfa384x.h:
WARNING: do not add new typedefs
It applies for typedef hfa384x_CommTallies32_t
--- drivers/staging/wlan-ng/hfa384x.h | 8 ++++---- drivers/staging/wlan-ng/prism2sta.c | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-)
drivers/staging/wlan-ng/hfa384x.h +4 -4
@@ -634,7 +634,7 @@ struct hfa384x_CommTallies16 {u16 rxmsginbadmsgfrag; } __packed; -typedef struct hfa384x_CommTallies32 { +struct hfa384x_CommTallies32 {u32 txunicastframes;u32 txmulticastframes;u32 txfragments;
@@ -656,7 +656,7 @@ struct hfa384x_CommTallies16 {u32 rxdiscardswepundecr;u32 rxmsginmsgfrag;u32 rxmsginbadmsgfrag; -}__packed hfa384x_CommTallies32_t; +} __packed;/*-- Inquiry Frame, Diagnose: Scan Results & Subfields--*/ typedef struct hfa384x_ScanResultSub {
@@ -763,7 +763,7 @@ struct hfa384x_CommTallies16 {/*-- Collection of all Inf frames ---------------*/ typedef union hfa384x_infodata { struct hfa384x_CommTallies16 commtallies16; - hfa384x_CommTallies32_t commtallies32; + struct hfa384x_CommTallies32 commtallies32; hfa384x_ScanResult_t scanresult; hfa384x_ChInfoResult_t chinforesult; hfa384x_HScanResult_t hscanresult;
@@ -1364,7 +1364,7 @@ struct prism2sta_accesslist {struct hfa384x_caplevel cap_act_ap_mfi;/* ap f/w to modem interface */ u32 psusercount;/* Power save user count. */ -hfa384x_CommTallies32_t tallies;/* Communication tallies. */ +struct hfa384x_CommTallies32 tallies;/* Communication tallies. */ u8 comment[WLAN_COMMENT_MAX +1 ];/* User comment */ /* Channel Info request results (AP only) */
drivers/staging/wlan-ng/prism2sta.c +1 -1
@@ -997,7 +997,7 @@ static void prism2sta_inf_tallies(struct wlandevice *wlandev,* record length of the info record. */ - cnt =sizeof (hfa384x_CommTallies32_t) /sizeof (u32); + cnt =sizeof (struct hfa384x_CommTallies32 ) /sizeof (u32);if (inf->framelen >22 ) { dst = (u32 *)&hw->tallies; src32 = (u32 *)&inf->info.commtallies32;
Signature · 1 line
1.9.1
PATCH 16/87 staging: wlang-ng: avoid new typedef: hfa384x_ScanResultSub_t
In reply to Sergio ParacuellosThis patch fixes the following checkpatch.pl warning in hfa384x.h:
WARNING: do not add new typedefs
It applies for typedef hfa384x_ScanResultSub_t
--- drivers/staging/wlan-ng/hfa384x.h | 6 +++--- drivers/staging/wlan-ng/prism2sta.c | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-)
drivers/staging/wlan-ng/hfa384x.h +3 -3
@@ -659,7 +659,7 @@ struct hfa384x_CommTallies32 { } __packed;/*-- Inquiry Frame, Diagnose: Scan Results & Subfields--*/ -typedef struct hfa384x_ScanResultSub { +struct hfa384x_ScanResultSub {u16 chid;u16 anl;u16 sl;
@@ -669,12 +669,12 @@ struct hfa384x_CommTallies32 {struct hfa384x_bytestr32 ssid;u8 supprates[10 ];/* 802.11 info element */ u16 proberesp_rate; -}__packed hfa384x_ScanResultSub_t; +} __packed;typedef struct hfa384x_ScanResult {u16 rsvd;u16 scanreason; -hfa384x_ScanResultSub_t result[HFA384x_SCANRESULT_MAX]; +struct hfa384x_ScanResultSub result[HFA384x_SCANRESULT_MAX]; } __packed hfa384x_ScanResult_t;/*-- Inquiry Frame, Diagnose: ChInfo Results & Subfields--*/
drivers/staging/wlan-ng/prism2sta.c +1 -1
@@ -1041,7 +1041,7 @@ static void prism2sta_inf_scanresults(struct wlandevice *wlandev,/* Get the number of results, first in bytes, then in results */ nbss = (inf->framelen *sizeof (u16)) -sizeof (inf->infotype) -sizeof (inf->info.scanresult.scanreason); - nbss /=sizeof (hfa384x_ScanResultSub_t); + nbss /=sizeof (struct hfa384x_ScanResultSub );/* Print em */ pr_debug("rx scanresults, reason=%d, nbss=%d:\n",
Signature · 1 line
1.9.1
PATCH 17/87 staging: wlang-ng: avoid new typedef: hfa384x_ScanResult_t
In reply to Sergio ParacuellosThis patch fixes the following checkpatch.pl warning in hfa384x.h:
WARNING: do not add new typedefs
It applies for typedef hfa384x_ScanResult_t
--- drivers/staging/wlan-ng/hfa384x.h | 6 +++--- drivers/staging/wlan-ng/prism2sta.c | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-)
drivers/staging/wlan-ng/hfa384x.h +3 -3
@@ -671,11 +671,11 @@ struct hfa384x_ScanResultSub {u16 proberesp_rate; } __packed; -typedef struct hfa384x_ScanResult { +struct hfa384x_ScanResult {u16 rsvd;u16 scanreason;struct hfa384x_ScanResultSub result[HFA384x_SCANRESULT_MAX]; -} __packed hfa384x_ScanResult_t; +} __packed;/*-- Inquiry Frame, Diagnose: ChInfo Results & Subfields--*/ typedef struct hfa384x_ChInfoResultSub {
@@ -764,7 +764,7 @@ struct hfa384x_ScanResultSub { typedef union hfa384x_infodata { struct hfa384x_CommTallies16 commtallies16; struct hfa384x_CommTallies32 commtallies32; - hfa384x_ScanResult_t scanresult; + struct hfa384x_ScanResult scanresult; hfa384x_ChInfoResult_t chinforesult; hfa384x_HScanResult_t hscanresult; hfa384x_LinkStatus_t linkstatus;
drivers/staging/wlan-ng/prism2sta.c +1 -1
@@ -1033,7 +1033,7 @@ static void prism2sta_inf_scanresults(struct wlandevice *wlandev, {hfa384x_t *hw = wlandev->priv;int nbss; -hfa384x_ScanResult_t *sr = &(inf->info.scanresult); +struct hfa384x_ScanResult *sr = &(inf->info.scanresult);int i;struct hfa384x_JoinRequest_data joinreq;int result;
Signature · 1 line
1.9.1
PATCH 18/87 staging: wlang-ng: avoid new typedef: hfa384x_ChInfoResultSub_t
In reply to Sergio ParacuellosThis patch fixes the following checkpatch.pl warning in hfa384x.h:
WARNING: do not add new typedefs
It applies for typedef hfa384x_ChInfoResultSub_t
--- drivers/staging/wlan-ng/hfa384x.h | 6 +++--- drivers/staging/wlan-ng/prism2sta.c | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-)
drivers/staging/wlan-ng/hfa384x.h +3 -3
@@ -678,19 +678,19 @@ struct hfa384x_ScanResult { } __packed;/*-- Inquiry Frame, Diagnose: ChInfo Results & Subfields--*/ -typedef struct hfa384x_ChInfoResultSub { +struct hfa384x_ChInfoResultSub {u16 chid;u16 anl;u16 pnl;u16 active; -} __packed hfa384x_ChInfoResultSub_t; +} __packed;#define HFA384x_CHINFORESULT_BSSACTIVE BIT(0)#define HFA384x_CHINFORESULT_PCFACTIVE BIT(1)typedef struct hfa384x_ChInfoResult {u16 scanchannels; -hfa384x_ChInfoResultSub_t result[HFA384x_CHINFORESULT_MAX]; +struct hfa384x_ChInfoResultSub result[HFA384x_CHINFORESULT_MAX]; } __packed hfa384x_ChInfoResult_t;/*-- Inquiry Frame, Diagnose: Host Scan Results & Subfields--*/
drivers/staging/wlan-ng/prism2sta.c +2 -2
@@ -1134,8 +1134,8 @@ static void prism2sta_inf_chinforesults(struct wlandevice *wlandev,le16_to_cpu (inf->info.chinforesult.scanchannels);for (i =0 , n =0 ; i < HFA384x_CHINFORESULT_MAX; i++) { -hfa384x_ChInfoResultSub_t *result; -hfa384x_ChInfoResultSub_t *chinforesult; +struct hfa384x_ChInfoResultSub *result; +struct hfa384x_ChInfoResultSub *chinforesult;int chan;if (!(hw->channel_info.results.scanchannels & (1 << i)))
Signature · 1 line
1.9.1
PATCH 19/87 staging: wlang-ng: avoid new typedef: hfa384x_ChInfoResult_t
In reply to Sergio ParacuellosThis patch fixes the following checkpatch.pl warning in hfa384x.h:
WARNING: do not add new typedefs
It applies for typedef hfa384x_ChInfoResult_t
--- drivers/staging/wlan-ng/hfa384x.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
drivers/staging/wlan-ng/hfa384x.h +4 -4
@@ -688,10 +688,10 @@ struct hfa384x_ChInfoResultSub {#define HFA384x_CHINFORESULT_BSSACTIVE BIT(0)#define HFA384x_CHINFORESULT_PCFACTIVE BIT(1) -typedef struct hfa384x_ChInfoResult { +struct hfa384x_ChInfoResult {u16 scanchannels;struct hfa384x_ChInfoResultSub result[HFA384x_CHINFORESULT_MAX]; -} __packed hfa384x_ChInfoResult_t; +} __packed;/*-- Inquiry Frame, Diagnose: Host Scan Results & Subfields--*/ typedef struct hfa384x_HScanResultSub {
@@ -765,7 +765,7 @@ struct hfa384x_ChInfoResultSub {struct hfa384x_CommTallies16 commtallies16;struct hfa384x_CommTallies32 commtallies32;struct hfa384x_ScanResult scanresult; -hfa384x_ChInfoResult_t chinforesult; +struct hfa384x_ChInfoResult chinforesult;hfa384x_HScanResult_t hscanresult;hfa384x_LinkStatus_t linkstatus;hfa384x_AssocStatus_t assocstatus;
@@ -1371,7 +1371,7 @@ struct prism2sta_accesslist {struct {atomic_t done;u8 count; -hfa384x_ChInfoResult_t results; +struct hfa384x_ChInfoResult results; } channel_info;hfa384x_InfFrame_t *scanresults;
Signature · 1 line
1.9.1
PATCH 20/87 staging: wlang-ng: avoid new typedef: hfa384x_HScanResultSub_t
In reply to Sergio ParacuellosThis patch fixes the following checkpatch.pl warning in hfa384x.h:
WARNING: do not add new typedefs
It applies for typedef hfa384x_HScanResultSub_t
--- drivers/staging/wlan-ng/hfa384x.h | 6 +++--- drivers/staging/wlan-ng/prism2mgmt.c | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-)
drivers/staging/wlan-ng/hfa384x.h +3 -3
@@ -694,7 +694,7 @@ struct hfa384x_ChInfoResult { } __packed;/*-- Inquiry Frame, Diagnose: Host Scan Results & Subfields--*/ -typedef struct hfa384x_HScanResultSub { +struct hfa384x_HScanResultSub {u16 chid;u16 anl;u16 sl;
@@ -705,12 +705,12 @@ struct hfa384x_ChInfoResult {u8 supprates[10 ];/* 802.11 info element */ u16 proberesp_rate;u16 atim; -}__packed hfa384x_HScanResultSub_t; +} __packed;typedef struct hfa384x_HScanResult {u16 nresult;u16 rsvd; -hfa384x_HScanResultSub_t result[HFA384x_HSCANRESULT_MAX]; +struct hfa384x_HScanResultSub result[HFA384x_HSCANRESULT_MAX]; } __packed hfa384x_HScanResult_t;/*-- Unsolicited Frame, MAC Mgmt: LinkStatus --*/
drivers/staging/wlan-ng/prism2mgmt.c +1 -1
@@ -371,7 +371,7 @@ int prism2mgmt_scan_results(struct wlandevice *wlandev, void *msgp)int result =0 ;struct p80211msg_dot11req_scan_results *req;hfa384x_t *hw = wlandev->priv; -hfa384x_HScanResultSub_t *item =NULL ; +struct hfa384x_HScanResultSub *item =NULL ;int count;
Signature · 1 line
1.9.1
PATCH 21/87 staging: wlang-ng: avoid new typedef: hfa384x_HScanResult_t
In reply to Sergio ParacuellosThis patch fixes the following checkpatch.pl warning in hfa384x.h:
WARNING: do not add new typedefs
It applies for typedef hfa384x_HScanResult_t
--- drivers/staging/wlan-ng/hfa384x.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/staging/wlan-ng/hfa384x.h +3 -3
@@ -707,11 +707,11 @@ struct hfa384x_HScanResultSub {u16 atim; } __packed; -typedef struct hfa384x_HScanResult { +struct hfa384x_HScanResult {u16 nresult;u16 rsvd;struct hfa384x_HScanResultSub result[HFA384x_HSCANRESULT_MAX]; -} __packed hfa384x_HScanResult_t; +} __packed;/*-- Unsolicited Frame, MAC Mgmt: LinkStatus --*/
@@ -766,7 +766,7 @@ struct hfa384x_HScanResultSub {struct hfa384x_CommTallies32 commtallies32;struct hfa384x_ScanResult scanresult;struct hfa384x_ChInfoResult chinforesult; -hfa384x_HScanResult_t hscanresult; +struct hfa384x_HScanResult hscanresult;hfa384x_LinkStatus_t linkstatus;hfa384x_AssocStatus_t assocstatus;hfa384x_AuthReq_t authreq;
Signature · 1 line
1.9.1
PATCH 22/87 staging: wlang-ng: avoid new typedef: hfa384x_LinkStatus_t
In reply to Sergio ParacuellosThis patch fixes the following checkpatch.pl warning in hfa384x.h:
WARNING: do not add new typedefs
It applies for typedef hfa384x_LinkStatus_t
--- drivers/staging/wlan-ng/hfa384x.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/staging/wlan-ng/hfa384x.h +3 -3
@@ -723,9 +723,9 @@ struct hfa384x_HScanResult {#define HFA384x_LINK_AP_INRANGE ((u16)5)#define HFA384x_LINK_ASSOCFAIL ((u16)6) -typedef struct hfa384x_LinkStatus { +struct hfa384x_LinkStatus {u16 linkstatus; -} __packed hfa384x_LinkStatus_t; +} __packed;/*-- Unsolicited Frame, MAC Mgmt: AssociationStatus (--*/
@@ -767,7 +767,7 @@ struct hfa384x_HScanResult {struct hfa384x_ScanResult scanresult;struct hfa384x_ChInfoResult chinforesult;struct hfa384x_HScanResult hscanresult; -hfa384x_LinkStatus_t linkstatus; +struct hfa384x_LinkStatus linkstatus;hfa384x_AssocStatus_t assocstatus;hfa384x_AuthReq_t authreq;hfa384x_PSUserCount_t psusercnt;
Signature · 1 line
1.9.1
PATCH 23/87 staging: wlang-ng: avoid new typedef: hfa384x_AssocStatus_t
In reply to Sergio ParacuellosThis patch fixes the following checkpatch.pl warning in hfa384x.h:
WARNING: do not add new typedefs
It applies for typedef hfa384x_AssocStatus_t
--- drivers/staging/wlan-ng/hfa384x.h | 6 +++--- drivers/staging/wlan-ng/prism2sta.c | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-)
drivers/staging/wlan-ng/hfa384x.h +3 -3
@@ -733,14 +733,14 @@ struct hfa384x_LinkStatus {#define HFA384x_ASSOCSTATUS_REASSOC ((u16)2)#define HFA384x_ASSOCSTATUS_AUTHFAIL ((u16)5) -typedef struct hfa384x_AssocStatus { +struct hfa384x_AssocStatus {u16 assocstatus;u8 sta_addr[ETH_ALEN ];/* old_ap_addr is only valid if assocstatus == 2 */ u8 old_ap_addr[ETH_ALEN ];u16 reason;u16 reserved; -} __packed hfa384x_AssocStatus_t; +} __packed;/*-- Unsolicited Frame, MAC Mgmt: AuthRequest (AP Only) --*/
@@ -768,7 +768,7 @@ struct hfa384x_LinkStatus {struct hfa384x_ChInfoResult chinforesult;struct hfa384x_HScanResult hscanresult;struct hfa384x_LinkStatus linkstatus; -hfa384x_AssocStatus_t assocstatus; +struct hfa384x_AssocStatus assocstatus;hfa384x_AuthReq_t authreq;hfa384x_PSUserCount_t psusercnt;hfa384x_KeyIDChanged_t keyidchanged;
drivers/staging/wlan-ng/prism2sta.c +1 -1
@@ -1469,7 +1469,7 @@ static void prism2sta_inf_assocstatus(struct wlandevice *wlandev, hfa384x_InfFrame_t *inf) {hfa384x_t *hw = wlandev->priv; -hfa384x_AssocStatus_t rec; +struct hfa384x_AssocStatus rec;int i;memcpy (&rec, &inf->info.assocstatus,sizeof (rec));
Signature · 1 line
1.9.1
PATCH 24/87 staging: wlang-ng: avoid new typedef: hfa384x_AuthReq_t
In reply to Sergio ParacuellosThis patch fixes the following checkpatch.pl warning in hfa384x.h:
WARNING: do not add new typedefs
It applies for typedef hfa384x_AuthReq_t
--- drivers/staging/wlan-ng/hfa384x.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/staging/wlan-ng/hfa384x.h +3 -3
@@ -744,10 +744,10 @@ struct hfa384x_AssocStatus {/*-- Unsolicited Frame, MAC Mgmt: AuthRequest (AP Only) --*/ -typedef struct hfa384x_AuthRequest { +struct hfa384x_AuthRequest {u8 sta_addr[ETH_ALEN ];u16 algorithm; -} __packed hfa384x_AuthReq_t; +} __packed;/*-- Unsolicited Frame, MAC Mgmt: PSUserCount (AP Only) --*/
@@ -769,7 +769,7 @@ struct hfa384x_AssocStatus {struct hfa384x_HScanResult hscanresult;struct hfa384x_LinkStatus linkstatus;struct hfa384x_AssocStatus assocstatus; -hfa384x_AuthReq_t authreq; +struct hfa384x_AuthRequest authreq;hfa384x_PSUserCount_t psusercnt;hfa384x_KeyIDChanged_t keyidchanged; }__packed hfa384x_infodata_t;
Signature · 1 line
1.9.1
PATCH 25/87 staging: wlang-ng: avoid new typedef: hfa384x_PSUserCount_t
In reply to Sergio ParacuellosThis patch fixes the following checkpatch.pl warning in hfa384x.h:
WARNING: do not add new typedefs
It applies for typedef hfa384x_PSUserCount_t
--- drivers/staging/wlan-ng/hfa384x.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/staging/wlan-ng/hfa384x.h +3 -3
@@ -751,9 +751,9 @@ struct hfa384x_AuthRequest {/*-- Unsolicited Frame, MAC Mgmt: PSUserCount (AP Only) --*/ -typedef struct hfa384x_PSUserCount { +struct hfa384x_PSUserCount {u16 usercnt; -} __packed hfa384x_PSUserCount_t; +} __packed; typedef struct hfa384x_KeyIDChanged { u8 sta_addr[ETH_ALEN];
@@ -770,7 +770,7 @@ struct hfa384x_AuthRequest {struct hfa384x_LinkStatus linkstatus;struct hfa384x_AssocStatus assocstatus;struct hfa384x_AuthRequest authreq; -hfa384x_PSUserCount_t psusercnt; +struct hfa384x_PSUserCount psusercnt;hfa384x_KeyIDChanged_t keyidchanged; }__packed hfa384x_infodata_t;
Signature · 1 line
1.9.1
PATCH 26/87 staging: wlang-ng: avoid new typedef: hfa384x_KeyIDChanged_t
In reply to Sergio ParacuellosThis patch fixes the following checkpatch.pl warning in hfa384x.h:
WARNING: do not add new typedefs
It applies for typedef hfa384x_KeyIDChanged_t
--- drivers/staging/wlan-ng/hfa384x.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/staging/wlan-ng/hfa384x.h +3 -3
@@ -755,10 +755,10 @@ struct hfa384x_PSUserCount {u16 usercnt; } __packed; -typedef struct hfa384x_KeyIDChanged { +struct hfa384x_KeyIDChanged {u8 sta_addr[ETH_ALEN ];u16 keyid; -} __packed hfa384x_KeyIDChanged_t; +} __packed;/*-- Collection of all Inf frames ---------------*/ typedef union hfa384x_infodata {
@@ -771,7 +771,7 @@ struct hfa384x_PSUserCount {struct hfa384x_AssocStatus assocstatus;struct hfa384x_AuthRequest authreq;struct hfa384x_PSUserCount psusercnt; -hfa384x_KeyIDChanged_t keyidchanged; +struct hfa384x_KeyIDChanged keyidchanged; }__packed hfa384x_infodata_t; typedef struct hfa384x_InfFrame {
Signature · 1 line
1.9.1
PATCH 27/87 staging: wlang-ng: avoid new typedef: hfa384x_infodata_t
In reply to Sergio ParacuellosThis patch fixes the following checkpatch.pl warning in hfa384x.h:
WARNING: do not add new typedefs
It applies for typedef hfa384x_infodata_t
--- drivers/staging/wlan-ng/hfa384x.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/staging/wlan-ng/hfa384x.h +3 -3
@@ -761,7 +761,7 @@ struct hfa384x_KeyIDChanged { } __packed;/*-- Collection of all Inf frames ---------------*/ -typedef union hfa384x_infodata { +union hfa384x_infodata {struct hfa384x_CommTallies16 commtallies16;struct hfa384x_CommTallies32 commtallies32;struct hfa384x_ScanResult scanresult;
@@ -772,12 +772,12 @@ struct hfa384x_KeyIDChanged {struct hfa384x_AuthRequest authreq;struct hfa384x_PSUserCount psusercnt;struct hfa384x_KeyIDChanged keyidchanged; -}__packed hfa384x_infodata_t; +} __packed;typedef struct hfa384x_InfFrame {u16 framelen;u16 infotype; -hfa384x_infodata_t info; +union hfa384x_infodata info; } __packed hfa384x_InfFrame_t;/*--------------------------------------------------------------------
Signature · 1 line
1.9.1
PATCH 28/87 staging: wlang-ng: avoid new typedef: hfa384x_InfFrame_t
In reply to Sergio ParacuellosThis patch fixes the following checkpatch.pl warning in hfa384x.h:
WARNING: do not add new typedefs
It applies for typedef hfa384x_InfFrame_t
--- drivers/staging/wlan-ng/hfa384x.h | 8 +++--- drivers/staging/wlan-ng/prism2mgmt.h | 2 +- drivers/staging/wlan-ng/prism2sta.c | 48 ++++++++++++++++++------------------ 3 files changed, 29 insertions(+), 29 deletions(-)
drivers/staging/wlan-ng/hfa384x.h +4 -4
@@ -774,11 +774,11 @@ struct hfa384x_KeyIDChanged {struct hfa384x_KeyIDChanged keyidchanged; } __packed; -typedef struct hfa384x_InfFrame { +struct hfa384x_InfFrame {u16 framelen;u16 infotype;union hfa384x_infodata info; -} __packed hfa384x_InfFrame_t; +} __packed;/*-------------------------------------------------------------------- * USB Packet structures and constants.
@@ -862,7 +862,7 @@ struct hfa384x_KeyIDChanged {typedef struct hfa384x_usb_infofrm {u16 type; -hfa384x_InfFrame_t info; +struct hfa384x_InfFrame info; } __packed hfa384x_usb_infofrm_t; typedef struct hfa384x_usb_statusresp {
@@ -1374,7 +1374,7 @@ struct prism2sta_accesslist {struct hfa384x_ChInfoResult results; } channel_info; -hfa384x_InfFrame_t *scanresults; +struct hfa384x_InfFrame *scanresults;struct prism2sta_authlist authlist;/* Authenticated station list. */ unsigned int accessmode;/* Access mode. */
drivers/staging/wlan-ng/prism2mgmt.h +1 -1
@@ -65,7 +65,7 @@u32 prism2sta_ifstate (struct wlandevice *wlandev,u32 ifstate); -void prism2sta_ev_info (struct wlandevice *wlandev,hfa384x_InfFrame_t *inf); +void prism2sta_ev_info (struct wlandevice *wlandev,struct hfa384x_InfFrame *inf);void prism2sta_ev_txexc (struct wlandevice *wlandev,u16 status);void prism2sta_ev_tx (struct wlandevice *wlandev,u16 status);void prism2sta_ev_alloc (struct wlandevice *wlandev);
drivers/staging/wlan-ng/prism2sta.c +24 -24
143 lines not on this page · raw message
Signature · 1 line
1.9.1
PATCH 29/87 staging: wlang-ng: avoid new typedef: hfa384x_usb_txfrm_t
In reply to Sergio ParacuellosThis patch fixes the following checkpatch.pl warning in hfa384x.h:
WARNING: do not add new typedefs
It applies for typedef hfa384x_usb_txfrm_t
--- drivers/staging/wlan-ng/hfa384x.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
drivers/staging/wlan-ng/hfa384x.h +4 -4
@@ -808,10 +808,10 @@ struct hfa384x_InfFrame {/*------------------------------------*/ /* Request (bulk OUT) packet contents */ -typedef struct hfa384x_usb_txfrm { +struct hfa384x_usb_txfrm {struct hfa384x_tx_frame desc;u8 data[WLAN_DATA_MAXLEN ]; -} __packed hfa384x_usb_txfrm_t; +} __packed; typedef struct hfa384x_usb_cmdreq { u16 type;
@@ -905,7 +905,7 @@ struct hfa384x_InfFrame { typedef union hfa384x_usbout { __le16 type; - hfa384x_usb_txfrm_t txfrm; + struct hfa384x_usb_txfrm txfrm; hfa384x_usb_cmdreq_t cmdreq; hfa384x_usb_wridreq_t wridreq; hfa384x_usb_rridreq_t rridreq;
@@ -916,7 +916,7 @@ struct hfa384x_InfFrame { typedef union hfa384x_usbin { __le16 type; hfa384x_usb_rxfrm_t rxfrm; - hfa384x_usb_txfrm_t txfrm; + struct hfa384x_usb_txfrm txfrm; hfa384x_usb_infofrm_t infofrm; hfa384x_usb_cmdresp_t cmdresp; hfa384x_usb_wridresp_t wridresp;
Signature · 1 line
1.9.1
PATCH 30/87 staging: wlang-ng: avoid new typedef: hfa384x_usb_cmdreq_t
In reply to Sergio ParacuellosThis patch fixes the following checkpatch.pl warning in hfa384x.h:
WARNING: do not add new typedefs
It applies for typedef hfa384x_usb_cmdreq_t
--- drivers/staging/wlan-ng/hfa384x.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/staging/wlan-ng/hfa384x.h +3 -3
@@ -813,14 +813,14 @@ struct hfa384x_usb_txfrm {u8 data[WLAN_DATA_MAXLEN ]; } __packed; -typedef struct hfa384x_usb_cmdreq { +struct hfa384x_usb_cmdreq {u16 type;u16 cmd;u16 parm0;u16 parm1;u16 parm2;u8 pad[54 ]; -} __packed hfa384x_usb_cmdreq_t; +} __packed; typedef struct hfa384x_usb_wridreq { u16 type;
@@ -906,7 +906,7 @@ struct hfa384x_usb_txfrm { typedef union hfa384x_usbout { __le16 type; struct hfa384x_usb_txfrm txfrm; - hfa384x_usb_cmdreq_t cmdreq; + struct hfa384x_usb_cmdreq cmdreq; hfa384x_usb_wridreq_t wridreq; hfa384x_usb_rridreq_t rridreq; hfa384x_usb_wmemreq_t wmemreq;
Signature · 1 line
1.9.1
PATCH 31/87 staging: wlang-ng: avoid new typedef: hfa384x_usb_wridreq_t
In reply to Sergio ParacuellosThis patch fixes the following checkpatch.pl warning in hfa384x.h:
WARNING: do not add new typedefs
It applies for typedef hfa384x_usb_wridreq_t
--- drivers/staging/wlan-ng/hfa384x.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/staging/wlan-ng/hfa384x.h +3 -3
@@ -822,12 +822,12 @@ struct hfa384x_usb_cmdreq {u8 pad[54 ]; } __packed; -typedef struct hfa384x_usb_wridreq { +struct hfa384x_usb_wridreq {u16 type;u16 frmlen;u16 rid;u8 data[HFA384x_RIDDATA_MAXLEN]; -} __packed hfa384x_usb_wridreq_t; +} __packed; typedef struct hfa384x_usb_rridreq { u16 type;
@@ -907,7 +907,7 @@ struct hfa384x_usb_cmdreq {__le16 type;struct hfa384x_usb_txfrm txfrm;struct hfa384x_usb_cmdreq cmdreq; -hfa384x_usb_wridreq_t wridreq; +struct hfa384x_usb_wridreq wridreq;hfa384x_usb_rridreq_t rridreq;hfa384x_usb_wmemreq_t wmemreq;hfa384x_usb_rmemreq_t rmemreq;
Signature · 1 line
1.9.1
PATCH 32/87 staging: wlang-ng: avoid new typedef: hfa384x_usb_rridreq_t
In reply to Sergio ParacuellosThis patch fixes the following checkpatch.pl warning in hfa384x.h:
WARNING: do not add new typedefs
It applies for typedef hfa384x_usb_rridreq_t
--- drivers/staging/wlan-ng/hfa384x.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/staging/wlan-ng/hfa384x.h +3 -3
@@ -829,12 +829,12 @@ struct hfa384x_usb_wridreq {u8 data[HFA384x_RIDDATA_MAXLEN]; } __packed; -typedef struct hfa384x_usb_rridreq { +struct hfa384x_usb_rridreq {u16 type;u16 frmlen;u16 rid;u8 pad[58 ]; -} __packed hfa384x_usb_rridreq_t; +} __packed; typedef struct hfa384x_usb_wmemreq { u16 type;
@@ -908,7 +908,7 @@ struct hfa384x_usb_wridreq {struct hfa384x_usb_txfrm txfrm;struct hfa384x_usb_cmdreq cmdreq;struct hfa384x_usb_wridreq wridreq; -hfa384x_usb_rridreq_t rridreq; +struct hfa384x_usb_rridreq rridreq;hfa384x_usb_wmemreq_t wmemreq;hfa384x_usb_rmemreq_t rmemreq; }__packed hfa384x_usbout_t;
Signature · 1 line
1.9.1
PATCH 33/87 staging: wlang-ng: avoid new typedef: hfa384x_usb_wmemreq_t
In reply to Sergio ParacuellosThis patch fixes the following checkpatch.pl warning in hfa384x.h:
WARNING: do not add new typedefs
It applies for typedef hfa384x_usb_wmemreq_t
--- drivers/staging/wlan-ng/hfa384x.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/staging/wlan-ng/hfa384x.h +3 -3
@@ -836,13 +836,13 @@ struct hfa384x_usb_rridreq {u8 pad[58 ]; } __packed; -typedef struct hfa384x_usb_wmemreq { +struct hfa384x_usb_wmemreq {u16 type;u16 frmlen;u16 offset;u16 page;u8 data[HFA384x_USB_RWMEM_MAXLEN]; -} __packed hfa384x_usb_wmemreq_t; +} __packed; typedef struct hfa384x_usb_rmemreq { u16 type;
@@ -909,7 +909,7 @@ struct hfa384x_usb_rridreq {struct hfa384x_usb_cmdreq cmdreq;struct hfa384x_usb_wridreq wridreq;struct hfa384x_usb_rridreq rridreq; -hfa384x_usb_wmemreq_t wmemreq; +struct hfa384x_usb_wmemreq wmemreq;hfa384x_usb_rmemreq_t rmemreq; }__packed hfa384x_usbout_t;
Signature · 1 line
1.9.1
PATCH 34/87 staging: wlang-ng: avoid new typedef: hfa384x_usb_rmemreq_t
In reply to Sergio ParacuellosThis patch fixes the following checkpatch.pl warning in hfa384x.h:
WARNING: do not add new typedefs
It applies for typedef hfa384x_usb_rmemreq_t
--- drivers/staging/wlan-ng/hfa384x.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/staging/wlan-ng/hfa384x.h +3 -3
@@ -844,13 +844,13 @@ struct hfa384x_usb_wmemreq {u8 data[HFA384x_USB_RWMEM_MAXLEN]; } __packed; -typedef struct hfa384x_usb_rmemreq { +struct hfa384x_usb_rmemreq {u16 type;u16 frmlen;u16 offset;u16 page;u8 pad[56 ]; -} __packed hfa384x_usb_rmemreq_t; +} __packed;/*------------------------------------*/ /* Response (bulk IN) packet contents */
@@ -910,7 +910,7 @@ struct hfa384x_usb_wmemreq {struct hfa384x_usb_wridreq wridreq;struct hfa384x_usb_rridreq rridreq;struct hfa384x_usb_wmemreq wmemreq; -hfa384x_usb_rmemreq_t rmemreq; +struct hfa384x_usb_rmemreq rmemreq; }__packed hfa384x_usbout_t; typedef union hfa384x_usbin {
Signature · 1 line
1.9.1
PATCH 35/87 staging: wlang-ng: avoid new typedef: hfa384x_usb_rxfrm_t
In reply to Sergio ParacuellosThis patch fixes the following checkpatch.pl warning in hfa384x.h:
WARNING: do not add new typedefs
It applies for typedef hfa384x_usb_rxfrm_t
--- drivers/staging/wlan-ng/hfa384x.h | 6 +++--- drivers/staging/wlan-ng/hfa384x_usb.c | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-)
drivers/staging/wlan-ng/hfa384x.h +3 -3
@@ -855,10 +855,10 @@ struct hfa384x_usb_rmemreq {/*------------------------------------*/ /* Response (bulk IN) packet contents */ -typedef struct hfa384x_usb_rxfrm { +struct hfa384x_usb_rxfrm {struct hfa384x_rx_frame desc;u8 data[WLAN_DATA_MAXLEN ]; -} __packed hfa384x_usb_rxfrm_t; +} __packed; typedef struct hfa384x_usb_infofrm { u16 type;
@@ -915,7 +915,7 @@ struct hfa384x_usb_rmemreq { typedef union hfa384x_usbin { __le16 type; - hfa384x_usb_rxfrm_t rxfrm; + struct hfa384x_usb_rxfrm rxfrm; struct hfa384x_usb_txfrm txfrm; hfa384x_usb_infofrm_t infofrm; hfa384x_usb_cmdresp_t cmdresp;
drivers/staging/wlan-ng/hfa384x_usb.c +2 -2
@@ -154,7 +154,7 @@ enum cmd_mode {#endif static void -hfa384x_int_rxmonitor (struct wlandevice *wlandev,hfa384x_usb_rxfrm_t *rxfrm); +hfa384x_int_rxmonitor (struct wlandevice *wlandev,struct hfa384x_usb_rxfrm *rxfrm);static void hfa384x_usb_defer (struct work_struct *data);
@@ -3417,7 +3417,7 @@ static void hfa384x_usbin_rx(struct wlandevice *wlandev, struct sk_buff *skb)* interrupt ----------------------------------------------------------------*/ static void hfa384x_int_rxmonitor (struct wlandevice *wlandev, -hfa384x_usb_rxfrm_t *rxfrm) +struct hfa384x_usb_rxfrm *rxfrm) {struct hfa384x_rx_frame *rxdesc = &(rxfrm->desc);unsigned int hdrlen =0 ;
Signature · 1 line
1.9.1
PATCH 36/87 staging: wlang-ng: avoid new typedef: hfa384x_usb_infofrm_t
In reply to Sergio ParacuellosThis patch fixes the following checkpatch.pl warning in hfa384x.h:
WARNING: do not add new typedefs
It applies for typedef hfa384x_usb_infofrm_t
--- drivers/staging/wlan-ng/hfa384x.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/staging/wlan-ng/hfa384x.h +3 -3
@@ -860,10 +860,10 @@ struct hfa384x_usb_rxfrm {u8 data[WLAN_DATA_MAXLEN ]; } __packed; -typedef struct hfa384x_usb_infofrm { +struct hfa384x_usb_infofrm {u16 type;struct hfa384x_InfFrame info; -} __packed hfa384x_usb_infofrm_t; +} __packed; typedef struct hfa384x_usb_statusresp { u16 type;
@@ -917,7 +917,7 @@ struct hfa384x_usb_rxfrm {__le16 type;struct hfa384x_usb_rxfrm rxfrm;struct hfa384x_usb_txfrm txfrm; -hfa384x_usb_infofrm_t infofrm; +struct hfa384x_usb_infofrm infofrm;hfa384x_usb_cmdresp_t cmdresp;hfa384x_usb_wridresp_t wridresp;hfa384x_usb_rridresp_t rridresp;
Signature · 1 line
1.9.1
PATCH 37/87 staging: wlang-ng: avoid new typedef: hfa384x_usb_cmdresp_t
In reply to Sergio ParacuellosThis patch fixes the following checkpatch.pl warning in hfa384x.h:
WARNING: do not add new typedefs
It applies for typedef hfa384x_usb_cmdresp_t
--- drivers/staging/wlan-ng/hfa384x.h | 10 +++++----- drivers/staging/wlan-ng/hfa384x_usb.c | 8 ++++---- 2 files changed, 9 insertions(+), 9 deletions(-)
drivers/staging/wlan-ng/hfa384x.h +5 -5
@@ -865,15 +865,15 @@ struct hfa384x_usb_infofrm {struct hfa384x_InfFrame info; } __packed; -typedef struct hfa384x_usb_statusresp { +struct hfa384x_usb_statusresp {u16 type;u16 status;u16 resp0;u16 resp1;u16 resp2; -} __packed hfa384x_usb_cmdresp_t; +} __packed; -typedef hfa384x_usb_cmdresp_t hfa384x_usb_wridresp_t ; +typedef struct hfa384x_usb_statusresp hfa384x_usb_wridresp_t ; typedef struct hfa384x_usb_rridresp { u16 type;
@@ -882,7 +882,7 @@ struct hfa384x_usb_infofrm {u8 data[HFA384x_RIDDATA_MAXLEN]; }__packed hfa384x_usb_rridresp_t; -typedef hfa384x_usb_cmdresp_t hfa384x_usb_wmemresp_t ; +typedef struct hfa384x_usb_statusresp hfa384x_usb_wmemresp_t ; typedef struct hfa384x_usb_rmemresp { u16 type;
@@ -918,7 +918,7 @@ struct hfa384x_usb_infofrm {struct hfa384x_usb_rxfrm rxfrm;struct hfa384x_usb_txfrm txfrm;struct hfa384x_usb_infofrm infofrm; -hfa384x_usb_cmdresp_t cmdresp; +struct hfa384x_usb_statusresp cmdresp;hfa384x_usb_wridresp_t wridresp;hfa384x_usb_rridresp_t rridresp;hfa384x_usb_wmemresp_t wmemresp;
drivers/staging/wlan-ng/hfa384x_usb.c +4 -4
@@ -212,7 +212,7 @@ struct usbctlx_completor {static void hfa384x_cb_status (hfa384x_t *hw,const hfa384x_usbctlx_t *ctlx);static int -usbctlx_get_status (const hfa384x_usb_cmdresp_t *cmdresp, +usbctlx_get_status (const struct hfa384x_usb_statusresp *cmdresp,hfa384x_cmdresult_t *result); static void
@@ -621,7 +621,7 @@ static hfa384x_usbctlx_t *usbctlx_alloc(void) }static int -usbctlx_get_status (const hfa384x_usb_cmdresp_t *cmdresp, +usbctlx_get_status (const struct hfa384x_usb_statusresp *cmdresp,hfa384x_cmdresult_t *result) { result->status =le16_to_cpu (cmdresp->status);
@@ -652,7 +652,7 @@ static hfa384x_usbctlx_t *usbctlx_alloc(void)struct usbctlx_cmd_completor {struct usbctlx_completor head; -const hfa384x_usb_cmdresp_t *cmdresp; +const struct hfa384x_usb_statusresp *cmdresp;hfa384x_cmdresult_t *result; };
@@ -667,7 +667,7 @@ static inline int usbctlx_cmd_completor_fn(struct usbctlx_completor *head)static inline struct usbctlx_completor *init_cmd_completor (struct usbctlx_cmd_completor *completor, -const hfa384x_usb_cmdresp_t +const struct hfa384x_usb_statusresp *cmdresp,hfa384x_cmdresult_t *result) {
Signature · 1 line
1.9.1
PATCH 38/87 staging: wlang-ng: avoid new typedef: hfa384x_usb_wridresp_t
In reply to Sergio ParacuellosThis patch fixes the following checkpatch.pl warning in hfa384x.h:
WARNING: do not add new typedefs
It applies for typedef hfa384x_usb_wridresp_t
--- drivers/staging/wlan-ng/hfa384x.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
drivers/staging/wlan-ng/hfa384x.h +1 -3
@@ -873,8 +873,6 @@ struct hfa384x_usb_statusresp {u16 resp2; } __packed; -typedef struct hfa384x_usb_statusresp hfa384x_usb_wridresp_t ; - typedef struct hfa384x_usb_rridresp { u16 type; u16 frmlen;
@@ -919,7 +917,7 @@ struct hfa384x_usb_statusresp {struct hfa384x_usb_txfrm txfrm;struct hfa384x_usb_infofrm infofrm;struct hfa384x_usb_statusresp cmdresp; -hfa384x_usb_wridresp_t wridresp; +struct hfa384x_usb_statusresp wridresp;hfa384x_usb_rridresp_t rridresp;hfa384x_usb_wmemresp_t wmemresp;hfa384x_usb_rmemresp_t rmemresp;
Signature · 1 line
1.9.1
PATCH 39/87 staging: wlang-ng: avoid new typedef: hfa384x_usb_rridresp_t
In reply to Sergio ParacuellosThis patch fixes the following checkpatch.pl warning in hfa384x.h:
WARNING: do not add new typedefs
It applies for typedef hfa384x_usb_rridresp_t
--- drivers/staging/wlan-ng/hfa384x.h | 6 +++--- drivers/staging/wlan-ng/hfa384x_usb.c | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-)
drivers/staging/wlan-ng/hfa384x.h +3 -3
@@ -873,12 +873,12 @@ struct hfa384x_usb_statusresp {u16 resp2; } __packed; -typedef struct hfa384x_usb_rridresp { +struct hfa384x_usb_rridresp {u16 type;u16 frmlen;u16 rid;u8 data[HFA384x_RIDDATA_MAXLEN]; -} __packed hfa384x_usb_rridresp_t; +} __packed;typedef struct hfa384x_usb_statusresp hfa384x_usb_wmemresp_t ;
@@ -918,7 +918,7 @@ struct hfa384x_usb_statusresp {struct hfa384x_usb_infofrm infofrm;struct hfa384x_usb_statusresp cmdresp;struct hfa384x_usb_statusresp wridresp; -hfa384x_usb_rridresp_t rridresp; +struct hfa384x_usb_rridresp rridresp;hfa384x_usb_wmemresp_t wmemresp;hfa384x_usb_rmemresp_t rmemresp;hfa384x_usb_bufavail_t bufavail;
drivers/staging/wlan-ng/hfa384x_usb.c +4 -4
@@ -216,7 +216,7 @@ struct usbctlx_completor { hfa384x_cmdresult_t *result);static void -usbctlx_get_rridresult (const hfa384x_usb_rridresp_t *rridresp, +usbctlx_get_rridresult (const struct hfa384x_usb_rridresp *rridresp,hfa384x_rridresult_t *result);/*---------------------------------------------------*/
@@ -636,7 +636,7 @@ static hfa384x_usbctlx_t *usbctlx_alloc(void) }static void -usbctlx_get_rridresult (const hfa384x_usb_rridresp_t *rridresp, +usbctlx_get_rridresult (const struct hfa384x_usb_rridresp *rridresp,hfa384x_rridresult_t *result) { result->rid =le16_to_cpu (rridresp->rid);
@@ -685,7 +685,7 @@ static inline struct usbctlx_completor *init_cmd_completor(struct usbctlx_rrid_completor {struct usbctlx_completor head; -const hfa384x_usb_rridresp_t *rridresp; +const struct hfa384x_usb_rridresp *rridresp;void *riddata;unsigned int riddatalen; };
@@ -713,7 +713,7 @@ static int usbctlx_rrid_completor_fn(struct usbctlx_completor *head)static inline struct usbctlx_completor *init_rrid_completor (struct usbctlx_rrid_completor *completor, -const hfa384x_usb_rridresp_t +const struct hfa384x_usb_rridresp *rridresp,void *riddata,unsigned int riddatalen)
Signature · 1 line
1.9.1
PATCH 40/87 staging: wlang-ng: avoid new typedef: hfa384x_usb_wmemresp_t
In reply to Sergio ParacuellosThis patch fixes the following checkpatch.pl warning in hfa384x.h:
WARNING: do not add new typedefs
It applies for typedef hfa384x_usb_wmemresp_t
--- drivers/staging/wlan-ng/hfa384x.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
drivers/staging/wlan-ng/hfa384x.h +1 -3
@@ -880,8 +880,6 @@ struct hfa384x_usb_rridresp {u8 data[HFA384x_RIDDATA_MAXLEN]; } __packed; -typedef struct hfa384x_usb_statusresp hfa384x_usb_wmemresp_t ; - typedef struct hfa384x_usb_rmemresp { u16 type; u16 frmlen;
@@ -919,7 +917,7 @@ struct hfa384x_usb_rridresp {struct hfa384x_usb_statusresp cmdresp;struct hfa384x_usb_statusresp wridresp;struct hfa384x_usb_rridresp rridresp; -hfa384x_usb_wmemresp_t wmemresp; +struct hfa384x_usb_statusresp wmemresp;hfa384x_usb_rmemresp_t rmemresp;hfa384x_usb_bufavail_t bufavail;hfa384x_usb_error_t usberror;
Signature · 1 line
1.9.1
PATCH 41/87 staging: wlang-ng: avoid new typedef: hfa384x_usb_rmemresp_t
In reply to Sergio ParacuellosThis patch fixes the following checkpatch.pl warning in hfa384x.h:
WARNING: do not add new typedefs
It applies for typedef hfa384x_usb_rmemresp_t
--- drivers/staging/wlan-ng/hfa384x.h | 6 +++--- drivers/staging/wlan-ng/hfa384x_usb.c | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-)
drivers/staging/wlan-ng/hfa384x.h +3 -3
@@ -880,11 +880,11 @@ struct hfa384x_usb_rridresp {u8 data[HFA384x_RIDDATA_MAXLEN]; } __packed; -typedef struct hfa384x_usb_rmemresp { +struct hfa384x_usb_rmemresp {u16 type;u16 frmlen;u8 data[HFA384x_USB_RWMEM_MAXLEN]; -} __packed hfa384x_usb_rmemresp_t; +} __packed; typedef struct hfa384x_usb_bufavail { u16 type;
@@ -918,7 +918,7 @@ struct hfa384x_usb_rridresp {struct hfa384x_usb_statusresp wridresp;struct hfa384x_usb_rridresp rridresp;struct hfa384x_usb_statusresp wmemresp; -hfa384x_usb_rmemresp_t rmemresp; +struct hfa384x_usb_rmemresp rmemresp;hfa384x_usb_bufavail_t bufavail;hfa384x_usb_error_t usberror;u8 boguspad[3000 ];
drivers/staging/wlan-ng/hfa384x_usb.c +2 -2
@@ -744,7 +744,7 @@ static inline struct usbctlx_completor *init_rrid_completor(struct usbctlx_rmem_completor {struct usbctlx_completor head; -const hfa384x_usb_rmemresp_t *rmemresp; +const struct hfa384x_usb_rmemresp *rmemresp;void *data;unsigned int len; };
@@ -762,7 +762,7 @@ static int usbctlx_rmem_completor_fn(struct usbctlx_completor *head)static inline struct usbctlx_completor *init_rmem_completor (struct usbctlx_rmem_completor *completor, -hfa384x_usb_rmemresp_t +struct hfa384x_usb_rmemresp *rmemresp,void *data,unsigned int len)
Signature · 1 line
1.9.1
PATCH 42/87 staging: wlang-ng: avoid new typedef: hfa384x_usb_bufavail_t
In reply to Sergio ParacuellosThis patch fixes the following checkpatch.pl warning in hfa384x.h:
WARNING: do not add new typedefs
It applies for typedef hfa384x_usb_bufavail_t
--- drivers/staging/wlan-ng/hfa384x.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/staging/wlan-ng/hfa384x.h +3 -3
@@ -886,10 +886,10 @@ struct hfa384x_usb_rmemresp {u8 data[HFA384x_USB_RWMEM_MAXLEN]; } __packed; -typedef struct hfa384x_usb_bufavail { +struct hfa384x_usb_bufavail {u16 type;u16 frmlen; -} __packed hfa384x_usb_bufavail_t; +} __packed; typedef struct hfa384x_usb_error { u16 type;
@@ -919,7 +919,7 @@ struct hfa384x_usb_rmemresp {struct hfa384x_usb_rridresp rridresp;struct hfa384x_usb_statusresp wmemresp;struct hfa384x_usb_rmemresp rmemresp; -hfa384x_usb_bufavail_t bufavail; +struct hfa384x_usb_bufavail bufavail;hfa384x_usb_error_t usberror;u8 boguspad[3000 ]; }__packed hfa384x_usbin_t;
Signature · 1 line
1.9.1
PATCH 43/87 staging: wlang-ng: avoid new typedef: hfa384x_usb_error_t
In reply to Sergio ParacuellosThis patch fixes the following checkpatch.pl warning in hfa384x.h:
WARNING: do not add new typedefs
It applies for typedef hfa384x_usb_error_t
--- drivers/staging/wlan-ng/hfa384x.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/staging/wlan-ng/hfa384x.h +3 -3
@@ -891,10 +891,10 @@ struct hfa384x_usb_bufavail {u16 frmlen; } __packed; -typedef struct hfa384x_usb_error { +struct hfa384x_usb_error {u16 type;u16 errortype; -} __packed hfa384x_usb_error_t; +} __packed;/*----------------------------------------------------------*/ /* Unions for packaging all the known packet types together */
@@ -920,7 +920,7 @@ struct hfa384x_usb_bufavail {struct hfa384x_usb_statusresp wmemresp;struct hfa384x_usb_rmemresp rmemresp;struct hfa384x_usb_bufavail bufavail; -hfa384x_usb_error_t usberror; +struct hfa384x_usb_error usberror;u8 boguspad[3000 ]; }__packed hfa384x_usbin_t;
Signature · 1 line
1.9.1
PATCH 44/87 staging: wlang-ng: avoid new typedef: hfa384x_usbout_t
In reply to Sergio ParacuellosThis patch fixes the following checkpatch.pl warning in hfa384x.h:
WARNING: do not add new typedefs
It applies for typedef hfa384x_usbout_t
--- drivers/staging/wlan-ng/hfa384x.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
drivers/staging/wlan-ng/hfa384x.h +4 -4
@@ -899,7 +899,7 @@ struct hfa384x_usb_error {/*----------------------------------------------------------*/ /* Unions for packaging all the known packet types together */ -typedef union hfa384x_usbout { +union hfa384x_usbout {__le16 type;struct hfa384x_usb_txfrm txfrm;struct hfa384x_usb_cmdreq cmdreq;
@@ -907,7 +907,7 @@ struct hfa384x_usb_error {struct hfa384x_usb_rridreq rridreq;struct hfa384x_usb_wmemreq wmemreq;struct hfa384x_usb_rmemreq rmemreq; -}__packed hfa384x_usbout_t; +} __packed; typedef union hfa384x_usbin { __le16 type;
@@ -1183,7 +1183,7 @@ typedef void (*ctlx_usercb_t) (struct hfa384x *hw,struct list_head list;size_t outbufsize; -hfa384x_usbout_t outbuf;/* pkt buf for OUT */ +union hfa384x_usbout outbuf;/* pkt buf for OUT */ hfa384x_usbin_t inbuf;/* pkt buf for IN(a copy) */ CTLX_STATE state;/* Tracks running state */
@@ -1248,7 +1248,7 @@ struct prism2sta_accesslist {struct sk_buff *rx_urb_skb;struct urb tx_urb;struct urb ctlx_urb; -hfa384x_usbout_t txbuff; +union hfa384x_usbout txbuff;hfa384x_usbctlxq_t ctlxq;struct timer_list reqtimer;struct timer_list resptimer;
Signature · 1 line
1.9.1
PATCH 45/87 staging: wlang-ng: avoid new typedef: hfa384x_usbin_t
In reply to Sergio ParacuellosThis patch fixes the following checkpatch.pl warning in hfa384x.h:
WARNING: do not add new typedefs
It applies for typedef hfa384x_usbin_t
--- drivers/staging/wlan-ng/hfa384x.h | 6 +++--- drivers/staging/wlan-ng/hfa384x_usb.c | 21 +++++++++++---------- 2 files changed, 14 insertions(+), 13 deletions(-)
drivers/staging/wlan-ng/hfa384x.h +3 -3
@@ -909,7 +909,7 @@ struct hfa384x_usb_error {struct hfa384x_usb_rmemreq rmemreq; } __packed; -typedef union hfa384x_usbin { +union hfa384x_usbin {__le16 type;struct hfa384x_usb_rxfrm rxfrm;struct hfa384x_usb_txfrm txfrm;
@@ -922,7 +922,7 @@ struct hfa384x_usb_error {struct hfa384x_usb_bufavail bufavail;struct hfa384x_usb_error usberror;u8 boguspad[3000 ]; -}__packed hfa384x_usbin_t; +} __packed;/*-------------------------------------------------------------------- * PD record structures.
@@ -1184,7 +1184,7 @@ typedef void (*ctlx_usercb_t) (struct hfa384x *hw,size_t outbufsize;union hfa384x_usbout outbuf;/* pkt buf for OUT */ -hfa384x_usbin_t inbuf;/* pkt buf for IN(a copy) */ +union hfa384x_usbin inbuf;/* pkt buf for IN(a copy) */ CTLX_STATE state;/* Tracks running state */
drivers/staging/wlan-ng/hfa384x_usb.c +11 -10
@@ -169,13 +169,13 @@ enum cmd_mode {static void hfa384x_usbin_callback (struct urb *urb);static void -hfa384x_usbin_txcompl (struct wlandevice *wlandev,hfa384x_usbin_t *usbin); +hfa384x_usbin_txcompl (struct wlandevice *wlandev,union hfa384x_usbin *usbin);static void hfa384x_usbin_rx (struct wlandevice *wlandev,struct sk_buff *skb); -static void hfa384x_usbin_info (struct wlandevice *wlandev,hfa384x_usbin_t *usbin); +static void hfa384x_usbin_info (struct wlandevice *wlandev,union hfa384x_usbin *usbin); -static void hfa384x_usbin_ctlx (hfa384x_t *hw,hfa384x_usbin_t *usbin, +static void hfa384x_usbin_ctlx (hfa384x_t *hw,union hfa384x_usbin *usbin,int urb_status);/*---------------------------------------------------*/
@@ -327,7 +327,7 @@ static int submit_rx_urb(hfa384x_t *hw, gfp_t memflags)struct sk_buff *skb;int result; - skb =dev_alloc_skb (sizeof (hfa384x_usbin_t)); + skb =dev_alloc_skb (sizeof (union hfa384x_usbin ));if (!skb) { result = -ENOMEM ; goto done;
@@ -336,7 +336,7 @@ static int submit_rx_urb(hfa384x_t *hw, gfp_t memflags)/* Post the IN urb */ usb_fill_bulk_urb (&hw->rx_urb, hw->usb, hw->endp_in, - skb->data,sizeof (hfa384x_usbin_t), + skb->data,sizeof (union hfa384x_usbin ), hfa384x_usbin_callback, hw->wlandev); hw->rx_urb_skb = skb;
@@ -2990,7 +2990,7 @@ static void hfa384x_usbin_callback(struct urb *urb) {struct wlandevice *wlandev = urb->context;hfa384x_t *hw; -hfa384x_usbin_t *usbin = (hfa384x_usbin_t *)urb->transfer_buffer; +union hfa384x_usbin *usbin = (union hfa384x_usbin *)urb->transfer_buffer;struct sk_buff *skb =NULL ;int result;int urb_status;
@@ -3166,7 +3166,7 @@ static void hfa384x_usbin_callback(struct urb *urb)* Call context: * interrupt ----------------------------------------------------------------*/ -static void hfa384x_usbin_ctlx (hfa384x_t *hw,hfa384x_usbin_t *usbin, +static void hfa384x_usbin_ctlx (hfa384x_t *hw,union hfa384x_usbin *usbin,int urb_status) {hfa384x_usbctlx_t *ctlx;
@@ -3286,7 +3286,7 @@ static void hfa384x_usbin_ctlx(hfa384x_t *hw, hfa384x_usbin_t *usbin,* interrupt ----------------------------------------------------------------*/ static void hfa384x_usbin_txcompl (struct wlandevice *wlandev, -hfa384x_usbin_t *usbin) +union hfa384x_usbin *usbin) {u16 status;
@@ -3318,7 +3318,7 @@ static void hfa384x_usbin_txcompl(struct wlandevice *wlandev,----------------------------------------------------------------*/ static void hfa384x_usbin_rx (struct wlandevice *wlandev,struct sk_buff *skb) { -hfa384x_usbin_t *usbin = (hfa384x_usbin_t *)skb->data; +union hfa384x_usbin *usbin = (union hfa384x_usbin *)skb->data;hfa384x_t *hw = wlandev->priv;int hdrlen;struct p80211_rxmeta *rxmeta;
@@ -3517,7 +3517,8 @@ static void hfa384x_int_rxmonitor(struct wlandevice *wlandev,* Call context: * interrupt ----------------------------------------------------------------*/ -static void hfa384x_usbin_info (struct wlandevice *wlandev,hfa384x_usbin_t *usbin) +static void hfa384x_usbin_info (struct wlandevice *wlandev, +union hfa384x_usbin *usbin) { usbin->infofrm.info.framelen =le16_to_cpu (usbin->infofrm.info.framelen);
Signature · 1 line
1.9.1
PATCH 46/87 staging: wlang-ng: avoid new typedef: hfa384x_pdr_pcb_partnum_t
In reply to Sergio ParacuellosThis patch fixes the following checkpatch.pl warning in hfa384x.h:
WARNING: do not add new typedefs
It applies for typedef hfa384x_pdr_pcb_partnum_t
--- drivers/staging/wlan-ng/hfa384x.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/staging/wlan-ng/hfa384x.h +3 -3
@@ -929,9 +929,9 @@ struct hfa384x_usb_error {*-------------------------------------------------------------------- */ -typedef struct hfa384x_pdr_pcb_partnum { +struct hfa384x_pdr_pcb_partnum {u8 num[8 ]; -} __packed hfa384x_pdr_pcb_partnum_t; +} __packed; typedef struct hfa384x_pdr_pcb_tracenum { u8 num[8];
@@ -1094,7 +1094,7 @@ struct hfa384x_usb_error {u16 len;/* in words */ u16 code;union pdr { -hfa384x_pdr_pcb_partnum_t pcb_partnum; +struct hfa384x_pdr_pcb_partnum pcb_partnum;hfa384x_pdr_pcb_tracenum_t pcb_tracenum;hfa384x_pdr_nic_serial_t nic_serial;hfa384x_pdr_mkk_measurements_t mkk_measurements;
Signature · 1 line
1.9.1
PATCH 47/87 staging: wlang-ng: avoid new typedef: hfa384x_pdr_pcb_tracenum_t
In reply to Sergio ParacuellosThis patch fixes the following checkpatch.pl warning in hfa384x.h:
WARNING: do not add new typedefs
It applies for typedef hfa384x_pdr_pcb_tracenum_t
--- drivers/staging/wlan-ng/hfa384x.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/staging/wlan-ng/hfa384x.h +3 -3
@@ -933,9 +933,9 @@ struct hfa384x_pdr_pcb_partnum {u8 num[8 ]; } __packed; -typedef struct hfa384x_pdr_pcb_tracenum { +struct hfa384x_pdr_pcb_tracenum {u8 num[8 ]; -} __packed hfa384x_pdr_pcb_tracenum_t; +} __packed; typedef struct hfa384x_pdr_nic_serial { u8 num[12];
@@ -1095,7 +1095,7 @@ struct hfa384x_pdr_pcb_partnum {u16 code;union pdr {struct hfa384x_pdr_pcb_partnum pcb_partnum; -hfa384x_pdr_pcb_tracenum_t pcb_tracenum; +struct hfa384x_pdr_pcb_tracenum pcb_tracenum;hfa384x_pdr_nic_serial_t nic_serial;hfa384x_pdr_mkk_measurements_t mkk_measurements;hfa384x_pdr_nic_ramsize_t nic_ramsize;
Signature · 1 line
1.9.1
PATCH 48/87 staging: wlang-ng: avoid new typedef: hfa384x_pdr_nic_serial_t
In reply to Sergio ParacuellosThis patch fixes the following checkpatch.pl warning in hfa384x.h:
WARNING: do not add new typedefs
It applies for typedef hfa384x_pdr_nic_serial_t
--- drivers/staging/wlan-ng/hfa384x.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/staging/wlan-ng/hfa384x.h +3 -3
@@ -937,9 +937,9 @@ struct hfa384x_pdr_pcb_tracenum {u8 num[8 ]; } __packed; -typedef struct hfa384x_pdr_nic_serial { +struct hfa384x_pdr_nic_serial {u8 num[12 ]; -} __packed hfa384x_pdr_nic_serial_t; +} __packed; typedef struct hfa384x_pdr_mkk_measurements { double carrier_freq;
@@ -1096,7 +1096,7 @@ struct hfa384x_pdr_pcb_tracenum {union pdr {struct hfa384x_pdr_pcb_partnum pcb_partnum;struct hfa384x_pdr_pcb_tracenum pcb_tracenum; -hfa384x_pdr_nic_serial_t nic_serial; +struct hfa384x_pdr_nic_serial nic_serial;hfa384x_pdr_mkk_measurements_t mkk_measurements;hfa384x_pdr_nic_ramsize_t nic_ramsize;hfa384x_pdr_mfisuprange_t mfisuprange;
Signature · 1 line
1.9.1
PATCH 49/87 staging: wlang-ng: avoid new typedef: hfa384x_pdr_mkk_measurements_t
In reply to Sergio ParacuellosThis patch fixes the following checkpatch.pl warning in hfa384x.h:
WARNING: do not add new typedefs
It applies for typedef hfa384x_pdr_mkk_measurements_t
--- drivers/staging/wlan-ng/hfa384x.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/staging/wlan-ng/hfa384x.h +3 -3
@@ -941,7 +941,7 @@ struct hfa384x_pdr_nic_serial {u8 num[12 ]; } __packed; -typedef struct hfa384x_pdr_mkk_measurements { +struct hfa384x_pdr_mkk_measurements {double carrier_freq;double occupied_band;double power_density;
@@ -957,7 +957,7 @@ struct hfa384x_pdr_nic_serial {double rx_spur_f2;double rx_spur_l1;double rx_spur_l2; -}__packed hfa384x_pdr_mkk_measurements_t; +} __packed; typedef struct hfa384x_pdr_nic_ramsize { u8 size[12]; /* units of KB */
@@ -1097,7 +1097,7 @@ struct hfa384x_pdr_nic_serial {struct hfa384x_pdr_pcb_partnum pcb_partnum;struct hfa384x_pdr_pcb_tracenum pcb_tracenum;struct hfa384x_pdr_nic_serial nic_serial; -hfa384x_pdr_mkk_measurements_t mkk_measurements; +struct hfa384x_pdr_mkk_measurements mkk_measurements;hfa384x_pdr_nic_ramsize_t nic_ramsize;hfa384x_pdr_mfisuprange_t mfisuprange;hfa384x_pdr_cfisuprange_t cfisuprange;
Signature · 1 line
1.9.1
PATCH 50/87 staging: wlang-ng: avoid new typedef: hfa384x_pdr_nic_ramsize_t
In reply to Sergio ParacuellosThis patch fixes the following checkpatch.pl warning in hfa384x.h:
WARNING: do not add new typedefs
It applies for typedef hfa384x_pdr_nic_ramsize_t
--- drivers/staging/wlan-ng/hfa384x.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/staging/wlan-ng/hfa384x.h +3 -3
@@ -959,9 +959,9 @@ struct hfa384x_pdr_mkk_measurements {double rx_spur_l2; } __packed; -typedef struct hfa384x_pdr_nic_ramsize { +struct hfa384x_pdr_nic_ramsize {u8 size[12 ];/* units of KB */ -} __packed hfa384x_pdr_nic_ramsize_t; +} __packed; typedef struct hfa384x_pdr_mfisuprange { u16 id;
@@ -1098,7 +1098,7 @@ struct hfa384x_pdr_mkk_measurements {struct hfa384x_pdr_pcb_tracenum pcb_tracenum;struct hfa384x_pdr_nic_serial nic_serial;struct hfa384x_pdr_mkk_measurements mkk_measurements; -hfa384x_pdr_nic_ramsize_t nic_ramsize; +struct hfa384x_pdr_nic_ramsize nic_ramsize;hfa384x_pdr_mfisuprange_t mfisuprange;hfa384x_pdr_cfisuprange_t cfisuprange;hfa384x_pdr_nicid_t nicid;
Signature · 1 line
1.9.1
PATCH 51/87 staging: wlang-ng: avoid new typedef: hfa384x_pdr_mfisuprange_t
In reply to Sergio ParacuellosThis patch fixes the following checkpatch.pl warning in hfa384x.h:
WARNING: do not add new typedefs
It applies for typedef hfa384x_pdr_mfisuprange_t
--- drivers/staging/wlan-ng/hfa384x.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/staging/wlan-ng/hfa384x.h +3 -3
@@ -963,12 +963,12 @@ struct hfa384x_pdr_nic_ramsize {u8 size[12 ];/* units of KB */ } __packed; -typedef struct hfa384x_pdr_mfisuprange { +struct hfa384x_pdr_mfisuprange {u16 id;u16 variant;u16 bottom;u16 top; -} __packed hfa384x_pdr_mfisuprange_t; +} __packed; typedef struct hfa384x_pdr_cfisuprange { u16 id;
@@ -1099,7 +1099,7 @@ struct hfa384x_pdr_nic_ramsize {struct hfa384x_pdr_nic_serial nic_serial;struct hfa384x_pdr_mkk_measurements mkk_measurements;struct hfa384x_pdr_nic_ramsize nic_ramsize; -hfa384x_pdr_mfisuprange_t mfisuprange; +struct hfa384x_pdr_mfisuprange mfisuprange;hfa384x_pdr_cfisuprange_t cfisuprange;hfa384x_pdr_nicid_t nicid;hfa384x_pdr_refdac_measurements_t refdac_measurements;
Signature · 1 line
1.9.1
PATCH 52/87 staging: wlang-ng: avoid new typedef: hfa384x_pdr_cfisuprange_t
In reply to Sergio ParacuellosThis patch fixes the following checkpatch.pl warning in hfa384x.h:
WARNING: do not add new typedefs
It applies for typedef hfa384x_pdr_cfisuprange_t
--- drivers/staging/wlan-ng/hfa384x.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/staging/wlan-ng/hfa384x.h +3 -3
@@ -970,12 +970,12 @@ struct hfa384x_pdr_mfisuprange {u16 top; } __packed; -typedef struct hfa384x_pdr_cfisuprange { +struct hfa384x_pdr_cfisuprange {u16 id;u16 variant;u16 bottom;u16 top; -} __packed hfa384x_pdr_cfisuprange_t; +} __packed; typedef struct hfa384x_pdr_nicid { u16 id;
@@ -1100,7 +1100,7 @@ struct hfa384x_pdr_mfisuprange {struct hfa384x_pdr_mkk_measurements mkk_measurements;struct hfa384x_pdr_nic_ramsize nic_ramsize;struct hfa384x_pdr_mfisuprange mfisuprange; -hfa384x_pdr_cfisuprange_t cfisuprange; +struct hfa384x_pdr_cfisuprange cfisuprange;hfa384x_pdr_nicid_t nicid;hfa384x_pdr_refdac_measurements_t refdac_measurements;hfa384x_pdr_vgdac_measurements_t vgdac_measurements;
Signature · 1 line
1.9.1
PATCH 53/87 staging: wlang-ng: avoid new typedef: hfa384x_pdr_nicid_t
In reply to Sergio ParacuellosThis patch fixes the following checkpatch.pl warning in hfa384x.h:
WARNING: do not add new typedefs
It applies for typedef hfa384x_pdr_nicid_t
--- drivers/staging/wlan-ng/hfa384x.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/staging/wlan-ng/hfa384x.h +3 -3
@@ -977,12 +977,12 @@ struct hfa384x_pdr_cfisuprange {u16 top; } __packed; -typedef struct hfa384x_pdr_nicid { +struct hfa384x_pdr_nicid {u16 id;u16 variant;u16 major;u16 minor; -} __packed hfa384x_pdr_nicid_t; +} __packed; typedef struct hfa384x_pdr_refdac_measurements { u16 value[0];
@@ -1101,7 +1101,7 @@ struct hfa384x_pdr_cfisuprange {struct hfa384x_pdr_nic_ramsize nic_ramsize;struct hfa384x_pdr_mfisuprange mfisuprange;struct hfa384x_pdr_cfisuprange cfisuprange; -hfa384x_pdr_nicid_t nicid; +struct hfa384x_pdr_nicid nicid;hfa384x_pdr_refdac_measurements_t refdac_measurements;hfa384x_pdr_vgdac_measurements_t vgdac_measurements;hfa384x_pdr_level_compc_measurements_t level_compc_measurements;
Signature · 1 line
1.9.1
PATCH 54/87 staging: wlang-ng: avoid new typedef: hfa384x_pdr_refdac_measurements_t
In reply to Sergio ParacuellosThis patch fixes the following checkpatch.pl warning in hfa384x.h:
WARNING: do not add new typedefs
It applies for typedef hfa384x_pdr_refdac_measurements_t
--- drivers/staging/wlan-ng/hfa384x.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/staging/wlan-ng/hfa384x.h +3 -3
@@ -984,9 +984,9 @@ struct hfa384x_pdr_nicid {u16 minor; } __packed; -typedef struct hfa384x_pdr_refdac_measurements { +struct hfa384x_pdr_refdac_measurements {u16 value[0 ]; -} __packed hfa384x_pdr_refdac_measurements_t; +} __packed; typedef struct hfa384x_pdr_vgdac_measurements { u16 value[0];
@@ -1102,7 +1102,7 @@ struct hfa384x_pdr_nicid {struct hfa384x_pdr_mfisuprange mfisuprange;struct hfa384x_pdr_cfisuprange cfisuprange;struct hfa384x_pdr_nicid nicid; -hfa384x_pdr_refdac_measurements_t refdac_measurements; +struct hfa384x_pdr_refdac_measurements refdac_measurements;hfa384x_pdr_vgdac_measurements_t vgdac_measurements;hfa384x_pdr_level_compc_measurements_t level_compc_measurements;hfa384x_pdr_mac_address_t mac_address;
Signature · 1 line
1.9.1
PATCH 55/87 staging: wlang-ng: avoid new typedef: hfa384x_pdr_vgdac_measurements_t
In reply to Sergio ParacuellosThis patch fixes the following checkpatch.pl warning in hfa384x.h:
WARNING: do not add new typedefs
It applies for typedef hfa384x_pdr_vgdac_measurements_t
--- drivers/staging/wlan-ng/hfa384x.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/staging/wlan-ng/hfa384x.h +3 -3
@@ -988,9 +988,9 @@ struct hfa384x_pdr_refdac_measurements {u16 value[0 ]; } __packed; -typedef struct hfa384x_pdr_vgdac_measurements { +struct hfa384x_pdr_vgdac_measurements {u16 value[0 ]; -} __packed hfa384x_pdr_vgdac_measurements_t; +} __packed; typedef struct hfa384x_pdr_level_comp_measurements { u16 value[0];
@@ -1103,7 +1103,7 @@ struct hfa384x_pdr_refdac_measurements {struct hfa384x_pdr_cfisuprange cfisuprange;struct hfa384x_pdr_nicid nicid;struct hfa384x_pdr_refdac_measurements refdac_measurements; -hfa384x_pdr_vgdac_measurements_t vgdac_measurements; +struct hfa384x_pdr_vgdac_measurements vgdac_measurements;hfa384x_pdr_level_compc_measurements_t level_compc_measurements;hfa384x_pdr_mac_address_t mac_address;hfa384x_pdr_mkk_callname_t mkk_callname;
Signature · 1 line
1.9.1
PATCH 56/87 staging: wlang-ng: avoid new typedef: hfa384x_pdr_level_compc_measurements_t
In reply to Sergio ParacuellosThis patch fixes the following checkpatch.pl warning in hfa384x.h:
WARNING: do not add new typedefs
It applies for typedef hfa384x_pdr_level_compc_measurements_t
--- drivers/staging/wlan-ng/hfa384x.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/staging/wlan-ng/hfa384x.h +3 -3
@@ -992,9 +992,9 @@ struct hfa384x_pdr_vgdac_measurements {u16 value[0 ]; } __packed; -typedef struct hfa384x_pdr_level_comp_measurements { +struct hfa384x_pdr_level_comp_measurements {u16 value[0 ]; -} __packed hfa384x_pdr_level_compc_measurements_t; +} __packed; typedef struct hfa384x_pdr_mac_address { u8 addr[6];
@@ -1104,7 +1104,7 @@ struct hfa384x_pdr_vgdac_measurements {struct hfa384x_pdr_nicid nicid;struct hfa384x_pdr_refdac_measurements refdac_measurements;struct hfa384x_pdr_vgdac_measurements vgdac_measurements; -hfa384x_pdr_level_compc_measurements_t level_compc_measurements; +struct hfa384x_pdr_level_comp_measurements level_compc_measurements;hfa384x_pdr_mac_address_t mac_address;hfa384x_pdr_mkk_callname_t mkk_callname;hfa384x_pdr_regdomain_t regdomain;
Signature · 1 line
1.9.1
PATCH 57/87 staging: wlang-ng: avoid new typedef: hfa384x_pdr_mac_address_t
In reply to Sergio ParacuellosThis patch fixes the following checkpatch.pl warning in hfa384x.h:
WARNING: do not add new typedefs
It applies for typedef hfa384x_pdr_mac_address_t
--- drivers/staging/wlan-ng/hfa384x.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/staging/wlan-ng/hfa384x.h +3 -3
@@ -996,9 +996,9 @@ struct hfa384x_pdr_level_comp_measurements {u16 value[0 ]; } __packed; -typedef struct hfa384x_pdr_mac_address { +struct hfa384x_pdr_mac_address {u8 addr[6 ]; -} __packed hfa384x_pdr_mac_address_t; +} __packed; typedef struct hfa384x_pdr_mkk_callname { u8 callname[8];
@@ -1105,7 +1105,7 @@ struct hfa384x_pdr_level_comp_measurements {struct hfa384x_pdr_refdac_measurements refdac_measurements;struct hfa384x_pdr_vgdac_measurements vgdac_measurements;struct hfa384x_pdr_level_comp_measurements level_compc_measurements; -hfa384x_pdr_mac_address_t mac_address; +struct hfa384x_pdr_mac_address mac_address;hfa384x_pdr_mkk_callname_t mkk_callname;hfa384x_pdr_regdomain_t regdomain;hfa384x_pdr_allowed_channel_t allowed_channel;
Signature · 1 line
1.9.1
PATCH 58/87 staging: wlang-ng: avoid new typedef: hfa384x_pdr_mkk_callname_t
In reply to Sergio ParacuellosThis patch fixes the following checkpatch.pl warning in hfa384x.h:
WARNING: do not add new typedefs
It applies for typedef hfa384x_pdr_mkk_callname_t
--- drivers/staging/wlan-ng/hfa384x.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/staging/wlan-ng/hfa384x.h +3 -3
@@ -1000,9 +1000,9 @@ struct hfa384x_pdr_mac_address {u8 addr[6 ]; } __packed; -typedef struct hfa384x_pdr_mkk_callname { +struct hfa384x_pdr_mkk_callname {u8 callname[8 ]; -} __packed hfa384x_pdr_mkk_callname_t; +} __packed; typedef struct hfa384x_pdr_regdomain { u16 numdomains;
@@ -1106,7 +1106,7 @@ struct hfa384x_pdr_mac_address {struct hfa384x_pdr_vgdac_measurements vgdac_measurements;struct hfa384x_pdr_level_comp_measurements level_compc_measurements;struct hfa384x_pdr_mac_address mac_address; -hfa384x_pdr_mkk_callname_t mkk_callname; +struct hfa384x_pdr_mkk_callname mkk_callname;hfa384x_pdr_regdomain_t regdomain;hfa384x_pdr_allowed_channel_t allowed_channel;hfa384x_pdr_default_channel_t default_channel;
Signature · 1 line
1.9.1
PATCH 59/87 staging: wlang-ng: avoid new typedef: hfa384x_pdr_regdomain_t
In reply to Sergio ParacuellosThis patch fixes the following checkpatch.pl warning in hfa384x.h:
WARNING: do not add new typedefs
It applies for typedef hfa384x_pdr_regdomain_t
--- drivers/staging/wlan-ng/hfa384x.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/staging/wlan-ng/hfa384x.h +3 -3
@@ -1004,10 +1004,10 @@ struct hfa384x_pdr_mkk_callname {u8 callname[8 ]; } __packed; -typedef struct hfa384x_pdr_regdomain { +struct hfa384x_pdr_regdomain {u16 numdomains;u16 domain[5 ]; -} __packed hfa384x_pdr_regdomain_t; +} __packed; typedef struct hfa384x_pdr_allowed_channel { u16 ch_bitmap;
@@ -1107,7 +1107,7 @@ struct hfa384x_pdr_mkk_callname {struct hfa384x_pdr_level_comp_measurements level_compc_measurements;struct hfa384x_pdr_mac_address mac_address;struct hfa384x_pdr_mkk_callname mkk_callname; -hfa384x_pdr_regdomain_t regdomain; +struct hfa384x_pdr_regdomain regdomain;hfa384x_pdr_allowed_channel_t allowed_channel;hfa384x_pdr_default_channel_t default_channel;hfa384x_pdr_privacy_option_t privacy_option;
Signature · 1 line
1.9.1
PATCH 60/87 staging: wlang-ng: avoid new typedef: hfa384x_pdr_allowed_channel_t
In reply to Sergio ParacuellosThis patch fixes the following checkpatch.pl warning in hfa384x.h:
WARNING: do not add new typedefs
It applies for typedef hfa384x_pdr_allowed_channel_t
--- drivers/staging/wlan-ng/hfa384x.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/staging/wlan-ng/hfa384x.h +3 -3
@@ -1009,9 +1009,9 @@ struct hfa384x_pdr_regdomain {u16 domain[5 ]; } __packed; -typedef struct hfa384x_pdr_allowed_channel { +struct hfa384x_pdr_allowed_channel {u16 ch_bitmap; -} __packed hfa384x_pdr_allowed_channel_t; +} __packed; typedef struct hfa384x_pdr_default_channel { u16 channel;
@@ -1108,7 +1108,7 @@ struct hfa384x_pdr_regdomain {struct hfa384x_pdr_mac_address mac_address;struct hfa384x_pdr_mkk_callname mkk_callname;struct hfa384x_pdr_regdomain regdomain; -hfa384x_pdr_allowed_channel_t allowed_channel; +struct hfa384x_pdr_allowed_channel allowed_channel;hfa384x_pdr_default_channel_t default_channel;hfa384x_pdr_privacy_option_t privacy_option;hfa384x_pdr_temptype_t temptype;
Signature · 1 line
1.9.1
Quoted 6 lines · Sergio Paracuellos
This patch series fix some warnings reported by checkpatch.pl script in
hfa384x.h:
WARNING: Block comments use * on subsequent lines
WARNING: Block comments use a trailing */ on a separate line
WARNING: do not add new typedefsSergio Paracuellos (87):
[]
Why some of them (if not all) have duplicated Signed-off-by lines?
True. That's a thing I'd like to know too :). I don't know what I did.
I'll fix them and resend the patchset again.
Thanks for let know.
Cheers,
Sergio Paracuellos
Quoted 12 lines · Giedrius Statkevičius
Quoted 6 lines · Sergio Paracuellos
This patch series fix some warnings reported by checkpatch.pl script in
hfa384x.h:
WARNING: Block comments use * on subsequent lines
WARNING: Block comments use a trailing */ on a separate line
WARNING: do not add new typedefsSergio Paracuellos (87):
[]
Why some of them (if not all) have duplicated Signed-off-by lines?
PATCH 61/87 staging: wlang-ng: avoid new typedef: hfa384x_pdr_default_channel_t
In reply to Sergio ParacuellosThis patch fixes the following checkpatch.pl warning in hfa384x.h:
WARNING: do not add new typedefs
It applies for typedef hfa384x_pdr_default_channel_t
--- drivers/staging/wlan-ng/hfa384x.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/staging/wlan-ng/hfa384x.h +3 -3
@@ -1013,9 +1013,9 @@ struct hfa384x_pdr_allowed_channel {u16 ch_bitmap; } __packed; -typedef struct hfa384x_pdr_default_channel { +struct hfa384x_pdr_default_channel {u16 channel; -} __packed hfa384x_pdr_default_channel_t; +} __packed; typedef struct hfa384x_pdr_privacy_option { u16 available;
@@ -1109,7 +1109,7 @@ struct hfa384x_pdr_allowed_channel {struct hfa384x_pdr_mkk_callname mkk_callname;struct hfa384x_pdr_regdomain regdomain;struct hfa384x_pdr_allowed_channel allowed_channel; -hfa384x_pdr_default_channel_t default_channel; +struct hfa384x_pdr_default_channel default_channel;hfa384x_pdr_privacy_option_t privacy_option;hfa384x_pdr_temptype_t temptype;hfa384x_pdr_refdac_setup_t refdac_setup;
Signature · 1 line
1.9.1
PATCH 62/87 staging: wlang-ng: avoid new typedef: hfa384x_pdr_privacy_option_t
In reply to Sergio ParacuellosThis patch fixes the following checkpatch.pl warning in hfa384x.h:
WARNING: do not add new typedefs
It applies for typedef hfa384x_pdr_privacy_option_t
--- drivers/staging/wlan-ng/hfa384x.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/staging/wlan-ng/hfa384x.h +3 -3
@@ -1017,9 +1017,9 @@ struct hfa384x_pdr_default_channel {u16 channel; } __packed; -typedef struct hfa384x_pdr_privacy_option { +struct hfa384x_pdr_privacy_option {u16 available; -} __packed hfa384x_pdr_privacy_option_t; +} __packed; typedef struct hfa384x_pdr_temptype { u16 type;
@@ -1110,7 +1110,7 @@ struct hfa384x_pdr_default_channel {struct hfa384x_pdr_regdomain regdomain;struct hfa384x_pdr_allowed_channel allowed_channel;struct hfa384x_pdr_default_channel default_channel; -hfa384x_pdr_privacy_option_t privacy_option; +struct hfa384x_pdr_privacy_option privacy_option;hfa384x_pdr_temptype_t temptype;hfa384x_pdr_refdac_setup_t refdac_setup;hfa384x_pdr_vgdac_setup_t vgdac_setup;
Signature · 1 line
1.9.1
PATCH 63/87 staging: wlang-ng: avoid new typedef: hfa384x_pdr_temptype_t
In reply to Sergio ParacuellosThis patch fixes the following checkpatch.pl warning in hfa384x.h:
WARNING: do not add new typedefs
It applies for typedef hfa384x_pdr_temptype_t
--- drivers/staging/wlan-ng/hfa384x.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/staging/wlan-ng/hfa384x.h +3 -3
@@ -1021,9 +1021,9 @@ struct hfa384x_pdr_privacy_option {u16 available; } __packed; -typedef struct hfa384x_pdr_temptype { +struct hfa384x_pdr_temptype {u16 type; -} __packed hfa384x_pdr_temptype_t; +} __packed; typedef struct hfa384x_pdr_refdac_setup { u16 ch_value[14];
@@ -1111,7 +1111,7 @@ struct hfa384x_pdr_privacy_option {struct hfa384x_pdr_allowed_channel allowed_channel;struct hfa384x_pdr_default_channel default_channel;struct hfa384x_pdr_privacy_option privacy_option; -hfa384x_pdr_temptype_t temptype; +struct hfa384x_pdr_temptype temptype;hfa384x_pdr_refdac_setup_t refdac_setup;hfa384x_pdr_vgdac_setup_t vgdac_setup;hfa384x_pdr_level_comp_setup_t level_comp_setup;
Signature · 1 line
1.9.1
PATCH 64/87 staging: wlang-ng: avoid new typedef: hfa384x_pdr_refdac_setup_t
In reply to Sergio ParacuellosThis patch fixes the following checkpatch.pl warning in hfa384x.h:
WARNING: do not add new typedefs
It applies for typedef hfa384x_pdr_refdac_setup_t
--- drivers/staging/wlan-ng/hfa384x.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/staging/wlan-ng/hfa384x.h +3 -3
@@ -1025,9 +1025,9 @@ struct hfa384x_pdr_temptype {u16 type; } __packed; -typedef struct hfa384x_pdr_refdac_setup { +struct hfa384x_pdr_refdac_setup {u16 ch_value[14 ]; -} __packed hfa384x_pdr_refdac_setup_t; +} __packed; typedef struct hfa384x_pdr_vgdac_setup { u16 ch_value[14];
@@ -1112,7 +1112,7 @@ struct hfa384x_pdr_temptype {struct hfa384x_pdr_default_channel default_channel;struct hfa384x_pdr_privacy_option privacy_option;struct hfa384x_pdr_temptype temptype; -hfa384x_pdr_refdac_setup_t refdac_setup; +struct hfa384x_pdr_refdac_setup refdac_setup;hfa384x_pdr_vgdac_setup_t vgdac_setup;hfa384x_pdr_level_comp_setup_t level_comp_setup;hfa384x_pdr_trimdac_setup_t trimdac_setup;
Signature · 1 line
1.9.1
PATCH 65/87 staging: wlang-ng: avoid new typedef: hfa384x_pdr_vgdac_setup_t
In reply to Sergio ParacuellosThis patch fixes the following checkpatch.pl warning in hfa384x.h:
WARNING: do not add new typedefs
It applies for typedef hfa384x_pdr_vgdac_setup_t
--- drivers/staging/wlan-ng/hfa384x.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/staging/wlan-ng/hfa384x.h +3 -3
@@ -1029,9 +1029,9 @@ struct hfa384x_pdr_refdac_setup {u16 ch_value[14 ]; } __packed; -typedef struct hfa384x_pdr_vgdac_setup { +struct hfa384x_pdr_vgdac_setup {u16 ch_value[14 ]; -} __packed hfa384x_pdr_vgdac_setup_t; +} __packed; typedef struct hfa384x_pdr_level_comp_setup { u16 ch_value[14];
@@ -1113,7 +1113,7 @@ struct hfa384x_pdr_refdac_setup {struct hfa384x_pdr_privacy_option privacy_option;struct hfa384x_pdr_temptype temptype;struct hfa384x_pdr_refdac_setup refdac_setup; -hfa384x_pdr_vgdac_setup_t vgdac_setup; +struct hfa384x_pdr_vgdac_setup vgdac_setup;hfa384x_pdr_level_comp_setup_t level_comp_setup;hfa384x_pdr_trimdac_setup_t trimdac_setup;hfa384x_pdr_ifr_setting_t ifr_setting;
Signature · 1 line
1.9.1
PATCH 66/87 staging: wlang-ng: avoid new typedef: hfa384x_pdr_level_comp_setup_t
In reply to Sergio ParacuellosThis patch fixes the following checkpatch.pl warning in hfa384x.h:
WARNING: do not add new typedefs
It applies for typedef hfa384x_pdr_level_comp_setup_t
--- drivers/staging/wlan-ng/hfa384x.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/staging/wlan-ng/hfa384x.h +3 -3
@@ -1033,9 +1033,9 @@ struct hfa384x_pdr_vgdac_setup {u16 ch_value[14 ]; } __packed; -typedef struct hfa384x_pdr_level_comp_setup { +struct hfa384x_pdr_level_comp_setup {u16 ch_value[14 ]; -} __packed hfa384x_pdr_level_comp_setup_t; +} __packed; typedef struct hfa384x_pdr_trimdac_setup { u16 trimidac;
@@ -1114,7 +1114,7 @@ struct hfa384x_pdr_vgdac_setup {struct hfa384x_pdr_temptype temptype;struct hfa384x_pdr_refdac_setup refdac_setup;struct hfa384x_pdr_vgdac_setup vgdac_setup; -hfa384x_pdr_level_comp_setup_t level_comp_setup; +struct hfa384x_pdr_level_comp_setup level_comp_setup;hfa384x_pdr_trimdac_setup_t trimdac_setup;hfa384x_pdr_ifr_setting_t ifr_setting;hfa384x_pdr_rfr_setting_t rfr_setting;
Signature · 1 line
1.9.1
PATCH 67/87 staging: wlang-ng: avoid new typedef: hfa384x_pdr_trimdac_setup_t
In reply to Sergio ParacuellosThis patch fixes the following checkpatch.pl warning in hfa384x.h:
WARNING: do not add new typedefs
It applies for typedef hfa384x_pdr_trimdac_setup_t
--- drivers/staging/wlan-ng/hfa384x.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/staging/wlan-ng/hfa384x.h +3 -3
@@ -1037,10 +1037,10 @@ struct hfa384x_pdr_level_comp_setup {u16 ch_value[14 ]; } __packed; -typedef struct hfa384x_pdr_trimdac_setup { +struct hfa384x_pdr_trimdac_setup {u16 trimidac;u16 trimqdac; -} __packed hfa384x_pdr_trimdac_setup_t; +} __packed; typedef struct hfa384x_pdr_ifr_setting { u16 value[3];
@@ -1115,7 +1115,7 @@ struct hfa384x_pdr_level_comp_setup {struct hfa384x_pdr_refdac_setup refdac_setup;struct hfa384x_pdr_vgdac_setup vgdac_setup;struct hfa384x_pdr_level_comp_setup level_comp_setup; -hfa384x_pdr_trimdac_setup_t trimdac_setup; +struct hfa384x_pdr_trimdac_setup trimdac_setup;hfa384x_pdr_ifr_setting_t ifr_setting;hfa384x_pdr_rfr_setting_t rfr_setting;hfa384x_pdr_hfa3861_baseline_t hfa3861_baseline;
Signature · 1 line
1.9.1
PATCH 68/87 staging: wlang-ng: avoid new typedef: hfa384x_pdr_ifr_setting_t
In reply to Sergio ParacuellosThis patch fixes the following checkpatch.pl warning in hfa384x.h:
WARNING: do not add new typedefs
It applies for typedef hfa384x_pdr_ifr_setting_t
--- drivers/staging/wlan-ng/hfa384x.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/staging/wlan-ng/hfa384x.h +3 -3
@@ -1042,9 +1042,9 @@ struct hfa384x_pdr_trimdac_setup {u16 trimqdac; } __packed; -typedef struct hfa384x_pdr_ifr_setting { +struct hfa384x_pdr_ifr_setting {u16 value[3 ]; -} __packed hfa384x_pdr_ifr_setting_t; +} __packed; typedef struct hfa384x_pdr_rfr_setting { u16 value[3];
@@ -1116,7 +1116,7 @@ struct hfa384x_pdr_trimdac_setup {struct hfa384x_pdr_vgdac_setup vgdac_setup;struct hfa384x_pdr_level_comp_setup level_comp_setup;struct hfa384x_pdr_trimdac_setup trimdac_setup; -hfa384x_pdr_ifr_setting_t ifr_setting; +struct hfa384x_pdr_ifr_setting ifr_setting;hfa384x_pdr_rfr_setting_t rfr_setting;hfa384x_pdr_hfa3861_baseline_t hfa3861_baseline;hfa384x_pdr_hfa3861_shadow_t hfa3861_shadow;
Signature · 1 line
1.9.1
PATCH 69/87 staging: wlang-ng: avoid new typedef: hfa384x_pdr_rfr_setting_t
In reply to Sergio ParacuellosThis patch fixes the following checkpatch.pl warning in hfa384x.h:
WARNING: do not add new typedefs
It applies for typedef hfa384x_pdr_rfr_setting_t
--- drivers/staging/wlan-ng/hfa384x.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/staging/wlan-ng/hfa384x.h +3 -3
@@ -1046,9 +1046,9 @@ struct hfa384x_pdr_ifr_setting {u16 value[3 ]; } __packed; -typedef struct hfa384x_pdr_rfr_setting { +struct hfa384x_pdr_rfr_setting {u16 value[3 ]; -} __packed hfa384x_pdr_rfr_setting_t; +} __packed; typedef struct hfa384x_pdr_hfa3861_baseline { u16 value[50];
@@ -1117,7 +1117,7 @@ struct hfa384x_pdr_ifr_setting {struct hfa384x_pdr_level_comp_setup level_comp_setup;struct hfa384x_pdr_trimdac_setup trimdac_setup;struct hfa384x_pdr_ifr_setting ifr_setting; -hfa384x_pdr_rfr_setting_t rfr_setting; +struct hfa384x_pdr_rfr_setting rfr_setting;hfa384x_pdr_hfa3861_baseline_t hfa3861_baseline;hfa384x_pdr_hfa3861_shadow_t hfa3861_shadow;hfa384x_pdr_hfa3861_ifrf_t hfa3861_ifrf;
Signature · 1 line
1.9.1
PATCH 70/87 staging: wlang-ng: avoid new typedef: hfa384x_pdr_hfa3861_baseline_t
In reply to Sergio ParacuellosThis patch fixes the following checkpatch.pl warning in hfa384x.h:
WARNING: do not add new typedefs
It applies for typedef hfa384x_pdr_hfa3861_baseline_t
--- drivers/staging/wlan-ng/hfa384x.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/staging/wlan-ng/hfa384x.h +3 -3
@@ -1050,9 +1050,9 @@ struct hfa384x_pdr_rfr_setting {u16 value[3 ]; } __packed; -typedef struct hfa384x_pdr_hfa3861_baseline { +struct hfa384x_pdr_hfa3861_baseline {u16 value[50 ]; -} __packed hfa384x_pdr_hfa3861_baseline_t; +} __packed; typedef struct hfa384x_pdr_hfa3861_shadow { u32 value[32];
@@ -1118,7 +1118,7 @@ struct hfa384x_pdr_rfr_setting {struct hfa384x_pdr_trimdac_setup trimdac_setup;struct hfa384x_pdr_ifr_setting ifr_setting;struct hfa384x_pdr_rfr_setting rfr_setting; -hfa384x_pdr_hfa3861_baseline_t hfa3861_baseline; +struct hfa384x_pdr_hfa3861_baseline hfa3861_baseline;hfa384x_pdr_hfa3861_shadow_t hfa3861_shadow;hfa384x_pdr_hfa3861_ifrf_t hfa3861_ifrf;hfa384x_pdr_hfa3861_chcalsp_t hfa3861_chcalsp;
Signature · 1 line
1.9.1
PATCH 71/87 staging: wlang-ng: avoid new typedef: hfa384x_pdr_hfa3861_shadow_t
In reply to Sergio ParacuellosThis patch fixes the following checkpatch.pl warning in hfa384x.h:
WARNING: do not add new typedefs
It applies for typedef hfa384x_pdr_hfa3861_shadow_t
--- drivers/staging/wlan-ng/hfa384x.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/staging/wlan-ng/hfa384x.h +3 -3
@@ -1054,9 +1054,9 @@ struct hfa384x_pdr_hfa3861_baseline {u16 value[50 ]; } __packed; -typedef struct hfa384x_pdr_hfa3861_shadow { +struct hfa384x_pdr_hfa3861_shadow {u32 value[32 ]; -} __packed hfa384x_pdr_hfa3861_shadow_t; +} __packed; typedef struct hfa384x_pdr_hfa3861_ifrf { u32 value[20];
@@ -1119,7 +1119,7 @@ struct hfa384x_pdr_hfa3861_baseline {struct hfa384x_pdr_ifr_setting ifr_setting;struct hfa384x_pdr_rfr_setting rfr_setting;struct hfa384x_pdr_hfa3861_baseline hfa3861_baseline; -hfa384x_pdr_hfa3861_shadow_t hfa3861_shadow; +struct hfa384x_pdr_hfa3861_shadow hfa3861_shadow;hfa384x_pdr_hfa3861_ifrf_t hfa3861_ifrf;hfa384x_pdr_hfa3861_chcalsp_t hfa3861_chcalsp;hfa384x_pdr_hfa3861_chcali_t hfa3861_chcali;
Signature · 1 line
1.9.1
PATCH 72/87 staging: wlang-ng: avoid new typedef: hfa384x_pdr_hfa3861_ifrf_t
In reply to Sergio ParacuellosThis patch fixes the following checkpatch.pl warning in hfa384x.h:
WARNING: do not add new typedefs
It applies for typedef hfa384x_pdr_hfa3861_ifrf_t
--- drivers/staging/wlan-ng/hfa384x.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/staging/wlan-ng/hfa384x.h +3 -3
@@ -1058,9 +1058,9 @@ struct hfa384x_pdr_hfa3861_shadow {u32 value[32 ]; } __packed; -typedef struct hfa384x_pdr_hfa3861_ifrf { +struct hfa384x_pdr_hfa3861_ifrf {u32 value[20 ]; -} __packed hfa384x_pdr_hfa3861_ifrf_t; +} __packed; typedef struct hfa384x_pdr_hfa3861_chcalsp { u16 value[14];
@@ -1120,7 +1120,7 @@ struct hfa384x_pdr_hfa3861_shadow {struct hfa384x_pdr_rfr_setting rfr_setting;struct hfa384x_pdr_hfa3861_baseline hfa3861_baseline;struct hfa384x_pdr_hfa3861_shadow hfa3861_shadow; -hfa384x_pdr_hfa3861_ifrf_t hfa3861_ifrf; +struct hfa384x_pdr_hfa3861_ifrf hfa3861_ifrf;hfa384x_pdr_hfa3861_chcalsp_t hfa3861_chcalsp;hfa384x_pdr_hfa3861_chcali_t hfa3861_chcali;hfa384x_pdr_nic_config_t nic_config;
Signature · 1 line
1.9.1
PATCH 73/87 staging: wlang-ng: avoid new typedef: hfa384x_pdr_hfa3861_chcalsp_t
In reply to Sergio ParacuellosThis patch fixes the following checkpatch.pl warning in hfa384x.h:
WARNING: do not add new typedefs
It applies for typedef hfa384x_pdr_hfa3861_chcalsp_t
--- drivers/staging/wlan-ng/hfa384x.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/staging/wlan-ng/hfa384x.h +3 -3
@@ -1062,9 +1062,9 @@ struct hfa384x_pdr_hfa3861_ifrf {u32 value[20 ]; } __packed; -typedef struct hfa384x_pdr_hfa3861_chcalsp { +struct hfa384x_pdr_hfa3861_chcalsp {u16 value[14 ]; -} __packed hfa384x_pdr_hfa3861_chcalsp_t; +} __packed; typedef struct hfa384x_pdr_hfa3861_chcali { u16 value[17];
@@ -1121,7 +1121,7 @@ struct hfa384x_pdr_hfa3861_ifrf {struct hfa384x_pdr_hfa3861_baseline hfa3861_baseline;struct hfa384x_pdr_hfa3861_shadow hfa3861_shadow;struct hfa384x_pdr_hfa3861_ifrf hfa3861_ifrf; -hfa384x_pdr_hfa3861_chcalsp_t hfa3861_chcalsp; +struct hfa384x_pdr_hfa3861_chcalsp hfa3861_chcalsp;hfa384x_pdr_hfa3861_chcali_t hfa3861_chcali;hfa384x_pdr_nic_config_t nic_config;hfa384x_hfo_delay_t hfo_delay;
Signature · 1 line
1.9.1
PATCH 74/87 staging: wlang-ng: avoid new typedef: hfa384x_pdr_hfa3861_chcali_t
In reply to Sergio ParacuellosThis patch fixes the following checkpatch.pl warning in hfa384x.h:
WARNING: do not add new typedefs
It applies for typedef hfa384x_pdr_hfa3861_chcali_t
--- drivers/staging/wlan-ng/hfa384x.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/staging/wlan-ng/hfa384x.h +3 -3
@@ -1066,9 +1066,9 @@ struct hfa384x_pdr_hfa3861_chcalsp {u16 value[14 ]; } __packed; -typedef struct hfa384x_pdr_hfa3861_chcali { +struct hfa384x_pdr_hfa3861_chcali {u16 value[17 ]; -} __packed hfa384x_pdr_hfa3861_chcali_t; +} __packed; typedef struct hfa384x_pdr_hfa3861_nic_config { u16 config_bitmap;
@@ -1122,7 +1122,7 @@ struct hfa384x_pdr_hfa3861_chcalsp {struct hfa384x_pdr_hfa3861_shadow hfa3861_shadow;struct hfa384x_pdr_hfa3861_ifrf hfa3861_ifrf;struct hfa384x_pdr_hfa3861_chcalsp hfa3861_chcalsp; -hfa384x_pdr_hfa3861_chcali_t hfa3861_chcali; +struct hfa384x_pdr_hfa3861_chcali hfa3861_chcali;hfa384x_pdr_nic_config_t nic_config;hfa384x_hfo_delay_t hfo_delay;hfa384x_pdr_hfa3861_manf_testsp_t hfa3861_manf_testsp;
Signature · 1 line
1.9.1
PATCH 75/87 staging: wlang-ng: avoid new typedef: hfa384x_pdr_nic_config_t
In reply to Sergio ParacuellosThis patch fixes the following checkpatch.pl warning in hfa384x.h:
WARNING: do not add new typedefs
It applies for typedef hfa384x_pdr_nic_config_t
--- drivers/staging/wlan-ng/hfa384x.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/staging/wlan-ng/hfa384x.h +3 -3
@@ -1070,9 +1070,9 @@ struct hfa384x_pdr_hfa3861_chcali {u16 value[17 ]; } __packed; -typedef struct hfa384x_pdr_hfa3861_nic_config { +struct hfa384x_pdr_hfa3861_nic_config {u16 config_bitmap; -} __packed hfa384x_pdr_nic_config_t; +} __packed; typedef struct hfa384x_pdr_hfo_delay { u8 hfo_delay;
@@ -1123,7 +1123,7 @@ struct hfa384x_pdr_hfa3861_chcali {struct hfa384x_pdr_hfa3861_ifrf hfa3861_ifrf;struct hfa384x_pdr_hfa3861_chcalsp hfa3861_chcalsp;struct hfa384x_pdr_hfa3861_chcali hfa3861_chcali; -hfa384x_pdr_nic_config_t nic_config; +struct hfa384x_pdr_hfa3861_nic_config nic_config;hfa384x_hfo_delay_t hfo_delay;hfa384x_pdr_hfa3861_manf_testsp_t hfa3861_manf_testsp;hfa384x_pdr_hfa3861_manf_testi_t hfa3861_manf_testi;
Signature · 1 line
1.9.1
PATCH 76/87 staging: wlang-ng: avoid new typedef: hfa384x_hfo_delay_t
In reply to Sergio ParacuellosThis patch fixes the following checkpatch.pl warning in hfa384x.h:
WARNING: do not add new typedefs
It applies for typedef hfa384x_hfo_delay_t
--- drivers/staging/wlan-ng/hfa384x.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/staging/wlan-ng/hfa384x.h +3 -3
@@ -1074,9 +1074,9 @@ struct hfa384x_pdr_hfa3861_nic_config {u16 config_bitmap; } __packed; -typedef struct hfa384x_pdr_hfo_delay { +struct hfa384x_pdr_hfo_delay {u8 hfo_delay; -} __packed hfa384x_hfo_delay_t; +} __packed; typedef struct hfa384x_pdr_hfa3861_manf_testsp { u16 value[30];
@@ -1124,7 +1124,7 @@ struct hfa384x_pdr_hfa3861_nic_config {struct hfa384x_pdr_hfa3861_chcalsp hfa3861_chcalsp;struct hfa384x_pdr_hfa3861_chcali hfa3861_chcali;struct hfa384x_pdr_hfa3861_nic_config nic_config; -hfa384x_hfo_delay_t hfo_delay; +struct hfa384x_pdr_hfo_delay hfo_delay;hfa384x_pdr_hfa3861_manf_testsp_t hfa3861_manf_testsp;hfa384x_pdr_hfa3861_manf_testi_t hfa3861_manf_testi;hfa384x_pdr_end_of_pda_t end_of_pda;
Signature · 1 line
1.9.1
PATCH 77/87 staging: wlang-ng: avoid new typedef: hfa384x_pdr_hfa3861_manf_testsp_t
In reply to Sergio ParacuellosThis patch fixes the following checkpatch.pl warning in hfa384x.h:
WARNING: do not add new typedefs
It applies for typedef hfa384x_pdr_hfa3861_manf_testsp_t
--- drivers/staging/wlan-ng/hfa384x.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/staging/wlan-ng/hfa384x.h +3 -3
@@ -1078,9 +1078,9 @@ struct hfa384x_pdr_hfo_delay {u8 hfo_delay; } __packed; -typedef struct hfa384x_pdr_hfa3861_manf_testsp { +struct hfa384x_pdr_hfa3861_manf_testsp {u16 value[30 ]; -} __packed hfa384x_pdr_hfa3861_manf_testsp_t; +} __packed; typedef struct hfa384x_pdr_hfa3861_manf_testi { u16 value[30];
@@ -1125,7 +1125,7 @@ struct hfa384x_pdr_hfo_delay {struct hfa384x_pdr_hfa3861_chcali hfa3861_chcali;struct hfa384x_pdr_hfa3861_nic_config nic_config;struct hfa384x_pdr_hfo_delay hfo_delay; -hfa384x_pdr_hfa3861_manf_testsp_t hfa3861_manf_testsp; +struct hfa384x_pdr_hfa3861_manf_testsp hfa3861_manf_testsp;hfa384x_pdr_hfa3861_manf_testi_t hfa3861_manf_testi;hfa384x_pdr_end_of_pda_t end_of_pda;
Signature · 1 line
1.9.1
PATCH 78/87 staging: wlang-ng: avoid new typedef: hfa384x_pdr_hfa3861_manf_testi_t
In reply to Sergio ParacuellosThis patch fixes the following checkpatch.pl warning in hfa384x.h:
WARNING: do not add new typedefs
It applies for typedef hfa384x_pdr_hfa3861_manf_testi_t
--- drivers/staging/wlan-ng/hfa384x.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/staging/wlan-ng/hfa384x.h +3 -3
@@ -1082,9 +1082,9 @@ struct hfa384x_pdr_hfa3861_manf_testsp {u16 value[30 ]; } __packed; -typedef struct hfa384x_pdr_hfa3861_manf_testi { +struct hfa384x_pdr_hfa3861_manf_testi {u16 value[30 ]; -} __packed hfa384x_pdr_hfa3861_manf_testi_t; +} __packed; typedef struct hfa384x_end_of_pda { u16 crc;
@@ -1126,7 +1126,7 @@ struct hfa384x_pdr_hfa3861_manf_testsp {struct hfa384x_pdr_hfa3861_nic_config nic_config;struct hfa384x_pdr_hfo_delay hfo_delay;struct hfa384x_pdr_hfa3861_manf_testsp hfa3861_manf_testsp; -hfa384x_pdr_hfa3861_manf_testi_t hfa3861_manf_testi; +struct hfa384x_pdr_hfa3861_manf_testi hfa3861_manf_testi;hfa384x_pdr_end_of_pda_t end_of_pda; } data;
Signature · 1 line
1.9.1
PATCH 79/87 staging: wlang-ng: avoid new typedef: hfa384x_pdr_end_of_pda_t
In reply to Sergio ParacuellosThis patch fixes the following checkpatch.pl warning in hfa384x.h:
WARNING: do not add new typedefs
It applies for typedef hfa384x_pdr_end_of_pda_t
--- drivers/staging/wlan-ng/hfa384x.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/staging/wlan-ng/hfa384x.h +3 -3
@@ -1086,9 +1086,9 @@ struct hfa384x_pdr_hfa3861_manf_testi {u16 value[30 ]; } __packed; -typedef struct hfa384x_end_of_pda { +struct hfa384x_pdr_end_of_pda {u16 crc; -} __packed hfa384x_pdr_end_of_pda_t; +} __packed; typedef struct hfa384x_pdrec { u16 len; /* in words */
@@ -1127,7 +1127,7 @@ struct hfa384x_pdr_hfa3861_manf_testi {struct hfa384x_pdr_hfo_delay hfo_delay;struct hfa384x_pdr_hfa3861_manf_testsp hfa3861_manf_testsp;struct hfa384x_pdr_hfa3861_manf_testi hfa3861_manf_testi; -hfa384x_pdr_end_of_pda_t end_of_pda; +struct hfa384x_pdr_end_of_pda end_of_pda; } data; }__packed hfa384x_pdrec_t;
Signature · 1 line
1.9.1
PATCH 80/87 staging: wlang-ng: avoid new typedef: hfa384x_pdrec_t
In reply to Sergio ParacuellosThis patch fixes the following checkpatch.pl warning in hfa384x.h:
WARNING: do not add new typedefs
It applies for typedef hfa384x_pdrec_t
--- drivers/staging/wlan-ng/hfa384x.h | 4 ++-- drivers/staging/wlan-ng/prism2fw.c | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-)
drivers/staging/wlan-ng/hfa384x.h +2 -2
@@ -1090,7 +1090,7 @@ struct hfa384x_pdr_end_of_pda {u16 crc; } __packed; -typedef struct hfa384x_pdrec { +struct hfa384x_pdrec { u16 len; /* in words */ u16 code; union pdr {
@@ -1130,7 +1130,7 @@ struct hfa384x_pdr_end_of_pda {struct hfa384x_pdr_end_of_pda end_of_pda; } data; -}__packed hfa384x_pdrec_t; +} __packed;#ifdef __KERNEL__/*--------------------------------------------------------------------
drivers/staging/wlan-ng/prism2fw.c +4 -4
@@ -105,7 +105,7 @@ struct s3inforec {struct pda {u8 buf[HFA384x_PDA_LEN_MAX]; -hfa384x_pdrec_t *rec[HFA384x_PDA_RECS_MAX]; +struct hfa384x_pdrec *rec[HFA384x_PDA_RECS_MAX];unsigned int nrec; };
@@ -266,7 +266,7 @@ static int prism2_fwapply(const struct ihex_binrec *rfptr,/* clear the pda and add an initial END record */ memset (&pda,0 ,sizeof (pda)); - pda.rec[0 ] = (hfa384x_pdrec_t *)pda.buf; + pda.rec[0 ] = (struct hfa384x_pdrec *)pda.buf; pda.rec[0 ]->len =cpu_to_le16 (2 );/* len in words */ pda.rec[0 ]->code =cpu_to_le16 (HFA384x_PDR_END_OF_PDA); pda.nrec =1 ;
@@ -599,7 +599,7 @@ static int mkpdrlist(struct pda *pda) curroff =0 ;while (curroff < (HFA384x_PDA_LEN_MAX /2 -1 ) &&le16_to_cpu (pda16[curroff +1 ]) != HFA384x_PDR_END_OF_PDA) { - pda->rec[pda->nrec] = (hfa384x_pdrec_t *)&(pda16[curroff]); + pda->rec[pda->nrec] = (struct hfa384x_pdrec *)&(pda16[curroff]);if (le16_to_cpu (pda->rec[pda->nrec]->code) == HFA384x_PDR_NICID) {
@@ -638,7 +638,7 @@ static int mkpdrlist(struct pda *pda) curroff, pda->nrec);return 1 ; } - pda->rec[pda->nrec] = (hfa384x_pdrec_t *)&(pda16[curroff]); + pda->rec[pda->nrec] = (struct hfa384x_pdrec *)&(pda16[curroff]); (pda->nrec)++;return 0 ; }
Signature · 1 line
1.9.1
PATCH 81/87 staging: wlang-ng: avoid new typedef: hfa384x_cmdresult_t
In reply to Sergio ParacuellosThis patch fixes the following checkpatch.pl warning in hfa384x.h:
WARNING: do not add new typedefs
It applies for typedef hfa384x_cmdresult_t
--- drivers/staging/wlan-ng/hfa384x.h | 6 +++--- drivers/staging/wlan-ng/hfa384x_usb.c | 16 ++++++++-------- 2 files changed, 11 insertions(+), 11 deletions(-)
drivers/staging/wlan-ng/hfa384x.h +3 -3
@@ -1138,12 +1138,12 @@ struct hfa384x_pdrec {* --- Also, a collection of support types -- *-------------------------------------------------------------------- */ -typedef struct hfa384x_statusresult { +struct hfa384x_cmdresult {u16 status;u16 resp0;u16 resp1;u16 resp2; -}hfa384x_cmdresult_t ; +};/* USB Control Exchange (CTLX): * A queue of the structure below is maintained for all of the
@@ -1213,7 +1213,7 @@ typedef void (*ctlx_usercb_t) (struct hfa384x *hw,u16 parm1;u16 parm2; -hfa384x_cmdresult_t result; +struct hfa384x_cmdresult result; } hfa384x_metacmd_t;#define MAX_GRP_ADDR 32
drivers/staging/wlan-ng/hfa384x_usb.c +8 -8
@@ -213,7 +213,7 @@ struct usbctlx_completor {static int usbctlx_get_status (const struct hfa384x_usb_statusresp *cmdresp, -hfa384x_cmdresult_t *result); +struct hfa384x_cmdresult *result); static void usbctlx_get_rridresult(const struct hfa384x_usb_rridresp *rridresp,
@@ -622,7 +622,7 @@ static hfa384x_usbctlx_t *usbctlx_alloc(void)static int usbctlx_get_status (const struct hfa384x_usb_statusresp *cmdresp, -hfa384x_cmdresult_t *result) +struct hfa384x_cmdresult *result) { result->status =le16_to_cpu (cmdresp->status); result->resp0 =le16_to_cpu (cmdresp->resp0);
@@ -647,13 +647,13 @@ static hfa384x_usbctlx_t *usbctlx_alloc(void)/*---------------------------------------------------------------- * Completor object: * This completor must be passed to hfa384x_usbctlx_complete_sync() -* when processing a CTLX that returns a hfa384x_cmdresult_t structure. +* when processing a CTLX that returns a struct hfa384x_cmdresult structure. ----------------------------------------------------------------*/ struct usbctlx_cmd_completor {struct usbctlx_completor head;const struct hfa384x_usb_statusresp *cmdresp; -hfa384x_cmdresult_t *result; +struct hfa384x_cmdresult *result; };static inline int usbctlx_cmd_completor_fn (struct usbctlx_completor *head)
@@ -669,7 +669,7 @@ static inline struct usbctlx_completor *init_cmd_completor( *completor, const struct hfa384x_usb_statusresp *cmdresp, - hfa384x_cmdresult_t *result) + struct hfa384x_cmdresult *result) { completor->head.complete = usbctlx_cmd_completor_fn; completor->cmdresp = cmdresp;
@@ -798,7 +798,7 @@ static inline struct usbctlx_completor *init_rmem_completor(static void hfa384x_cb_status (hfa384x_t *hw,const hfa384x_usbctlx_t *ctlx) {if (ctlx->usercb) { -hfa384x_cmdresult_t cmdresult; +struct hfa384x_cmdresult cmdresult;if (ctlx->state !=CTLX_COMPLETE ) {memset (&cmdresult,0 ,sizeof (cmdresult));
@@ -1497,7 +1497,7 @@ static int hfa384x_usbctlx_complete_sync(hfa384x_t *hw,kfree (ctlx); }else if (mode ==DOWAIT ) {struct usbctlx_cmd_completor completor; -hfa384x_cmdresult_t wridresult; +struct hfa384x_cmdresult wridresult; result = hfa384x_usbctlx_complete_sync(hw, ctlx,
@@ -1679,7 +1679,7 @@ static int hfa384x_usbctlx_complete_sync(hfa384x_t *hw,kfree (ctlx); }else if (mode ==DOWAIT ) {struct usbctlx_cmd_completor completor; -hfa384x_cmdresult_t wmemresult; +struct hfa384x_cmdresult wmemresult; result = hfa384x_usbctlx_complete_sync(hw, ctlx,
Signature · 1 line
1.9.1
PATCH 82/87 staging: wlang-ng: avoid new typedef: hfa384x_rridresult_t
In reply to Sergio ParacuellosThis patch fixes the following checkpatch.pl warning in hfa384x.h:
WARNING: do not add new typedefs
It applies for typedef hfa384x_rridresult_t
--- drivers/staging/wlan-ng/hfa384x.h | 4 ++-- drivers/staging/wlan-ng/hfa384x_usb.c | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-)
drivers/staging/wlan-ng/hfa384x.h +2 -2
@@ -1152,11 +1152,11 @@ struct hfa384x_cmdresult {/* The following hfa384x_* structures are arguments to * the usercb() for the different CTLX types. */ -typedef struct hfa384x_rridresult { +struct hfa384x_rridresult {u16 rid;const void *riddata;unsigned int riddata_len; -}hfa384x_rridresult_t ; +};enum ctlx_state {CTLX_START =0 ,/* Start state, not queued */
drivers/staging/wlan-ng/hfa384x_usb.c +3 -3
@@ -217,7 +217,7 @@ struct usbctlx_completor {static void usbctlx_get_rridresult (const struct hfa384x_usb_rridresp *rridresp, -hfa384x_rridresult_t *result); +struct hfa384x_rridresult *result);/*---------------------------------------------------*/ /* Low level req/resp CTLX formatters and submitters */
@@ -637,7 +637,7 @@ static hfa384x_usbctlx_t *usbctlx_alloc(void)static void usbctlx_get_rridresult (const struct hfa384x_usb_rridresp *rridresp, -hfa384x_rridresult_t *result) +struct hfa384x_rridresult *result) { result->rid =le16_to_cpu (rridresp->rid); result->riddata = rridresp->data;
@@ -693,7 +693,7 @@ struct usbctlx_rrid_completor {static int usbctlx_rrid_completor_fn (struct usbctlx_completor *head) {struct usbctlx_rrid_completor *complete; -hfa384x_rridresult_t rridresult; +struct hfa384x_rridresult rridresult; complete = (struct usbctlx_rrid_completor *)head;usbctlx_get_rridresult (complete->rridresp, &rridresult);
Signature · 1 line
1.9.1