All of lore.kernel.org
 help / color / mirror / Atom feed
From: Zhu Yi <yi.zhu@intel.com>
To: Johannes Berg <johannes@sipsolutions.net>,
	Jouni Malinen <jkmaline@cc.hut.fi>
Cc: linux-wireless@vger.kernel.org
Subject: Re: hostapd with mac80211 progress
Date: Tue, 04 Mar 2008 10:03:48 +0800	[thread overview]
Message-ID: <1204596228.3087.113.camel@debian.sh.intel.com> (raw)
In-Reply-To: <1204537945.3917.38.camel@johannes.berg>


On Mon, 2008-03-03 at 10:52 +0100, Johannes Berg wrote:
> That's rather odd. ieee80211_channel_flags and HOSTAPD_CHAN_W_xx need
> not be compatible because in driver_nl80211.c, phy_info_handler(),
> they're translated into each other. What exactly is your setup?

Well, it (HOSTAPD_CHAN_W_SCAN) was removed somewhere after
driver_nl80211.c set it. I think it's a hostapd bug. Please take a look
at the hostapd_get_hw_features() function:


if ((feature->mode == HOSTAPD_MODE_IEEE80211G ||
     feature->mode == HOSTAPD_MODE_IEEE80211B) &&
    feature->channels[j].chan >= 1 &&
    feature->channels[j].chan <= 11) {
        power_level = 20;
        feature->channels[j].flag |=
                HOSTAPD_CHAN_W_SCAN;
} else
        feature->channels[j].flag &=
              ~HOSTAPD_CHAN_W_SCAN;


Apparently, A channels all have this flag removed. What does this flag
stand for? I assume it stands for passive scan, right?

Thanks,
-yi


  reply	other threads:[~2008-03-04  2:05 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-02-28  9:17 hostapd with mac80211 progress Zhu Yi
2008-02-28 14:06 ` John W. Linville
2008-02-28 14:54 ` Johannes Berg
2008-02-29  6:22   ` Zhu Yi
2008-02-29 15:47     ` Johannes Berg
2008-02-29 16:25     ` Johannes Berg
2008-03-03  7:08       ` Zhu Yi
2008-03-03  9:52         ` Johannes Berg
2008-03-04  2:03           ` Zhu Yi [this message]
2008-03-04 10:00             ` 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=1204596228.3087.113.camel@debian.sh.intel.com \
    --to=yi.zhu@intel.com \
    --cc=jkmaline@cc.hut.fi \
    --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 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.