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

staging: wlan-ng: avoid CamelCase: hfa384x_HostScanRequest_data

Replace CamelCase struct name and fields with underscores to comply
with the standard kernel coding style.
Signed-off-by: default avatarSergio Paracuellos <sergio.paracuellos@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent b937612f
...@@ -408,9 +408,9 @@ struct hfa384x_caplevel { ...@@ -408,9 +408,9 @@ struct hfa384x_caplevel {
#define HFA384x_CREATEIBSS_JOINCREATEIBSS 0 #define HFA384x_CREATEIBSS_JOINCREATEIBSS 0
/*-- Configuration Record: HostScanRequest (data portion only) --*/ /*-- Configuration Record: HostScanRequest (data portion only) --*/
struct hfa384x_HostScanRequest_data { struct hfa384x_host_scan_request_data {
u16 channelList; u16 channel_list;
u16 txRate; u16 tx_rate;
struct hfa384x_bytestr32 ssid; struct hfa384x_bytestr32 ssid;
} __packed; } __packed;
......
...@@ -123,7 +123,7 @@ int prism2mgmt_scan(struct wlandevice *wlandev, void *msgp) ...@@ -123,7 +123,7 @@ int prism2mgmt_scan(struct wlandevice *wlandev, void *msgp)
int i, timeout; int i, timeout;
int istmpenable = 0; int istmpenable = 0;
struct hfa384x_HostScanRequest_data scanreq; struct hfa384x_host_scan_request_data scanreq;
/* gatekeeper check */ /* gatekeeper check */
if (HFA384x_FIRMWARE_VERSION(hw->ident_sta_fw.major, if (HFA384x_FIRMWARE_VERSION(hw->ident_sta_fw.major,
...@@ -185,7 +185,7 @@ int prism2mgmt_scan(struct wlandevice *wlandev, void *msgp) ...@@ -185,7 +185,7 @@ int prism2mgmt_scan(struct wlandevice *wlandev, void *msgp)
/* set up the txrate to be 2MBPS. Should be fastest basicrate... */ /* set up the txrate to be 2MBPS. Should be fastest basicrate... */
word = HFA384x_RATEBIT_2; word = HFA384x_RATEBIT_2;
scanreq.txRate = cpu_to_le16(word); scanreq.tx_rate = cpu_to_le16(word);
/* set up the channel list */ /* set up the channel list */
word = 0; word = 0;
...@@ -197,7 +197,7 @@ int prism2mgmt_scan(struct wlandevice *wlandev, void *msgp) ...@@ -197,7 +197,7 @@ int prism2mgmt_scan(struct wlandevice *wlandev, void *msgp)
/* channel 1 is BIT 0 ... channel 14 is BIT 13 */ /* channel 1 is BIT 0 ... channel 14 is BIT 13 */
word |= (1 << (channel - 1)); word |= (1 << (channel - 1));
} }
scanreq.channelList = cpu_to_le16(word); scanreq.channel_list = cpu_to_le16(word);
/* set up the ssid, if present. */ /* set up the ssid, if present. */
scanreq.ssid.len = cpu_to_le16(msg->ssid.data.len); scanreq.ssid.len = cpu_to_le16(msg->ssid.data.len);
...@@ -293,7 +293,7 @@ int prism2mgmt_scan(struct wlandevice *wlandev, void *msgp) ...@@ -293,7 +293,7 @@ int prism2mgmt_scan(struct wlandevice *wlandev, void *msgp)
result = hfa384x_drvr_setconfig(hw, result = hfa384x_drvr_setconfig(hw,
HFA384x_RID_HOSTSCAN, &scanreq, HFA384x_RID_HOSTSCAN, &scanreq,
sizeof(struct hfa384x_HostScanRequest_data)); sizeof(struct hfa384x_host_scan_request_data));
if (result) { if (result) {
netdev_err(wlandev->netdev, netdev_err(wlandev->netdev,
"setconfig(SCANREQUEST) failed. result=%d\n", "setconfig(SCANREQUEST) failed. result=%d\n",
......
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