Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 03c2975b authored by Sergio Paracuellos's avatar Sergio Paracuellos Committed by Greg Kroah-Hartman
Browse files

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

Signed-off-by: default avatarSergio Paracuellos <sergio.paracuellos@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent b1e42d9f
Loading
Loading
Loading
Loading
+5 −5
Original line number Original line Diff line number Diff line
@@ -356,10 +356,10 @@ struct hfa384x_bytestr {
	u8 data[0];
	u8 data[0];
} __packed;
} __packed;


typedef struct hfa384x_bytestr32 {
struct hfa384x_bytestr32 {
	u16 len;
	u16 len;
	u8 data[32];
	u8 data[32];
} __packed hfa384x_bytestr32_t;
} __packed;


/*--------------------------------------------------------------------
/*--------------------------------------------------------------------
Configuration Record Structures:
Configuration Record Structures:
@@ -398,7 +398,7 @@ Configuration Record Structures:
typedef struct hfa384x_HostScanRequest_data {
typedef struct hfa384x_HostScanRequest_data {
	u16 channelList;
	u16 channelList;
	u16 txRate;
	u16 txRate;
	hfa384x_bytestr32_t ssid;
	struct hfa384x_bytestr32 ssid;
} __packed hfa384x_HostScanRequest_data_t;
} __packed hfa384x_HostScanRequest_data_t;


/*-- Configuration Record: JoinRequest (data portion only) --*/
/*-- Configuration Record: JoinRequest (data portion only) --*/
@@ -643,7 +643,7 @@ typedef struct hfa384x_ScanResultSub {
	u8 bssid[WLAN_BSSID_LEN];
	u8 bssid[WLAN_BSSID_LEN];
	u16 bcnint;
	u16 bcnint;
	u16 capinfo;
	u16 capinfo;
	hfa384x_bytestr32_t ssid;
	struct hfa384x_bytestr32 ssid;
	u8 supprates[10];	/* 802.11 info element */
	u8 supprates[10];	/* 802.11 info element */
	u16 proberesp_rate;
	u16 proberesp_rate;
} __packed hfa384x_ScanResultSub_t;
} __packed hfa384x_ScanResultSub_t;
@@ -678,7 +678,7 @@ typedef struct hfa384x_HScanResultSub {
	u8 bssid[WLAN_BSSID_LEN];
	u8 bssid[WLAN_BSSID_LEN];
	u16 bcnint;
	u16 bcnint;
	u16 capinfo;
	u16 capinfo;
	hfa384x_bytestr32_t ssid;
	struct hfa384x_bytestr32 ssid;
	u8 supprates[10];	/* 802.11 info element */
	u8 supprates[10];	/* 802.11 info element */
	u16 proberesp_rate;
	u16 proberesp_rate;
	u16 atim;
	u16 atim;
+2 −2
Original line number Original line Diff line number Diff line
@@ -1173,7 +1173,7 @@ void prism2sta_processing_defer(struct work_struct *data)
{
{
	hfa384x_t *hw = container_of(data, struct hfa384x, link_bh);
	hfa384x_t *hw = container_of(data, struct hfa384x, link_bh);
	struct wlandevice *wlandev = hw->wlandev;
	struct wlandevice *wlandev = hw->wlandev;
	hfa384x_bytestr32_t ssid;
	struct hfa384x_bytestr32 ssid;
	int result;
	int result;


	/* First let's process the auth frames */
	/* First let's process the auth frames */
@@ -1916,7 +1916,7 @@ void prism2sta_commsqual_defer(struct work_struct *data)
{
{
	hfa384x_t *hw = container_of(data, struct hfa384x, commsqual_bh);
	hfa384x_t *hw = container_of(data, struct hfa384x, commsqual_bh);
	struct wlandevice *wlandev = hw->wlandev;
	struct wlandevice *wlandev = hw->wlandev;
	hfa384x_bytestr32_t ssid;
	struct hfa384x_bytestr32 ssid;
	struct p80211msg_dot11req_mibget msg;
	struct p80211msg_dot11req_mibget msg;
	struct p80211item_uint32 *mibitem = (struct p80211item_uint32 *)
	struct p80211item_uint32 *mibitem = (struct p80211item_uint32 *)
						&msg.mibattribute.data;
						&msg.mibattribute.data;