Commit 0adf62bf authored by Bogicevic Sasa's avatar Bogicevic Sasa Committed by Greg Kroah-Hartman

drivers:staging:wlan-ng Fix all no space necesarry after a cast

This fixes all messages "no space necesarry after a cast" in cfg80211.c
file
Signed-off-by: default avatarBogicevic Sasa <brutallesale@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 35028fe1
...@@ -73,13 +73,13 @@ static int prism2_domibset_uint32(wlandevice_t *wlandev, u32 did, u32 data) ...@@ -73,13 +73,13 @@ static int prism2_domibset_uint32(wlandevice_t *wlandev, u32 did, u32 data)
{ {
struct p80211msg_dot11req_mibset msg; struct p80211msg_dot11req_mibset msg;
p80211item_uint32_t *mibitem = p80211item_uint32_t *mibitem =
(p80211item_uint32_t *) &msg.mibattribute.data; (p80211item_uint32_t *)&msg.mibattribute.data;
msg.msgcode = DIDmsg_dot11req_mibset; msg.msgcode = DIDmsg_dot11req_mibset;
mibitem->did = did; mibitem->did = did;
mibitem->data = data; mibitem->data = data;
return p80211req_dorequest(wlandev, (u8 *) &msg); return p80211req_dorequest(wlandev, (u8 *)&msg);
} }
static int prism2_domibset_pstr32(wlandevice_t *wlandev, static int prism2_domibset_pstr32(wlandevice_t *wlandev,
...@@ -87,14 +87,14 @@ static int prism2_domibset_pstr32(wlandevice_t *wlandev, ...@@ -87,14 +87,14 @@ static int prism2_domibset_pstr32(wlandevice_t *wlandev,
{ {
struct p80211msg_dot11req_mibset msg; struct p80211msg_dot11req_mibset msg;
p80211item_pstr32_t *mibitem = p80211item_pstr32_t *mibitem =
(p80211item_pstr32_t *) &msg.mibattribute.data; (p80211item_pstr32_t *)&msg.mibattribute.data;
msg.msgcode = DIDmsg_dot11req_mibset; msg.msgcode = DIDmsg_dot11req_mibset;
mibitem->did = did; mibitem->did = did;
mibitem->data.len = len; mibitem->data.len = len;
memcpy(mibitem->data.data, data, len); memcpy(mibitem->data.data, data, len);
return p80211req_dorequest(wlandev, (u8 *) &msg); return p80211req_dorequest(wlandev, (u8 *)&msg);
} }
/* The interface functions, called by the cfg80211 layer */ /* The interface functions, called by the cfg80211 layer */
...@@ -317,7 +317,7 @@ static int prism2_get_station(struct wiphy *wiphy, struct net_device *dev, ...@@ -317,7 +317,7 @@ static int prism2_get_station(struct wiphy *wiphy, struct net_device *dev,
if (wlandev->mlmerequest == NULL) if (wlandev->mlmerequest == NULL)
return -EOPNOTSUPP; return -EOPNOTSUPP;
result = wlandev->mlmerequest(wlandev, (struct p80211msg *) &quality); result = wlandev->mlmerequest(wlandev, (struct p80211msg *)&quality);
if (result == 0) { if (result == 0) {
sinfo->txrate.legacy = quality.txrate.data; sinfo->txrate.legacy = quality.txrate.data;
...@@ -389,7 +389,7 @@ static int prism2_scan(struct wiphy *wiphy, ...@@ -389,7 +389,7 @@ static int prism2_scan(struct wiphy *wiphy,
msg1.maxchanneltime.data = 250; msg1.maxchanneltime.data = 250;
msg1.minchanneltime.data = 200; msg1.minchanneltime.data = 200;
result = p80211req_dorequest(wlandev, (u8 *) &msg1); result = p80211req_dorequest(wlandev, (u8 *)&msg1);
if (result) { if (result) {
err = prism2_result2err(msg1.resultcode.data); err = prism2_result2err(msg1.resultcode.data);
goto exit; goto exit;
...@@ -404,7 +404,7 @@ static int prism2_scan(struct wiphy *wiphy, ...@@ -404,7 +404,7 @@ static int prism2_scan(struct wiphy *wiphy,
msg2.msgcode = DIDmsg_dot11req_scan_results; msg2.msgcode = DIDmsg_dot11req_scan_results;
msg2.bssindex.data = i; msg2.bssindex.data = i;
result = p80211req_dorequest(wlandev, (u8 *) &msg2); result = p80211req_dorequest(wlandev, (u8 *)&msg2);
if ((result != 0) || if ((result != 0) ||
(msg2.resultcode.data != P80211ENUM_resultcode_success)) { (msg2.resultcode.data != P80211ENUM_resultcode_success)) {
break; break;
...@@ -419,7 +419,7 @@ static int prism2_scan(struct wiphy *wiphy, ...@@ -419,7 +419,7 @@ static int prism2_scan(struct wiphy *wiphy,
bss = cfg80211_inform_bss(wiphy, bss = cfg80211_inform_bss(wiphy,
ieee80211_get_channel(wiphy, freq), ieee80211_get_channel(wiphy, freq),
CFG80211_BSS_FTYPE_UNKNOWN, CFG80211_BSS_FTYPE_UNKNOWN,
(const u8 *) &(msg2.bssid.data.data), (const u8 *)&(msg2.bssid.data.data),
msg2.timestamp.data, msg2.capinfo.data, msg2.timestamp.data, msg2.capinfo.data,
msg2.beaconperiod.data, msg2.beaconperiod.data,
ie_buf, ie_buf,
...@@ -603,7 +603,7 @@ static int prism2_connect(struct wiphy *wiphy, struct net_device *dev, ...@@ -603,7 +603,7 @@ static int prism2_connect(struct wiphy *wiphy, struct net_device *dev,
memcpy(msg_join.ssid.data.data, sme->ssid, length); memcpy(msg_join.ssid.data.data, sme->ssid, length);
msg_join.ssid.data.len = length; msg_join.ssid.data.len = length;
result = p80211req_dorequest(wlandev, (u8 *) &msg_join); result = p80211req_dorequest(wlandev, (u8 *)&msg_join);
exit: exit:
if (result) if (result)
...@@ -626,7 +626,7 @@ static int prism2_disconnect(struct wiphy *wiphy, struct net_device *dev, ...@@ -626,7 +626,7 @@ static int prism2_disconnect(struct wiphy *wiphy, struct net_device *dev,
memcpy(msg_join.ssid.data.data, "---", 3); memcpy(msg_join.ssid.data.data, "---", 3);
msg_join.ssid.data.len = 3; msg_join.ssid.data.len = 3;
result = p80211req_dorequest(wlandev, (u8 *) &msg_join); result = p80211req_dorequest(wlandev, (u8 *)&msg_join);
if (result) if (result)
err = -EFAULT; err = -EFAULT;
...@@ -682,12 +682,12 @@ static int prism2_get_tx_power(struct wiphy *wiphy, struct wireless_dev *wdev, ...@@ -682,12 +682,12 @@ static int prism2_get_tx_power(struct wiphy *wiphy, struct wireless_dev *wdev,
int result; int result;
int err = 0; int err = 0;
mibitem = (p80211item_uint32_t *) &msg.mibattribute.data; mibitem = (p80211item_uint32_t *)&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;
result = p80211req_dorequest(wlandev, (u8 *) &msg); result = p80211req_dorequest(wlandev, (u8 *)&msg);
if (result) { if (result) {
err = -EFAULT; err = -EFAULT;
......
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