forked from Minki/linux
iwlwifi: kill retry_rate sysfs for iwlagn
This patch kills retry_rate in sysfs for iwlagn. It's not used. Signed-off-by: Tomas Winkler <tomas.winkler@intel.com> Signed-off-by: Zhu Yi <yi.zhu@intel.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
parent
2ddfa129bb
commit
b306b82c58
@ -3525,31 +3525,6 @@ static ssize_t store_filter_flags(struct device *d,
|
||||
static DEVICE_ATTR(filter_flags, S_IWUSR | S_IRUGO, show_filter_flags,
|
||||
store_filter_flags);
|
||||
|
||||
static ssize_t store_retry_rate(struct device *d,
|
||||
struct device_attribute *attr,
|
||||
const char *buf, size_t count)
|
||||
{
|
||||
struct iwl_priv *priv = dev_get_drvdata(d);
|
||||
long val;
|
||||
int ret = strict_strtol(buf, 10, &val);
|
||||
if (!ret)
|
||||
return ret;
|
||||
|
||||
priv->retry_rate = (val > 0) ? val : 1;
|
||||
|
||||
return count;
|
||||
}
|
||||
|
||||
static ssize_t show_retry_rate(struct device *d,
|
||||
struct device_attribute *attr, char *buf)
|
||||
{
|
||||
struct iwl_priv *priv = dev_get_drvdata(d);
|
||||
return sprintf(buf, "%d", priv->retry_rate);
|
||||
}
|
||||
|
||||
static DEVICE_ATTR(retry_rate, S_IWUSR | S_IRUSR, show_retry_rate,
|
||||
store_retry_rate);
|
||||
|
||||
static ssize_t store_power_level(struct device *d,
|
||||
struct device_attribute *attr,
|
||||
const char *buf, size_t count)
|
||||
@ -3705,7 +3680,6 @@ static struct attribute *iwl_sysfs_entries[] = {
|
||||
&dev_attr_flags.attr,
|
||||
&dev_attr_filter_flags.attr,
|
||||
&dev_attr_power_level.attr,
|
||||
&dev_attr_retry_rate.attr,
|
||||
&dev_attr_statistics.attr,
|
||||
&dev_attr_temperature.attr,
|
||||
&dev_attr_tx_power.attr,
|
||||
|
@ -863,7 +863,6 @@ int iwl_init_drv(struct iwl_priv *priv)
|
||||
{
|
||||
int ret;
|
||||
|
||||
priv->retry_rate = 1;
|
||||
priv->ibss_beacon = NULL;
|
||||
|
||||
spin_lock_init(&priv->lock);
|
||||
|
Loading…
Reference in New Issue
Block a user