linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFC] cfg80211: make genregdb.awk skip antenna gain
@ 2013-10-23 18:55 Luis R. Rodriguez
  2014-03-31 12:53 ` Jonas Gorski
  0 siblings, 1 reply; 2+ messages in thread
From: Luis R. Rodriguez @ 2013-10-23 18:55 UTC (permalink / raw)
  To: linux-wireless; +Cc: wireless-regdb, Luis R. Rodriguez

Now that wireless-regdb doesn't include
antenna gain lets skip parsing it completely
for when CONFIG_CFG80211_INTERNAL_REGDB is
enabled.

Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
---
 net/wireless/genregdb.awk | 11 ++++-------
 1 file changed, 4 insertions(+), 7 deletions(-)
 mode change 100644 => 100755 net/wireless/genregdb.awk

diff --git a/net/wireless/genregdb.awk b/net/wireless/genregdb.awk
old mode 100644
new mode 100755
index c808619..3e241e4e
--- a/net/wireless/genregdb.awk
+++ b/net/wireless/genregdb.awk
@@ -63,14 +63,11 @@ active && /^[ \t]*\(/ {
 	end = $3
 	bw = $5
 	sub(/\),/, "", bw)
-	gain = $6
-	sub(/\(/, "", gain)
-	sub(/,/, "", gain)
-	power = $7
-	sub(/\)/, "", power)
+	power = $6
+	sub(/\(/, "", power)
 	sub(/,/, "", power)
 	# power might be in mW...
-	units = $8
+	units = $7
 	sub(/\)/, "", units)
 	sub(/,/, "", units)
 	if (units == "mW") {
@@ -87,7 +84,7 @@ active && /^[ \t]*\(/ {
 		}
 	}
 	flagstr = ""
-	for (i=8; i<=NF; i++)
+	for (i=7; i<=NF; i++)
 		flagstr = flagstr $i
 	split(flagstr, flagarray, ",")
 	flags = ""
-- 
1.8.4.rc3


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

* Re: [RFC] cfg80211: make genregdb.awk skip antenna gain
  2013-10-23 18:55 [RFC] cfg80211: make genregdb.awk skip antenna gain Luis R. Rodriguez
@ 2014-03-31 12:53 ` Jonas Gorski
  0 siblings, 0 replies; 2+ messages in thread
From: Jonas Gorski @ 2014-03-31 12:53 UTC (permalink / raw)
  To: Luis R. Rodriguez; +Cc: linux-wireless@vger.kernel.org, wireless-regdb

On Wed, Oct 23, 2013 at 8:55 PM, Luis R. Rodriguez
<mcgrof@do-not-panic.com> wrote:
> Now that wireless-regdb doesn't include
> antenna gain lets skip parsing it completely
> for when CONFIG_CFG80211_INTERNAL_REGDB is
> enabled.
>
> Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>

As far as I can tell, this is still needed for current regdb.txt's (at
least we needed it in OpenWrt). Assuming it wasn't applied because of
RFC, can you resend it as a "proper" patch? One small question though
...

> ---
>  net/wireless/genregdb.awk | 11 ++++-------
>  1 file changed, 4 insertions(+), 7 deletions(-)
>  mode change 100644 => 100755 net/wireless/genregdb.awk

was this mode change intentional?

> (snip)


Regards
Jonas

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

end of thread, other threads:[~2014-03-31 12:53 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-10-23 18:55 [RFC] cfg80211: make genregdb.awk skip antenna gain Luis R. Rodriguez
2014-03-31 12:53 ` Jonas Gorski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).