ethtool.c (cf9ce948f47640797bd19980e1d99c6d17d0bdc3) | ethtool.c (7826d43f2db45c9305a6e0ba165650e1a203f517) |
---|---|
1#include <linux/utsname.h> 2#include <net/cfg80211.h> 3#include "core.h" 4#include "ethtool.h" 5#include "rdev-ops.h" 6 7static void cfg80211_get_drvinfo(struct net_device *dev, 8 struct ethtool_drvinfo *info) 9{ 10 struct wireless_dev *wdev = dev->ieee80211_ptr; 11 12 strlcpy(info->driver, wiphy_dev(wdev->wiphy)->driver->name, 13 sizeof(info->driver)); 14 15 strlcpy(info->version, init_utsname()->release, sizeof(info->version)); 16 17 if (wdev->wiphy->fw_version[0]) | 1#include <linux/utsname.h> 2#include <net/cfg80211.h> 3#include "core.h" 4#include "ethtool.h" 5#include "rdev-ops.h" 6 7static void cfg80211_get_drvinfo(struct net_device *dev, 8 struct ethtool_drvinfo *info) 9{ 10 struct wireless_dev *wdev = dev->ieee80211_ptr; 11 12 strlcpy(info->driver, wiphy_dev(wdev->wiphy)->driver->name, 13 sizeof(info->driver)); 14 15 strlcpy(info->version, init_utsname()->release, sizeof(info->version)); 16 17 if (wdev->wiphy->fw_version[0]) |
18 strncpy(info->fw_version, wdev->wiphy->fw_version, | 18 strlcpy(info->fw_version, wdev->wiphy->fw_version, |
19 sizeof(info->fw_version)); 20 else | 19 sizeof(info->fw_version)); 20 else |
21 strncpy(info->fw_version, "N/A", sizeof(info->fw_version)); | 21 strlcpy(info->fw_version, "N/A", sizeof(info->fw_version)); |
22 23 strlcpy(info->bus_info, dev_name(wiphy_dev(wdev->wiphy)), 24 sizeof(info->bus_info)); 25} 26 27static int cfg80211_get_regs_len(struct net_device *dev) 28{ 29 /* For now, return 0... */ --- 77 unchanged lines hidden --- | 22 23 strlcpy(info->bus_info, dev_name(wiphy_dev(wdev->wiphy)), 24 sizeof(info->bus_info)); 25} 26 27static int cfg80211_get_regs_len(struct net_device *dev) 28{ 29 /* For now, return 0... */ --- 77 unchanged lines hidden --- |