From: "Kolekar, Abhijeet" <abhijeet.kolekar@intel.com>
To: <johannes@sipsolutions.net>
Cc: <linux-wireless@vger.kernel.org>
Subject: [linux-wireless] [RFC PATCH]iwlwifi: Fix for monitor mode captures management frames only.
Date: Tue, 4 Mar 2008 19:43:12 -0800 [thread overview]
Message-ID: <BD524EA7912ED5469DFD0BAEF6BC752F035C2DAD@orsmsx411.amr.corp.intel.com> (raw)
If monitor mode is set then mac80211 stack now passes the information to
driver.
>From 1e21ee62c88c5defacf49a4044d26677b8a79032 Mon Sep 17 00:00:00 2001
From: Abhijeet Kolekar <abhijeet.kolekar@intel.com>
Date: Tue, 4 Mar 2008 17:04:56 -0800
Subject: [PATCH] Monitor mode bug fix.
Signed-off-by: Abhijeet Kolekar <abhijeet.kolekar@intel.com>
---
drivers/net/wireless/iwlwifi/iwl-4965.c | 5 +++++
net/mac80211/ieee80211.c | 10 ++++++++++
2 files changed, 15 insertions(+), 0 deletions(-)
diff --git a/drivers/net/wireless/iwlwifi/iwl-4965.c
b/drivers/net/wireless/iwlwifi/iwl-4965.c
index 3e122a9..5ed75aa 100644
--- a/drivers/net/wireless/iwlwifi/iwl-4965.c
+++ b/drivers/net/wireless/iwlwifi/iwl-4965.c
@@ -3822,6 +3822,11 @@ static void iwl4965_rx_reply_rx(struct
iwl4965_priv *priv,
/* Find max signal strength (dBm) among 3 antenna/receiver
chains */
rx_status.ssi = iwl4965_calc_rssi(rx_start);
+ if (priv->iw_mode == IEEE80211_IF_TYPE_MNTR) {
+ iwl4965_handle_data_packet(priv, 1, include_phy, rxb,
&rx_status);
+ return;
+ }
+
/* Meaningful noise values are available only from beacon
statistics,
* which are gathered only when associated, and indicate noise
* only for the associated network channel ...
diff --git a/net/mac80211/ieee80211.c b/net/mac80211/ieee80211.c
index 484b063..85e37c8 100644
--- a/net/mac80211/ieee80211.c
+++ b/net/mac80211/ieee80211.c
@@ -327,6 +327,16 @@ static int ieee80211_open(struct net_device *dev)
netif_tx_lock_bh(local->mdev);
ieee80211_configure_filter(local);
netif_tx_unlock_bh(local->mdev);
+
+ conf.vif = &sdata->vif;
+ conf.type = sdata->vif.type;
+ conf.mac_addr = dev->dev_addr;
+ res = local->ops->add_interface(local_to_hw(local),
&conf);
+ if (res && !local->open_count && local->ops->stop)
+ local->ops->stop(local_to_hw(local));
+ if (res)
+ return res;
+
break;
case IEEE80211_IF_TYPE_STA:
case IEEE80211_IF_TYPE_IBSS:
--
1.5.2.5
next reply other threads:[~2008-03-05 3:43 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-03-05 3:43 Kolekar, Abhijeet [this message]
2008-03-05 9:35 ` [linux-wireless] [RFC PATCH]iwlwifi: Fix for monitor mode captures management frames only 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=BD524EA7912ED5469DFD0BAEF6BC752F035C2DAD@orsmsx411.amr.corp.intel.com \
--to=abhijeet.kolekar@intel.com \
--cc=johannes@sipsolutions.net \
--cc=linux-wireless@vger.kernel.org \
/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