All of lore.kernel.org
 help / color / mirror / Atom feed
From: Johannes Berg <johannes@sipsolutions.net>
To: Jouni Malinen <j@w1.fi>
Cc: linux-wireless <linux-wireless@vger.kernel.org>
Subject: [PATCH 4/4] hostapd: remove PRISM2_PARAM_NEXT_MODE
Date: Tue, 14 Aug 2007 11:32:58 +0200	[thread overview]
Message-ID: <20070814093410.322846000@sipsolutions.net> (raw)
In-Reply-To: 20070814093254.021041000@sipsolutions.net

802.11 A is easily distinguishable based on frequency, and the difference
between 802.11B/G isn't really done well in mac80211 with most 802.11G
drivers supporting only 802.11G channels and no B channels

Signed-off-by: Johannes Berg <johannes@sipsolutions.net>

---
What reason is there anyway for distinguishing between an 802.11G and an
802.11B channel? Regulatory? In that case, well, needs lots of work.

 hostapd/driver_devicescape.c |   14 --------------
 1 file changed, 14 deletions(-)

--- hostap.orig/hostapd/driver_devicescape.c	2007-08-14 11:32:35.000000000 +0200
+++ hostap/hostapd/driver_devicescape.c	2007-08-14 11:32:36.000000000 +0200
@@ -367,20 +367,6 @@ static int i802_set_freq(void *priv, int
 	struct i802_driver_data *drv = priv;
 	struct iwreq iwr;
 
-	switch (mode) {
-	case HOSTAPD_MODE_IEEE80211A:
-		mode = MODE_IEEE80211A;
-		break;
-	case HOSTAPD_MODE_IEEE80211B:
-		mode = MODE_IEEE80211B;
-		break;
-	case HOSTAPD_MODE_IEEE80211G:
-		mode = MODE_IEEE80211G;
-		break;
-	}
-
-	hostap_ioctl_prism2param(drv, PRISM2_PARAM_NEXT_MODE, mode);
-
 	memset(&iwr, 0, sizeof(iwr));
 	os_strlcpy(iwr.ifr_name, drv->hapd->conf->iface, IFNAMSIZ);
 	iwr.u.freq.m = freq;

-- 


  parent reply	other threads:[~2007-08-14 11:52 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-08-14  9:32 [PATCH 0/4] hostapd cleanups Johannes Berg
2007-08-14  9:32 ` [PATCH 1/4] hostapd: remove enable/disable calls Johannes Berg
2007-08-15  3:49   ` Jouni Malinen
2007-08-14  9:32 ` [PATCH 2/4] hostapd: use SIOCSIWGENIE Johannes Berg
2007-08-15  3:51   ` Jouni Malinen
2007-08-14  9:32 ` [PATCH 3/4] hostapd: use nl80211 for add/remove iface Johannes Berg
2007-08-14  9:32 ` Johannes Berg [this message]
2007-08-15  2:41   ` [PATCH 4/4] hostapd: remove PRISM2_PARAM_NEXT_MODE Jouni Malinen
2007-08-15  7:29     ` Tomas Winkler
2007-08-15 10:56       ` Johannes Berg
2007-08-15 10:44     ` Johannes Berg
2007-08-16  1:38       ` Jouni Malinen
2007-08-16 13:22         ` 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=20070814093410.322846000@sipsolutions.net \
    --to=johannes@sipsolutions.net \
    --cc=j@w1.fi \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.