2008-10-29 17:53:58

by Jouni Malinen

[permalink] [raw]
Subject: [PATCH 3/4] mac80211_hwsim: Debug info for TX queue parameters

Provide detailed information on TX queue parameter changes to make it
easier to debug mac80211 functionality.

Signed-off-by: Jouni Malinen <[email protected]>

Index: wireless-testing/drivers/net/wireless/mac80211_hwsim.c
===================================================================
--- wireless-testing.orig/drivers/net/wireless/mac80211_hwsim.c 2008-10-29 13:27:50.000000000 +0200
+++ wireless-testing/drivers/net/wireless/mac80211_hwsim.c 2008-10-29 13:36:20.000000000 +0200
@@ -468,6 +468,17 @@
return 0;
}

+static int mac80211_hwsim_conf_tx(
+ struct ieee80211_hw *hw, u16 queue,
+ const struct ieee80211_tx_queue_params *params)
+{
+ printk(KERN_DEBUG "%s:%s (queue=%d txop=%d cw_min=%d cw_max=%d "
+ "aifs=%d)\n",
+ wiphy_name(hw->wiphy), __func__, queue,
+ params->txop, params->cw_min, params->cw_max, params->aifs);
+ return 0;
+}
+
static const struct ieee80211_ops mac80211_hwsim_ops =
{
.tx = mac80211_hwsim_tx,
@@ -481,6 +492,7 @@
.bss_info_changed = mac80211_hwsim_bss_info_changed,
.sta_notify = mac80211_hwsim_sta_notify,
.set_tim = mac80211_hwsim_set_tim,
+ .conf_tx = mac80211_hwsim_conf_tx,
};



--

--
Jouni Malinen PGP id EFC895FA


2008-10-30 10:44:59

by Johannes Berg

[permalink] [raw]
Subject: Re: [PATCH 3/4] mac80211_hwsim: Debug info for TX queue parameters

On Wed, 2008-10-29 at 19:49 +0200, Jouni Malinen wrote:
> plain text document attachment (hwsim_tx_conf.patch)
> Provide detailed information on TX queue parameter changes to make it
> easier to debug mac80211 functionality.
>
> Signed-off-by: Jouni Malinen <[email protected]>

Acked-by: Johannes Berg <[email protected]>

> Index: wireless-testing/drivers/net/wireless/mac80211_hwsim.c
> ===================================================================
> --- wireless-testing.orig/drivers/net/wireless/mac80211_hwsim.c 2008-10-29 13:27:50.000000000 +0200
> +++ wireless-testing/drivers/net/wireless/mac80211_hwsim.c 2008-10-29 13:36:20.000000000 +0200
> @@ -468,6 +468,17 @@
> return 0;
> }
>
> +static int mac80211_hwsim_conf_tx(
> + struct ieee80211_hw *hw, u16 queue,
> + const struct ieee80211_tx_queue_params *params)
> +{
> + printk(KERN_DEBUG "%s:%s (queue=%d txop=%d cw_min=%d cw_max=%d "
> + "aifs=%d)\n",
> + wiphy_name(hw->wiphy), __func__, queue,
> + params->txop, params->cw_min, params->cw_max, params->aifs);
> + return 0;
> +}
> +
> static const struct ieee80211_ops mac80211_hwsim_ops =
> {
> .tx = mac80211_hwsim_tx,
> @@ -481,6 +492,7 @@
> .bss_info_changed = mac80211_hwsim_bss_info_changed,
> .sta_notify = mac80211_hwsim_sta_notify,
> .set_tim = mac80211_hwsim_set_tim,
> + .conf_tx = mac80211_hwsim_conf_tx,
> };
>
>
>
> --
>


Attachments:
signature.asc (836.00 B)
This is a digitally signed message part