Staging: wlan-ng: fix sparse warnings for static functions
Fix sparse warnings for static functions * drivers/staging/wlan-ng/cfg80211.c:101:5: warning: symbol 'prism2_change_virtual_intf' was not declared. Signed-off-by: Teodora Baluta <teobaluta@gmail.com> Signed-off-by: Zach Brown <zab@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Родитель
6973c6b90a
Коммит
55da06eba8
|
@ -98,7 +98,7 @@ static int prism2_domibset_pstr32(wlandevice_t *wlandev,
|
||||||
|
|
||||||
|
|
||||||
/* The interface functions, called by the cfg80211 layer */
|
/* The interface functions, called by the cfg80211 layer */
|
||||||
int prism2_change_virtual_intf(struct wiphy *wiphy,
|
static int prism2_change_virtual_intf(struct wiphy *wiphy,
|
||||||
struct net_device *dev,
|
struct net_device *dev,
|
||||||
enum nl80211_iftype type, u32 *flags,
|
enum nl80211_iftype type, u32 *flags,
|
||||||
struct vif_params *params)
|
struct vif_params *params)
|
||||||
|
@ -140,7 +140,7 @@ exit:
|
||||||
return err;
|
return err;
|
||||||
}
|
}
|
||||||
|
|
||||||
int prism2_add_key(struct wiphy *wiphy, struct net_device *dev,
|
static int prism2_add_key(struct wiphy *wiphy, struct net_device *dev,
|
||||||
u8 key_index, bool pairwise, const u8 *mac_addr,
|
u8 key_index, bool pairwise, const u8 *mac_addr,
|
||||||
struct key_params *params)
|
struct key_params *params)
|
||||||
{
|
{
|
||||||
|
@ -199,8 +199,9 @@ exit:
|
||||||
return err;
|
return err;
|
||||||
}
|
}
|
||||||
|
|
||||||
int prism2_get_key(struct wiphy *wiphy, struct net_device *dev,
|
static int prism2_get_key(struct wiphy *wiphy, struct net_device *dev,
|
||||||
u8 key_index, bool pairwise, const u8 *mac_addr, void *cookie,
|
u8 key_index, bool pairwise,
|
||||||
|
const u8 *mac_addr, void *cookie,
|
||||||
void (*callback)(void *cookie, struct key_params*))
|
void (*callback)(void *cookie, struct key_params*))
|
||||||
{
|
{
|
||||||
wlandevice_t *wlandev = dev->ml_priv;
|
wlandevice_t *wlandev = dev->ml_priv;
|
||||||
|
@ -228,7 +229,7 @@ int prism2_get_key(struct wiphy *wiphy, struct net_device *dev,
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
int prism2_del_key(struct wiphy *wiphy, struct net_device *dev,
|
static int prism2_del_key(struct wiphy *wiphy, struct net_device *dev,
|
||||||
u8 key_index, bool pairwise, const u8 *mac_addr)
|
u8 key_index, bool pairwise, const u8 *mac_addr)
|
||||||
{
|
{
|
||||||
wlandevice_t *wlandev = dev->ml_priv;
|
wlandevice_t *wlandev = dev->ml_priv;
|
||||||
|
@ -274,7 +275,7 @@ exit:
|
||||||
return err;
|
return err;
|
||||||
}
|
}
|
||||||
|
|
||||||
int prism2_set_default_key(struct wiphy *wiphy, struct net_device *dev,
|
static int prism2_set_default_key(struct wiphy *wiphy, struct net_device *dev,
|
||||||
u8 key_index, bool unicast, bool multicast)
|
u8 key_index, bool unicast, bool multicast)
|
||||||
{
|
{
|
||||||
wlandevice_t *wlandev = dev->ml_priv;
|
wlandevice_t *wlandev = dev->ml_priv;
|
||||||
|
@ -293,7 +294,7 @@ int prism2_set_default_key(struct wiphy *wiphy, struct net_device *dev,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
int prism2_get_station(struct wiphy *wiphy, struct net_device *dev,
|
static int prism2_get_station(struct wiphy *wiphy, struct net_device *dev,
|
||||||
u8 *mac, struct station_info *sinfo)
|
u8 *mac, struct station_info *sinfo)
|
||||||
{
|
{
|
||||||
wlandevice_t *wlandev = dev->ml_priv;
|
wlandevice_t *wlandev = dev->ml_priv;
|
||||||
|
@ -327,7 +328,7 @@ int prism2_get_station(struct wiphy *wiphy, struct net_device *dev,
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
int prism2_scan(struct wiphy *wiphy, struct cfg80211_scan_request *request)
|
static int prism2_scan(struct wiphy *wiphy, struct cfg80211_scan_request *request)
|
||||||
{
|
{
|
||||||
struct net_device *dev;
|
struct net_device *dev;
|
||||||
struct prism2_wiphy_private *priv = wiphy_priv(wiphy);
|
struct prism2_wiphy_private *priv = wiphy_priv(wiphy);
|
||||||
|
@ -436,7 +437,7 @@ exit:
|
||||||
return err;
|
return err;
|
||||||
}
|
}
|
||||||
|
|
||||||
int prism2_set_wiphy_params(struct wiphy *wiphy, u32 changed)
|
static int prism2_set_wiphy_params(struct wiphy *wiphy, u32 changed)
|
||||||
{
|
{
|
||||||
struct prism2_wiphy_private *priv = wiphy_priv(wiphy);
|
struct prism2_wiphy_private *priv = wiphy_priv(wiphy);
|
||||||
wlandevice_t *wlandev = priv->wlandev;
|
wlandevice_t *wlandev = priv->wlandev;
|
||||||
|
@ -478,7 +479,7 @@ exit:
|
||||||
return err;
|
return err;
|
||||||
}
|
}
|
||||||
|
|
||||||
int prism2_connect(struct wiphy *wiphy, struct net_device *dev,
|
static int prism2_connect(struct wiphy *wiphy, struct net_device *dev,
|
||||||
struct cfg80211_connect_params *sme)
|
struct cfg80211_connect_params *sme)
|
||||||
{
|
{
|
||||||
wlandevice_t *wlandev = dev->ml_priv;
|
wlandevice_t *wlandev = dev->ml_priv;
|
||||||
|
@ -602,7 +603,7 @@ exit:
|
||||||
return err;
|
return err;
|
||||||
}
|
}
|
||||||
|
|
||||||
int prism2_disconnect(struct wiphy *wiphy, struct net_device *dev,
|
static int prism2_disconnect(struct wiphy *wiphy, struct net_device *dev,
|
||||||
u16 reason_code)
|
u16 reason_code)
|
||||||
{
|
{
|
||||||
wlandevice_t *wlandev = dev->ml_priv;
|
wlandevice_t *wlandev = dev->ml_priv;
|
||||||
|
@ -626,19 +627,19 @@ int prism2_disconnect(struct wiphy *wiphy, struct net_device *dev,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
int prism2_join_ibss(struct wiphy *wiphy, struct net_device *dev,
|
static int prism2_join_ibss(struct wiphy *wiphy, struct net_device *dev,
|
||||||
struct cfg80211_ibss_params *params)
|
struct cfg80211_ibss_params *params)
|
||||||
{
|
{
|
||||||
return -EOPNOTSUPP;
|
return -EOPNOTSUPP;
|
||||||
}
|
}
|
||||||
|
|
||||||
int prism2_leave_ibss(struct wiphy *wiphy, struct net_device *dev)
|
static int prism2_leave_ibss(struct wiphy *wiphy, struct net_device *dev)
|
||||||
{
|
{
|
||||||
return -EOPNOTSUPP;
|
return -EOPNOTSUPP;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
int prism2_set_tx_power(struct wiphy *wiphy, struct wireless_dev *wdev,
|
static int prism2_set_tx_power(struct wiphy *wiphy, struct wireless_dev *wdev,
|
||||||
enum nl80211_tx_power_setting type, int mbm)
|
enum nl80211_tx_power_setting type, int mbm)
|
||||||
{
|
{
|
||||||
struct prism2_wiphy_private *priv = wiphy_priv(wiphy);
|
struct prism2_wiphy_private *priv = wiphy_priv(wiphy);
|
||||||
|
@ -665,7 +666,7 @@ exit:
|
||||||
return err;
|
return err;
|
||||||
}
|
}
|
||||||
|
|
||||||
int prism2_get_tx_power(struct wiphy *wiphy, struct wireless_dev *wdev,
|
static int prism2_get_tx_power(struct wiphy *wiphy, struct wireless_dev *wdev,
|
||||||
int *dbm)
|
int *dbm)
|
||||||
{
|
{
|
||||||
struct prism2_wiphy_private *priv = wiphy_priv(wiphy);
|
struct prism2_wiphy_private *priv = wiphy_priv(wiphy);
|
||||||
|
|
Загрузка…
Ссылка в новой задаче