mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-18 22:34:48 +00:00
staging:wlan-ng:hfa384x.h: remove typedef struct hfa384x_bytestr __packed hfa384x_bytestr_t
This patch removes the checkpatch.pl warning "do not add new typedefs" and changes all source files that use that typedef. Also lines were shortened to 80 characters to do away with the checkpatch.pl warning "line over 80 characters" generated due to replacement of the hfa384x_bytestr_t by struct hfa384x_bytestr in prism2mgmt.c, prism2mgmt.h, prism2mib.c, prism2sta.c. Signed-off-by: Himangi Saraogi <himangi774@gmail.com> Reviewed-by: Josh Triplett <josh@joshtriplett.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
bb1da756e0
commit
b21199116a
@ -350,10 +350,10 @@ PD Record codes
|
||||
|
||||
/*-------------------------------------------------------------*/
|
||||
/* Commonly used basic types */
|
||||
typedef struct hfa384x_bytestr {
|
||||
struct hfa384x_bytestr {
|
||||
u16 len;
|
||||
u8 data[0];
|
||||
} __packed hfa384x_bytestr_t;
|
||||
} __packed;
|
||||
|
||||
typedef struct hfa384x_bytestr32 {
|
||||
u16 len;
|
||||
|
@ -525,7 +525,7 @@ int prism2mgmt_start(wlandevice_t *wlandev, void *msgp)
|
||||
|
||||
p80211pstrd_t *pstr;
|
||||
u8 bytebuf[80];
|
||||
hfa384x_bytestr_t *p2bytestr = (hfa384x_bytestr_t *) bytebuf;
|
||||
struct hfa384x_bytestr *p2bytestr = (struct hfa384x_bytestr *) bytebuf;
|
||||
u16 word;
|
||||
|
||||
wlandev->macmode = WLAN_MACMODE_NONE;
|
||||
@ -1019,7 +1019,7 @@ int prism2mgmt_autojoin(wlandevice_t *wlandev, void *msgp)
|
||||
struct p80211msg_lnxreq_autojoin *msg = msgp;
|
||||
p80211pstrd_t *pstr;
|
||||
u8 bytebuf[256];
|
||||
hfa384x_bytestr_t *p2bytestr = (hfa384x_bytestr_t *) bytebuf;
|
||||
struct hfa384x_bytestr *p2bytestr = (struct hfa384x_bytestr *) bytebuf;
|
||||
|
||||
wlandev->macmode = WLAN_MACMODE_NONE;
|
||||
|
||||
|
@ -92,8 +92,10 @@ void prism2mgmt_pstr2bytearea(u8 *bytearea, p80211pstrd_t *pstr);
|
||||
void prism2mgmt_bytearea2pstr(u8 *bytearea, p80211pstrd_t *pstr, int len);
|
||||
|
||||
/* byte string conversion functions*/
|
||||
void prism2mgmt_pstr2bytestr(hfa384x_bytestr_t *bytestr, p80211pstrd_t *pstr);
|
||||
void prism2mgmt_bytestr2pstr(hfa384x_bytestr_t *bytestr, p80211pstrd_t *pstr);
|
||||
void prism2mgmt_pstr2bytestr(struct hfa384x_bytestr *bytestr,
|
||||
p80211pstrd_t *pstr);
|
||||
void prism2mgmt_bytestr2pstr(struct hfa384x_bytestr *bytestr,
|
||||
p80211pstrd_t *pstr);
|
||||
|
||||
/* functions to convert Group Addresses */
|
||||
void prism2mgmt_get_grpaddr(u32 did, p80211pstrd_t *pstr, hfa384x_t *priv);
|
||||
|
@ -763,7 +763,8 @@ static int prism2mib_priv(struct mibrec *mib,
|
||||
*
|
||||
----------------------------------------------------------------*/
|
||||
|
||||
void prism2mgmt_pstr2bytestr(hfa384x_bytestr_t *bytestr, p80211pstrd_t *pstr)
|
||||
void prism2mgmt_pstr2bytestr(struct hfa384x_bytestr *bytestr,
|
||||
p80211pstrd_t *pstr)
|
||||
{
|
||||
bytestr->len = cpu_to_le16((u16) (pstr->len));
|
||||
memcpy(bytestr->data, pstr->data, pstr->len);
|
||||
@ -804,7 +805,8 @@ void prism2mgmt_pstr2bytearea(u8 *bytearea, p80211pstrd_t *pstr)
|
||||
*
|
||||
----------------------------------------------------------------*/
|
||||
|
||||
void prism2mgmt_bytestr2pstr(hfa384x_bytestr_t *bytestr, p80211pstrd_t *pstr)
|
||||
void prism2mgmt_bytestr2pstr(struct hfa384x_bytestr *bytestr,
|
||||
p80211pstrd_t *pstr)
|
||||
{
|
||||
pstr->len = (u8) (le16_to_cpu((u16) (bytestr->len)));
|
||||
memcpy(pstr->data, bytestr->data, pstr->len);
|
||||
|
@ -1279,7 +1279,7 @@ void prism2sta_processing_defer(struct work_struct *data)
|
||||
HFA384x_RID_CURRENTSSID, result);
|
||||
return;
|
||||
}
|
||||
prism2mgmt_bytestr2pstr((hfa384x_bytestr_t *) &ssid,
|
||||
prism2mgmt_bytestr2pstr((struct hfa384x_bytestr *) &ssid,
|
||||
(p80211pstrd_t *) &
|
||||
wlandev->ssid);
|
||||
|
||||
@ -1361,7 +1361,7 @@ void prism2sta_processing_defer(struct work_struct *data)
|
||||
HFA384x_RID_CURRENTSSID, result);
|
||||
return;
|
||||
}
|
||||
prism2mgmt_bytestr2pstr((hfa384x_bytestr_t *) &ssid,
|
||||
prism2mgmt_bytestr2pstr((struct hfa384x_bytestr *) &ssid,
|
||||
(p80211pstrd_t *) &wlandev->ssid);
|
||||
|
||||
hw->link_status = HFA384x_LINK_CONNECTED;
|
||||
@ -2037,7 +2037,7 @@ void prism2sta_commsqual_defer(struct work_struct *data)
|
||||
HFA384x_RID_CURRENTSSID, result);
|
||||
return;
|
||||
}
|
||||
prism2mgmt_bytestr2pstr((hfa384x_bytestr_t *) &ssid,
|
||||
prism2mgmt_bytestr2pstr((struct hfa384x_bytestr *) &ssid,
|
||||
(p80211pstrd_t *) &wlandev->ssid);
|
||||
|
||||
/* Reschedule timer */
|
||||
|
Loading…
x
Reference in New Issue
Block a user