From: Luciano Coelho <luciano.coelho@nokia.com>
To: "Oikarinen Juuso (Nokia-D/Tampere)" <juuso.oikarinen@nokia.com>
Cc: ext Johannes Berg <johannes@sipsolutions.net>,
"linux-wireless@vger.kernel.org" <linux-wireless@vger.kernel.org>
Subject: Re: [RFC PATCHv3 1/1] mac80211: Add support connection monitor in hardware
Date: Thu, 18 Mar 2010 09:18:52 +0200 [thread overview]
Message-ID: <1268896732.13113.7.camel@chilepepper> (raw)
In-Reply-To: <1268888800.10120.646.camel@wimaxnb.nmp.nokia.com>
On Thu, 2010-03-18 at 06:06 +0100, Oikarinen Juuso (Nokia-D/Tampere)
wrote:
> On Wed, 2010-03-17 at 17:15 +0100, ext Johannes Berg wrote:
> > > void ieee80211_beacon_loss_work(struct work_struct *work)
> > > {
> > > struct ieee80211_sub_if_data *sdata =
> > > container_of(work, struct ieee80211_sub_if_data,
> > > u.mgd.beacon_loss_work);
> > >
> > > - ieee80211_mgd_probe_ap(sdata, true);
> > > + if (sdata->local->hw.flags & IEEE80211_HW_CONNECTION_MONITOR)
> > > + ieee80211_beacon_loss_disassoc(sdata);
> > > + else
> > > + ieee80211_mgd_probe_ap(sdata, true);
> > > }
> >
> > And I'm actually wondering now if using the same API is a good idea.
> > Yes, it makes some sense, but it's quite different yet? Maybe we should
> > have something like this:
> >
> > static inline void ieee80211_beacon_loss(hw, vif)
> > {
> > WARN_ON(hw->flags & IEEE80211_HW_CONNECTION_MONITOR);
> > __ieee80211_beacon_connection_loss(vif);
> > }
> >
> > static inline void ieee80211_connection_loss(hw, vif)
> > {
> > WARN_ON(!(hw->flags & IEEE80211_HW_CONNECTION_MONITOR));
> > __ieee80211_beacon_connection_loss(vif);
> > }
> >
> > to make at least the external API easier to understand?
>
> We actually had a debate about this with Luciano Coelho, and I opted for
> a separate API, and Luca opted for just adding a flag to the existing
> beacon loss function. To be noted: Luca, two against one now! ;)
Heh, damn you guys! Lots of things have changed since Juuso and I
discussed this, so I'm not 100% sure that my previous comment about the
flag really still applies. :P
My point at the time was that the driver should inform mac80211 that it
has tried to send probe_reqs automatically but they were not answered,
and let mac80211 itself decide whether that meant a connection loss or
not.
--
Luca, the one who won't admit losing the discussion. :)
prev parent reply other threads:[~2010-03-18 7:19 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-03-17 12:52 [RFC PATCHv3 0/1] mac80211: Support for HW connection recovery Juuso Oikarinen
2010-03-17 12:52 ` [RFC PATCHv3 1/1] mac80211: Add support connection monitor in hardware Juuso Oikarinen
2010-03-17 16:15 ` Johannes Berg
2010-03-18 5:06 ` Juuso Oikarinen
2010-03-18 5:19 ` Johannes Berg
2010-03-18 7:18 ` Luciano Coelho [this message]
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=1268896732.13113.7.camel@chilepepper \
--to=luciano.coelho@nokia.com \
--cc=johannes@sipsolutions.net \
--cc=juuso.oikarinen@nokia.com \
--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