1 #include <linux/utsname.h>
16 if (wdev->
wiphy->fw_version[0])
26 static int cfg80211_get_regs_len(
struct net_device *dev)
41 static void cfg80211_get_ringparam(
struct net_device *dev,
47 memset(rp, 0,
sizeof(*rp));
49 if (rdev->
ops->get_ringparam)
50 rdev->
ops->get_ringparam(wdev->
wiphy,
55 static int cfg80211_set_ringparam(
struct net_device *dev,
64 if (rdev->
ops->set_ringparam)
65 return rdev->
ops->set_ringparam(wdev->
wiphy,
71 static int cfg80211_get_sset_count(
struct net_device *dev,
int sset)
75 if (rdev->
ops->get_et_sset_count)
76 return rdev->
ops->get_et_sset_count(wdev->
wiphy, dev, sset);
80 static void cfg80211_get_stats(
struct net_device *dev,
85 if (rdev->
ops->get_et_stats)
86 rdev->
ops->get_et_stats(wdev->
wiphy, dev, stats, data);
89 static void cfg80211_get_strings(
struct net_device *dev,
u32 sset,
u8 *data)
93 if (rdev->
ops->get_et_strings)
94 rdev->
ops->get_et_strings(wdev->
wiphy, dev, sset, data);
98 .get_drvinfo = cfg80211_get_drvinfo,
99 .get_regs_len = cfg80211_get_regs_len,
100 .get_regs = cfg80211_get_regs,
102 .get_ringparam = cfg80211_get_ringparam,
103 .set_ringparam = cfg80211_set_ringparam,
104 .get_strings = cfg80211_get_strings,
105 .get_ethtool_stats = cfg80211_get_stats,
106 .get_sset_count = cfg80211_get_sset_count,