X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=kernel%2Fdrivers%2Fstaging%2Fwlan-ng%2Fcfg80211.c;h=8c1e3f06a215675df58d1fee29ece48946a7a3a3;hb=e09b41010ba33a20a87472ee821fa407a5b8da36;hp=7c87aecf474444a908dd02f780a7649f9f93a187;hpb=9ca8dbcc65cfc63d6f5ef3312a33184e1d726e00;p=kvmfornfv.git diff --git a/kernel/drivers/staging/wlan-ng/cfg80211.c b/kernel/drivers/staging/wlan-ng/cfg80211.c index 7c87aecf4..8c1e3f06a 100644 --- a/kernel/drivers/staging/wlan-ng/cfg80211.c +++ b/kernel/drivers/staging/wlan-ng/cfg80211.c @@ -2,7 +2,6 @@ #include "hfa384x.h" #include "prism2mgmt.h" - /* Prism2 channel/frequency/bitrate declarations */ static const struct ieee80211_channel prism2_channels[] = { { .center_freq = 2412 }, @@ -34,7 +33,6 @@ static const u32 prism2_cipher_suites[PRISM2_NUM_CIPHER_SUITES] = { WLAN_CIPHER_SUITE_WEP104 }; - /* prism2 device private data */ struct prism2_wiphy_private { wlandevice_t *wlandev; @@ -48,7 +46,6 @@ struct prism2_wiphy_private { static const void * const prism2_wiphy_privid = &prism2_wiphy_privid; - /* Helper Functions */ static int prism2_result2err(int prism2_result) { @@ -100,7 +97,6 @@ static int prism2_domibset_pstr32(wlandevice_t *wlandev, return p80211req_dorequest(wlandev, (u8 *) &msg); } - /* The interface functions, called by the cfg80211 layer */ static int prism2_change_virtual_intf(struct wiphy *wiphy, struct net_device *dev, @@ -298,7 +294,6 @@ static int prism2_set_default_key(struct wiphy *wiphy, struct net_device *dev, return err; } - static int prism2_get_station(struct wiphy *wiphy, struct net_device *dev, const u8 *mac, struct station_info *sinfo) { @@ -322,7 +317,6 @@ static int prism2_get_station(struct wiphy *wiphy, struct net_device *dev, result = wlandev->mlmerequest(wlandev, (struct p80211msg *) &quality); - if (result == 0) { sinfo->txrate.legacy = quality.txrate.data; sinfo->filled |= BIT(NL80211_STA_INFO_TX_BITRATE); @@ -623,7 +617,6 @@ static int prism2_disconnect(struct wiphy *wiphy, struct net_device *dev, int result; int err = 0; - /* Do a join, with a bogus ssid. Thats the only way I can think of */ msg_join.msgcode = DIDmsg_lnxreq_autojoin; @@ -638,7 +631,6 @@ static int prism2_disconnect(struct wiphy *wiphy, struct net_device *dev, return err; } - static int prism2_join_ibss(struct wiphy *wiphy, struct net_device *dev, struct cfg80211_ibss_params *params) { @@ -650,7 +642,6 @@ static int prism2_leave_ibss(struct wiphy *wiphy, struct net_device *dev) return -EOPNOTSUPP; } - static int prism2_set_tx_power(struct wiphy *wiphy, struct wireless_dev *wdev, enum nl80211_tx_power_setting type, int mbm) { @@ -706,9 +697,6 @@ exit: return err; } - - - /* Interface callback functions, passing data back up to the cfg80211 layer */ void prism2_connect_result(wlandevice_t *wlandev, u8 failed) { @@ -722,7 +710,7 @@ void prism2_connect_result(wlandevice_t *wlandev, u8 failed) void prism2_disconnected(wlandevice_t *wlandev) { cfg80211_disconnected(wlandev->netdev, 0, NULL, - 0, GFP_KERNEL); + 0, false, GFP_KERNEL); } void prism2_roamed(wlandevice_t *wlandev) @@ -731,7 +719,6 @@ void prism2_roamed(wlandevice_t *wlandev) NULL, 0, NULL, 0, GFP_KERNEL); } - /* Structures for declaring wiphy interface */ static const struct cfg80211_ops prism2_usb_cfg_ops = { .change_virtual_intf = prism2_change_virtual_intf, @@ -750,7 +737,6 @@ static const struct cfg80211_ops prism2_usb_cfg_ops = { .get_tx_power = prism2_get_tx_power, }; - /* Functions to create/free wiphy interface */ static struct wiphy *wlan_create_wiphy(struct device *dev, wlandevice_t *wlandev) { @@ -788,7 +774,6 @@ static struct wiphy *wlan_create_wiphy(struct device *dev, wlandevice_t *wlandev return wiphy; } - static void wlan_free_wiphy(struct wiphy *wiphy) { wiphy_unregister(wiphy);