diff options
author | Wey-Yi Guy <wey-yi.w.guy@intel.com> | 2009-05-08 16:44:44 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-05-11 15:24:04 -0400 |
commit | 0b4d0ab44fa2f7bda7b14312741ba3f337a02d5a (patch) | |
tree | f99a61c913e82fc185816ae2cfaadbc95e5999b6 /drivers/net | |
parent | 38167459da50e3fe9a10635308bfb0048cc36e8e (diff) |
iwlwifi: show qos AC parameters
Show current qos AC parameters in sysfs
Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
Signed-off-by: Reinette Chatre <reinette.chatre@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-agn.c | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-agn.c b/drivers/net/wireless/iwlwifi/iwl-agn.c index 13a35dc710a4..3ebf6cf53a51 100644 --- a/drivers/net/wireless/iwlwifi/iwl-agn.c +++ b/drivers/net/wireless/iwlwifi/iwl-agn.c | |||
@@ -2475,6 +2475,26 @@ static ssize_t show_power_level(struct device *d, | |||
2475 | static DEVICE_ATTR(power_level, S_IWUSR | S_IRUSR, show_power_level, | 2475 | static DEVICE_ATTR(power_level, S_IWUSR | S_IRUSR, show_power_level, |
2476 | store_power_level); | 2476 | store_power_level); |
2477 | 2477 | ||
2478 | static ssize_t show_qos(struct device *d, | ||
2479 | struct device_attribute *attr, char *buf) | ||
2480 | { | ||
2481 | struct iwl_priv *priv = (struct iwl_priv *)d->driver_data; | ||
2482 | char *p = buf; | ||
2483 | int q; | ||
2484 | |||
2485 | for (q = 0; q < AC_NUM; q++) { | ||
2486 | p += sprintf(p, "\tcw_min\tcw_max\taifsn\ttxop\n"); | ||
2487 | p += sprintf(p, "AC[%d]\t%u\t%u\t%u\t%u\n", q, | ||
2488 | priv->qos_data.def_qos_parm.ac[q].cw_min, | ||
2489 | priv->qos_data.def_qos_parm.ac[q].cw_max, | ||
2490 | priv->qos_data.def_qos_parm.ac[q].aifsn, | ||
2491 | priv->qos_data.def_qos_parm.ac[q].edca_txop); | ||
2492 | } | ||
2493 | |||
2494 | return p - buf + 1; | ||
2495 | } | ||
2496 | |||
2497 | static DEVICE_ATTR(qos, S_IRUGO, show_qos, NULL); | ||
2478 | 2498 | ||
2479 | static ssize_t show_statistics(struct device *d, | 2499 | static ssize_t show_statistics(struct device *d, |
2480 | struct device_attribute *attr, char *buf) | 2500 | struct device_attribute *attr, char *buf) |
@@ -2572,7 +2592,7 @@ static struct attribute *iwl_sysfs_entries[] = { | |||
2572 | &dev_attr_debug_level.attr, | 2592 | &dev_attr_debug_level.attr, |
2573 | #endif | 2593 | #endif |
2574 | &dev_attr_version.attr, | 2594 | &dev_attr_version.attr, |
2575 | 2595 | &dev_attr_qos.attr, | |
2576 | NULL | 2596 | NULL |
2577 | }; | 2597 | }; |
2578 | 2598 | ||