Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a3442155 authored by Hamad Kadmany's avatar Hamad Kadmany
Browse files

cfg80211: export cfg80211_get_drvinfo from ethtool



The function is useful for re-use by drivers
implementing their own ethtool

Change-Id: I08360e8ee333021988c0974684f003fece20ff96
Signed-off-by: default avatarHamad Kadmany <hkadmany@codeaurora.org>
parent 7e5f74b2
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -4575,6 +4575,8 @@ void cfg80211_key_mgmt_auth(struct net_device *dev,
			    struct cfg80211_auth_params *auth_params,
			    gfp_t gfp);

void cfg80211_get_drvinfo(struct net_device *dev, struct ethtool_drvinfo *info);

/* Logging, debugging and troubleshooting/diagnostic helpers. */

/* wiphy_printk helpers, similar to dev_printk */
+2 −2
Original line number Diff line number Diff line
@@ -4,8 +4,7 @@
#include "ethtool.h"
#include "rdev-ops.h"

static void cfg80211_get_drvinfo(struct net_device *dev,
					struct ethtool_drvinfo *info)
void cfg80211_get_drvinfo(struct net_device *dev, struct ethtool_drvinfo *info)
{
	struct wireless_dev *wdev = dev->ieee80211_ptr;

@@ -23,6 +22,7 @@ static void cfg80211_get_drvinfo(struct net_device *dev,
	strlcpy(info->bus_info, dev_name(wiphy_dev(wdev->wiphy)),
		sizeof(info->bus_info));
}
EXPORT_SYMBOL(cfg80211_get_drvinfo);

static int cfg80211_get_regs_len(struct net_device *dev)
{