[regdb] Add support to parse 2000mW tx power

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



 CC [M]  net/wireless/wext-sme.o
 CC [M]  net/wireless/regdb.o
net/wireless/regdb.c:1130:1: error: Unknown undeclared here (not in
a function)
net/wireless/regdb.c:1130:9: error: expected } before power
make[2]: *** [net/wireless/regdb.o] Error 1
make[1]: *** [net/wireless] Error 2
make: *** [net] Error 2

Reported-By: John Walker <john at x109.net>
Signed-off-by: Chaitanya T K <chaitanya.mgit at gmail.com>
---
 net/wireless/genregdb.awk |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/net/wireless/genregdb.awk b/net/wireless/genregdb.awk
index 4119833..0f2b53a 100644
--- a/net/wireless/genregdb.awk
+++ b/net/wireless/genregdb.awk
@@ -74,7 +74,7 @@ function parse_reg_rule()
 			power = 23
 		} else if (power == 500) {
 			power = 27
-		} else if (power == 1000) {
+		} else if ((power == 1000) || (power == 2000)) {
 			power = 30
 		} else {
 			print "Unknown power value in database!"



[Index of Archives]     [LM Sensors]     [Linux Sound]     [ALSA Users]     [ALSA Devel]     [Linux Audio Users]     [Linux Media]     [Kernel]     [Gimp]     [Yosemite News]     [Linux Media]

  Powered by Linux