aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/libertas
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/libertas')
-rw-r--r--drivers/net/wireless/libertas/decl.h3
-rw-r--r--drivers/net/wireless/libertas/ethtool.c9
-rw-r--r--drivers/net/wireless/libertas/wext.c17
3 files changed, 5 insertions, 24 deletions
diff --git a/drivers/net/wireless/libertas/decl.h b/drivers/net/wireless/libertas/decl.h
index 1ca747b28ef5..4aea421f07ce 100644
--- a/drivers/net/wireless/libertas/decl.h
+++ b/drivers/net/wireless/libertas/decl.h
@@ -35,9 +35,6 @@ void lbs_interrupt(struct lbs_private *priv);
35int lbs_set_radio_control(struct lbs_private *priv); 35int lbs_set_radio_control(struct lbs_private *priv);
36u32 lbs_fw_index_to_data_rate(u8 index); 36u32 lbs_fw_index_to_data_rate(u8 index);
37u8 lbs_data_rate_to_fw_index(u32 rate); 37u8 lbs_data_rate_to_fw_index(u32 rate);
38void lbs_get_fwversion(struct lbs_private *priv,
39 char *fwversion,
40 int maxlen);
41 38
42/** The proc fs interface */ 39/** The proc fs interface */
43int lbs_process_rx_command(struct lbs_private *priv); 40int lbs_process_rx_command(struct lbs_private *priv);
diff --git a/drivers/net/wireless/libertas/ethtool.c b/drivers/net/wireless/libertas/ethtool.c
index be226c1885a9..dcfdb404678b 100644
--- a/drivers/net/wireless/libertas/ethtool.c
+++ b/drivers/net/wireless/libertas/ethtool.c
@@ -24,13 +24,14 @@ static void lbs_ethtool_get_drvinfo(struct net_device *dev,
24 struct ethtool_drvinfo *info) 24 struct ethtool_drvinfo *info)
25{ 25{
26 struct lbs_private *priv = (struct lbs_private *) dev->priv; 26 struct lbs_private *priv = (struct lbs_private *) dev->priv;
27 char fwver[32];
28
29 lbs_get_fwversion(priv, fwver, sizeof(fwver) - 1);
30 27
28 snprintf(info->fw_version, 32, "%u.%u.%u.p%u",
29 priv->fwrelease >> 24 & 0xff,
30 priv->fwrelease >> 16 & 0xff,
31 priv->fwrelease >> 8 & 0xff,
32 priv->fwrelease & 0xff);
31 strcpy(info->driver, "libertas"); 33 strcpy(info->driver, "libertas");
32 strcpy(info->version, lbs_driver_version); 34 strcpy(info->version, lbs_driver_version);
33 strcpy(info->fw_version, fwver);
34} 35}
35 36
36/* All 8388 parts have 16KiB EEPROM size at the time of writing. 37/* All 8388 parts have 16KiB EEPROM size at the time of writing.
diff --git a/drivers/net/wireless/libertas/wext.c b/drivers/net/wireless/libertas/wext.c
index 4ab5b8523ed9..0973d015a520 100644
--- a/drivers/net/wireless/libertas/wext.c
+++ b/drivers/net/wireless/libertas/wext.c
@@ -2060,23 +2060,6 @@ static int lbs_set_wap(struct net_device *dev, struct iw_request_info *info,
2060 return ret; 2060 return ret;
2061} 2061}
2062 2062
2063void lbs_get_fwversion(struct lbs_private *priv, char *fwversion, int maxlen)
2064{
2065 char fwver[32];
2066
2067 mutex_lock(&priv->lock);
2068
2069 sprintf(fwver, "%u.%u.%u.p%u",
2070 priv->fwrelease >> 24 & 0xff,
2071 priv->fwrelease >> 16 & 0xff,
2072 priv->fwrelease >> 8 & 0xff,
2073 priv->fwrelease & 0xff);
2074
2075 mutex_unlock(&priv->lock);
2076 snprintf(fwversion, maxlen, fwver);
2077}
2078
2079
2080/* 2063/*
2081 * iwconfig settable callbacks 2064 * iwconfig settable callbacks
2082 */ 2065 */