From: Jouni Malinen <j@w1.fi>
To: "John W. Linville" <linville@tuxdriver.com>
Cc: Johannes Berg <johannes@sipsolutions.net>,
linux-wireless@vger.kernel.org
Subject: [PATCH 1/4] mac80211_hwsim: Debug info for BSS config changes
Date: Wed, 29 Oct 2008 19:49:35 +0200 [thread overview]
Message-ID: <20081029175220.543918201@localhost> (raw)
In-Reply-To: 20081029174934.817700763@localhost
Provide detailed information on BSS configuration changes to make it
easier to debug mac80211 functionality.
Signed-off-by: Jouni Malinen <jouni.malinen@atheros.com>
Index: wireless-testing/drivers/net/wireless/mac80211_hwsim.c
===================================================================
--- wireless-testing.orig/drivers/net/wireless/mac80211_hwsim.c
+++ wireless-testing/drivers/net/wireless/mac80211_hwsim.c
@@ -415,6 +415,37 @@ static void mac80211_hwsim_bss_info_chan
u32 changed)
{
hwsim_check_magic(vif);
+ printk(KERN_DEBUG "%s:%s(changed=0x%x)\n",
+ wiphy_name(hw->wiphy), __func__, changed);
+
+ if (changed & BSS_CHANGED_ASSOC) {
+ printk(KERN_DEBUG " ASSOC: assoc=%d aid=%d\n",
+ info->assoc, info->aid);
+ }
+
+ if (changed & BSS_CHANGED_ERP_CTS_PROT) {
+ printk(KERN_DEBUG " ERP_CTS_PROT: %d\n", info->use_cts_prot);
+ }
+
+ if (changed & BSS_CHANGED_ERP_PREAMBLE) {
+ printk(KERN_DEBUG " ERP_PREAMBLE: %d\n",
+ info->use_short_preamble);
+ }
+
+ if (changed & BSS_CHANGED_ERP_SLOT) {
+ printk(KERN_DEBUG " ERP_SLOT: %d\n", info->use_short_slot);
+ }
+
+ if (changed & BSS_CHANGED_HT) {
+ printk(KERN_DEBUG " HT: sec_ch_offs=%d width_40_ok=%d "
+ "op_mode=%d\n", info->ht.secondary_channel_offset,
+ info->ht.width_40_ok, info->ht.operation_mode);
+ }
+
+ if (changed & BSS_CHANGED_BASIC_RATES) {
+ printk(KERN_DEBUG " BASIC_RATES: 0x%llx\n",
+ info->basic_rates);
+ }
}
static void mac80211_hwsim_sta_notify(struct ieee80211_hw *hw,
--
--
Jouni Malinen PGP id EFC895FA
next prev parent reply other threads:[~2008-10-29 17:53 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-10-29 17:49 [PATCH 0/4] mac80211/cfg80211/hwsim: Basic rate and TXQ params Jouni Malinen
2008-10-29 17:49 ` Jouni Malinen [this message]
2008-10-30 10:42 ` [PATCH 1/4] mac80211_hwsim: Debug info for BSS config changes Johannes Berg
2008-10-29 17:49 ` [PATCH 2/4] nl80211: Add basic rate configuration for AP mode Jouni Malinen
2008-10-30 10:44 ` Johannes Berg
2008-10-29 17:49 ` [PATCH 3/4] mac80211_hwsim: Debug info for TX queue parameters Jouni Malinen
2008-10-30 10:44 ` Johannes Berg
2008-10-29 17:49 ` [PATCH 4/4] nl80211: Add TX queue parameter configuration Jouni Malinen
2008-10-30 10:49 ` Johannes Berg
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20081029175220.543918201@localhost \
--to=j@w1.fi \
--cc=johannes@sipsolutions.net \
--cc=linux-wireless@vger.kernel.org \
--cc=linville@tuxdriver.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).