Commit b26b2325 authored by Sergio Paracuellos's avatar Sergio Paracuellos Committed by Greg Kroah-Hartman

staging: wlan-ng: avoid new typedef: p80211item_uint32_t

This patch fixes the following checkpatch.pl warning in p80211types.h:
WARNING: do not add new typedefs

It applies for typedef p80211item_uint32_t
Signed-off-by: default avatarSergio Paracuellos <sergio.paracuellos@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent ac033ec9
...@@ -72,8 +72,8 @@ static int prism2_result2err(int prism2_result) ...@@ -72,8 +72,8 @@ static int prism2_result2err(int prism2_result)
static int prism2_domibset_uint32(struct wlandevice *wlandev, u32 did, u32 data) static int prism2_domibset_uint32(struct wlandevice *wlandev, u32 did, u32 data)
{ {
struct p80211msg_dot11req_mibset msg; struct p80211msg_dot11req_mibset msg;
p80211item_uint32_t *mibitem = struct p80211item_uint32 *mibitem =
(p80211item_uint32_t *)&msg.mibattribute.data; (struct p80211item_uint32 *)&msg.mibattribute.data;
msg.msgcode = DIDmsg_dot11req_mibset; msg.msgcode = DIDmsg_dot11req_mibset;
mibitem->did = did; mibitem->did = did;
...@@ -626,11 +626,11 @@ static int prism2_get_tx_power(struct wiphy *wiphy, struct wireless_dev *wdev, ...@@ -626,11 +626,11 @@ static int prism2_get_tx_power(struct wiphy *wiphy, struct wireless_dev *wdev,
struct prism2_wiphy_private *priv = wiphy_priv(wiphy); struct prism2_wiphy_private *priv = wiphy_priv(wiphy);
struct wlandevice *wlandev = priv->wlandev; struct wlandevice *wlandev = priv->wlandev;
struct p80211msg_dot11req_mibget msg; struct p80211msg_dot11req_mibget msg;
p80211item_uint32_t *mibitem; struct p80211item_uint32 *mibitem;
int result; int result;
int err = 0; int err = 0;
mibitem = (p80211item_uint32_t *)&msg.mibattribute.data; mibitem = (struct p80211item_uint32 *)&msg.mibattribute.data;
msg.msgcode = DIDmsg_dot11req_mibget; msg.msgcode = DIDmsg_dot11req_mibget;
mibitem->did = mibitem->did =
DIDmib_dot11phy_dot11PhyTxPowerTable_dot11CurrentTxPowerLevel; DIDmib_dot11phy_dot11PhyTxPowerTable_dot11CurrentTxPowerLevel;
......
This diff is collapsed.
...@@ -616,7 +616,7 @@ static int p80211knetdev_set_mac_address(netdevice_t *dev, void *addr) ...@@ -616,7 +616,7 @@ static int p80211knetdev_set_mac_address(netdevice_t *dev, void *addr)
struct p80211msg_dot11req_mibset dot11req; struct p80211msg_dot11req_mibset dot11req;
p80211item_unk392_t *mibattr; p80211item_unk392_t *mibattr;
p80211item_pstr6_t *macaddr; p80211item_pstr6_t *macaddr;
p80211item_uint32_t *resultcode; struct p80211item_uint32 *resultcode;
int result; int result;
/* If we're running, we don't allow MAC address changes */ /* If we're running, we don't allow MAC address changes */
......
...@@ -270,12 +270,12 @@ struct p80211itemd { ...@@ -270,12 +270,12 @@ struct p80211itemd {
} __packed; } __packed;
/* message data item for int, BOUNDEDINT, ENUMINT */ /* message data item for int, BOUNDEDINT, ENUMINT */
typedef struct p80211item_uint32 { struct p80211item_uint32 {
u32 did; u32 did;
u16 status; u16 status;
u16 len; u16 len;
u32 data; u32 data;
} __packed p80211item_uint32_t; } __packed;
/* message data item for OCTETSTR, DISPLAYSTR */ /* message data item for OCTETSTR, DISPLAYSTR */
typedef struct p80211item_pstr6 { typedef struct p80211item_pstr6 {
......
...@@ -1916,7 +1916,7 @@ void prism2sta_commsqual_defer(struct work_struct *data) ...@@ -1916,7 +1916,7 @@ void prism2sta_commsqual_defer(struct work_struct *data)
struct wlandevice *wlandev = hw->wlandev; struct wlandevice *wlandev = hw->wlandev;
hfa384x_bytestr32_t ssid; hfa384x_bytestr32_t ssid;
struct p80211msg_dot11req_mibget msg; struct p80211msg_dot11req_mibget msg;
p80211item_uint32_t *mibitem = (p80211item_uint32_t *) struct p80211item_uint32 *mibitem = (struct p80211item_uint32 *)
&msg.mibattribute.data; &msg.mibattribute.data;
int result = 0; int result = 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment