All of lore.kernel.org
 help / color / mirror / Atom feed
* [RFC 0/5] wireless: applying country IE and reg changes immediately
@ 2011-11-23 15:40 Luis R. Rodriguez
  2011-11-23 15:40 ` [RFC 1/5] cfg80211: allow following country IE power for custom regdom cards Luis R. Rodriguez
                   ` (4 more replies)
  0 siblings, 5 replies; 11+ messages in thread
From: Luis R. Rodriguez @ 2011-11-23 15:40 UTC (permalink / raw)
  To: linux-wireless; +Cc: Luis R. Rodriguez

The first patch in this series still needs some work as noted by Rajkumar Manoharan,
but it also made me think more how we are applying power setting and regulatory
settings. Turns out that the reason why the power settings will take effect
*soonish* is that we do things like scanning, and other hardware operations
that trigger applying the settings to hardware. But -- if we want to be even
more efficient we may want to apply the power settings.. say from the country IE
if we are allowed for more power ASAP. The gain is small though.. but this
series adds some junk to where I think we'd need to apply settings and here's
one way of doing it. I am not a fan of it but its one way of doing it.

Not sure if we have alternatives. Apart from power settings consider the
different types of channe types and if for whatever reason a new channel
type that we are on gets disabled. I don't think this is gong to happen...
because considering that if you connect to an AP -- chances are it is
allowed to use that channel on the same channel type you associated to it
with :) The only use case would be if the user manually set the regulatory
domain to override and help compliance.

OK I'm inclined to leave this as-is without all this junk code. But
will send out just as a brain excercise and to see if anyone else has
some thoughts. If we are fine living with the power settings from
the country IE not taking effect immediatley then great.. otherwise
we need something like this. The other thing that I'm not too happy
about is the usage of NL80211_TX_POWER_REG as API and userspace
would simply ignore that -- unless I guesss we send that as an event?
I can't find a better place for this though.

Luis R. Rodriguez (5):
  cfg80211: allow following country IE power for custom regdom cards
  cfg80211: add support to immediately apply reg settings
  mac80211: add support for NL80211_TX_POWER_REG
  ath6kl: add support for NL80211_TX_POWER_REG
  wireless: annotate drivers that do not support NL80211_TX_POWER_REG

 drivers/net/wireless/ath/ath6kl/cfg80211.c         |    6 ++++
 .../net/wireless/brcm80211/brcmfmac/wl_cfg80211.c  |    2 +
 drivers/net/wireless/iwmc3200wifi/cfg80211.c       |    2 +
 drivers/net/wireless/mwifiex/cfg80211.c            |    3 ++
 include/linux/nl80211.h                            |    4 +++
 include/net/cfg80211.h                             |    4 ++-
 net/mac80211/cfg.c                                 |    6 ++++
 net/wireless/core.c                                |   23 ++++++++++++++++
 net/wireless/core.h                                |    2 +
 net/wireless/nl80211.c                             |    5 +++
 net/wireless/reg.c                                 |   28 +++++++++++++++++---
 11 files changed, 80 insertions(+), 5 deletions(-)

-- 
1.7.4.15.g7811d


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2011-11-28 20:57 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-11-23 15:40 [RFC 0/5] wireless: applying country IE and reg changes immediately Luis R. Rodriguez
2011-11-23 15:40 ` [RFC 1/5] cfg80211: allow following country IE power for custom regdom cards Luis R. Rodriguez
2011-11-23 15:40 ` [RFC 2/5] cfg80211: add support to immediately apply reg settings Luis R. Rodriguez
2011-11-24 16:44   ` Johannes Berg
2011-11-24 16:50     ` Luis R. Rodriguez
2011-11-24 16:52       ` Luis R. Rodriguez
2011-11-23 15:40 ` [RFC 3/5] mac80211: add support for NL80211_TX_POWER_REG Luis R. Rodriguez
2011-11-23 15:40 ` [RFC 4/5] ath6kl: " Luis R. Rodriguez
2011-11-23 15:40 ` [RFC 5/5] wireless: annotate drivers that do not support NL80211_TX_POWER_REG Luis R. Rodriguez
2011-11-24 21:02   ` Jouni Malinen
2011-11-28 20:56     ` Luis R. Rodriguez

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.