From 91cc53b0c78596a73fa708cceb7313e7168bb146 Mon Sep 17 00:00:00 2001 From: Andrea Gelmini Date: Mon, 1 Mar 2010 00:28:54 +0100 Subject: [PATCH] Staging: otus: hpreg.c: Checkpatch cleanup drivers/staging/otus/hal/hpreg.c:33: WARNING: space prohibited between function name and open parenthesis '(' drivers/staging/otus/hal/hpreg.c:33: WARNING: space prohibited between function name and open parenthesis '(' drivers/staging/otus/hal/hpreg.c:38: CHECK: if this code is redundant consider removing it drivers/staging/otus/hal/hpreg.c:81: ERROR: need consistent spacing around '|' (ctx:VxW) drivers/staging/otus/hal/hpreg.c:96: ERROR: Macros with multiple statements should be enclosed in a do - while loop drivers/staging/otus/hal/hpreg.c:98: CHECK: if this code is redundant consider removing it drivers/staging/otus/hal/hpreg.c:275: ERROR: need consistent spacing around '|' (ctx:WxV) drivers/staging/otus/hal/hpreg.c:304: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:362: ERROR: space required after that ',' (ctx:VxV) drivers/staging/otus/hal/hpreg.c:376: ERROR: "foo* bar" should be "foo *bar" drivers/staging/otus/hal/hpreg.c:377: ERROR: "foo* bar" should be "foo *bar" drivers/staging/otus/hal/hpreg.c:402: ERROR: space required after that ',' (ctx:VxV) drivers/staging/otus/hal/hpreg.c:402: ERROR: space required after that ',' (ctx:VxV) drivers/staging/otus/hal/hpreg.c:413: ERROR: space required after that ',' (ctx:VxV) drivers/staging/otus/hal/hpreg.c:413: ERROR: space required after that ',' (ctx:VxV) drivers/staging/otus/hal/hpreg.c:434: ERROR: space required after that ',' (ctx:VxV) drivers/staging/otus/hal/hpreg.c:496: ERROR: space required after that ',' (ctx:VxV) drivers/staging/otus/hal/hpreg.c:497: ERROR: space required after that ',' (ctx:VxV) drivers/staging/otus/hal/hpreg.c:501: ERROR: space required after that ',' (ctx:VxV) drivers/staging/otus/hal/hpreg.c:526: ERROR: space required after that ',' (ctx:VxV) drivers/staging/otus/hal/hpreg.c:529: ERROR: space required after that ',' (ctx:VxV) drivers/staging/otus/hal/hpreg.c:531: ERROR: space required after that ',' (ctx:VxV) drivers/staging/otus/hal/hpreg.c:539: ERROR: space required after that ',' (ctx:VxV) drivers/staging/otus/hal/hpreg.c:539: ERROR: space required after that ',' (ctx:VxV) drivers/staging/otus/hal/hpreg.c:544: ERROR: space required after that ',' (ctx:VxV) drivers/staging/otus/hal/hpreg.c:663: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:1335: ERROR: space required after that ',' (ctx:VxV) drivers/staging/otus/hal/hpreg.c:1336: ERROR: space required after that ',' (ctx:VxV) drivers/staging/otus/hal/hpreg.c:1345: ERROR: space required after that ',' (ctx:VxO) drivers/staging/otus/hal/hpreg.c:1345: ERROR: space required before that '-' (ctx:OxV) drivers/staging/otus/hal/hpreg.c:1346: ERROR: space required after that ',' (ctx:VxO) drivers/staging/otus/hal/hpreg.c:1346: ERROR: space required before that '-' (ctx:OxV) drivers/staging/otus/hal/hpreg.c:1347: ERROR: space required after that ',' (ctx:VxO) drivers/staging/otus/hal/hpreg.c:1347: ERROR: space required before that '-' (ctx:OxV) drivers/staging/otus/hal/hpreg.c:1355: ERROR: space required after that ',' (ctx:VxO) drivers/staging/otus/hal/hpreg.c:1355: ERROR: space required before that '-' (ctx:OxV) drivers/staging/otus/hal/hpreg.c:1355: ERROR: space required after that ',' (ctx:VxO) drivers/staging/otus/hal/hpreg.c:1355: ERROR: space required before that '-' (ctx:OxV) drivers/staging/otus/hal/hpreg.c:1355: ERROR: space required after that ',' (ctx:VxO) drivers/staging/otus/hal/hpreg.c:1355: ERROR: space required before that '-' (ctx:OxV) drivers/staging/otus/hal/hpreg.c:1355: ERROR: space required after that ',' (ctx:VxO) drivers/staging/otus/hal/hpreg.c:1355: ERROR: space required before that '-' (ctx:OxV) drivers/staging/otus/hal/hpreg.c:1355: ERROR: space required after that ',' (ctx:VxO) drivers/staging/otus/hal/hpreg.c:1355: ERROR: space required before that '-' (ctx:OxV) drivers/staging/otus/hal/hpreg.c:1355: ERROR: space required after that ',' (ctx:VxO) drivers/staging/otus/hal/hpreg.c:1355: ERROR: space required before that '-' (ctx:OxV) drivers/staging/otus/hal/hpreg.c:1355: ERROR: space required after that ',' (ctx:VxO) drivers/staging/otus/hal/hpreg.c:1355: ERROR: space required before that '-' (ctx:OxV) drivers/staging/otus/hal/hpreg.c:1356: ERROR: space required after that ',' (ctx:VxO) drivers/staging/otus/hal/hpreg.c:1356: ERROR: space required before that '-' (ctx:OxV) drivers/staging/otus/hal/hpreg.c:1356: ERROR: space required after that ',' (ctx:VxO) drivers/staging/otus/hal/hpreg.c:1356: ERROR: space required before that '-' (ctx:OxV) drivers/staging/otus/hal/hpreg.c:1356: ERROR: space required after that ',' (ctx:VxO) drivers/staging/otus/hal/hpreg.c:1356: ERROR: space required before that '-' (ctx:OxV) drivers/staging/otus/hal/hpreg.c:1356: ERROR: space required after that ',' (ctx:VxO) drivers/staging/otus/hal/hpreg.c:1356: ERROR: space required before that '-' (ctx:OxV) drivers/staging/otus/hal/hpreg.c:1356: ERROR: space required after that ',' (ctx:VxO) drivers/staging/otus/hal/hpreg.c:1356: ERROR: space required before that '-' (ctx:OxV) drivers/staging/otus/hal/hpreg.c:1356: ERROR: space required after that ',' (ctx:VxO) drivers/staging/otus/hal/hpreg.c:1356: ERROR: space required before that '-' (ctx:OxV) drivers/staging/otus/hal/hpreg.c:1356: ERROR: space required after that ',' (ctx:VxO) drivers/staging/otus/hal/hpreg.c:1356: ERROR: space required before that '-' (ctx:OxV) drivers/staging/otus/hal/hpreg.c:1357: ERROR: space required after that ',' (ctx:VxO) drivers/staging/otus/hal/hpreg.c:1357: ERROR: space required before that '-' (ctx:OxV) drivers/staging/otus/hal/hpreg.c:1365: ERROR: space required after that ',' (ctx:VxO) drivers/staging/otus/hal/hpreg.c:1365: ERROR: space required before that '-' (ctx:OxV) drivers/staging/otus/hal/hpreg.c:1365: ERROR: space required after that ',' (ctx:VxO) drivers/staging/otus/hal/hpreg.c:1365: ERROR: space required before that '-' (ctx:OxV) drivers/staging/otus/hal/hpreg.c:1365: ERROR: space required after that ',' (ctx:VxO) drivers/staging/otus/hal/hpreg.c:1365: ERROR: space required before that '-' (ctx:OxV) drivers/staging/otus/hal/hpreg.c:1365: ERROR: space required after that ',' (ctx:VxO) drivers/staging/otus/hal/hpreg.c:1365: ERROR: space required before that '-' (ctx:OxV) drivers/staging/otus/hal/hpreg.c:1365: ERROR: space required after that ',' (ctx:VxO) drivers/staging/otus/hal/hpreg.c:1365: ERROR: space required before that '-' (ctx:OxV) drivers/staging/otus/hal/hpreg.c:1365: ERROR: space required after that ',' (ctx:VxO) drivers/staging/otus/hal/hpreg.c:1365: ERROR: space required before that '-' (ctx:OxV) drivers/staging/otus/hal/hpreg.c:1365: ERROR: space required after that ',' (ctx:VxO) drivers/staging/otus/hal/hpreg.c:1365: ERROR: space required before that '-' (ctx:OxV) drivers/staging/otus/hal/hpreg.c:1366: ERROR: space required after that ',' (ctx:VxO) drivers/staging/otus/hal/hpreg.c:1366: ERROR: space required before that '-' (ctx:OxV) drivers/staging/otus/hal/hpreg.c:1366: ERROR: space required after that ',' (ctx:VxO) drivers/staging/otus/hal/hpreg.c:1366: ERROR: space required before that '-' (ctx:OxV) drivers/staging/otus/hal/hpreg.c:1366: ERROR: space required after that ',' (ctx:VxO) drivers/staging/otus/hal/hpreg.c:1366: ERROR: space required before that '-' (ctx:OxV) drivers/staging/otus/hal/hpreg.c:1366: ERROR: space required after that ',' (ctx:VxO) drivers/staging/otus/hal/hpreg.c:1366: ERROR: space required before that '-' (ctx:OxV) drivers/staging/otus/hal/hpreg.c:1366: ERROR: space required after that ',' (ctx:VxO) drivers/staging/otus/hal/hpreg.c:1366: ERROR: space required before that '-' (ctx:OxV) drivers/staging/otus/hal/hpreg.c:1366: ERROR: space required after that ',' (ctx:VxO) drivers/staging/otus/hal/hpreg.c:1366: ERROR: space required before that '-' (ctx:OxV) drivers/staging/otus/hal/hpreg.c:1366: ERROR: space required after that ',' (ctx:VxO) drivers/staging/otus/hal/hpreg.c:1366: ERROR: space required before that '-' (ctx:OxV) drivers/staging/otus/hal/hpreg.c:1367: ERROR: space required after that ',' (ctx:VxO) drivers/staging/otus/hal/hpreg.c:1367: ERROR: space required before that '-' (ctx:OxV) drivers/staging/otus/hal/hpreg.c:1375: ERROR: space required after that ',' (ctx:VxO) drivers/staging/otus/hal/hpreg.c:1375: ERROR: space required before that '-' (ctx:OxV) drivers/staging/otus/hal/hpreg.c:1375: ERROR: space required after that ',' (ctx:VxO) drivers/staging/otus/hal/hpreg.c:1375: ERROR: space required before that '-' (ctx:OxV) drivers/staging/otus/hal/hpreg.c:1375: ERROR: space required after that ',' (ctx:VxO) drivers/staging/otus/hal/hpreg.c:1375: ERROR: space required before that '-' (ctx:OxV) drivers/staging/otus/hal/hpreg.c:1375: ERROR: space required after that ',' (ctx:VxO) drivers/staging/otus/hal/hpreg.c:1375: ERROR: space required before that '-' (ctx:OxV) drivers/staging/otus/hal/hpreg.c:1375: ERROR: space required after that ',' (ctx:VxO) drivers/staging/otus/hal/hpreg.c:1375: ERROR: space required before that '-' (ctx:OxV) drivers/staging/otus/hal/hpreg.c:1375: ERROR: space required after that ',' (ctx:VxO) drivers/staging/otus/hal/hpreg.c:1375: ERROR: space required before that '-' (ctx:OxV) drivers/staging/otus/hal/hpreg.c:1375: ERROR: space required after that ',' (ctx:VxO) drivers/staging/otus/hal/hpreg.c:1375: ERROR: space required before that '-' (ctx:OxV) drivers/staging/otus/hal/hpreg.c:1376: ERROR: space required after that ',' (ctx:VxO) drivers/staging/otus/hal/hpreg.c:1376: ERROR: space required before that '-' (ctx:OxV) drivers/staging/otus/hal/hpreg.c:1376: ERROR: space required after that ',' (ctx:VxO) drivers/staging/otus/hal/hpreg.c:1376: ERROR: space required before that '-' (ctx:OxV) drivers/staging/otus/hal/hpreg.c:1376: ERROR: space required after that ',' (ctx:VxO) drivers/staging/otus/hal/hpreg.c:1376: ERROR: space required before that '-' (ctx:OxV) drivers/staging/otus/hal/hpreg.c:1376: ERROR: space required after that ',' (ctx:VxO) drivers/staging/otus/hal/hpreg.c:1376: ERROR: space required before that '-' (ctx:OxV) drivers/staging/otus/hal/hpreg.c:1376: ERROR: space required after that ',' (ctx:VxO) drivers/staging/otus/hal/hpreg.c:1376: ERROR: space required before that '-' (ctx:OxV) drivers/staging/otus/hal/hpreg.c:1376: ERROR: space required after that ',' (ctx:VxO) drivers/staging/otus/hal/hpreg.c:1376: ERROR: space required before that '-' (ctx:OxV) drivers/staging/otus/hal/hpreg.c:1376: ERROR: space required after that ',' (ctx:VxO) drivers/staging/otus/hal/hpreg.c:1376: ERROR: space required before that '-' (ctx:OxV) drivers/staging/otus/hal/hpreg.c:1377: ERROR: space required after that ',' (ctx:VxO) drivers/staging/otus/hal/hpreg.c:1377: ERROR: space required before that '-' (ctx:OxV) drivers/staging/otus/hal/hpreg.c:1378: ERROR: space required after that ',' (ctx:VxO) drivers/staging/otus/hal/hpreg.c:1378: ERROR: space required before that '-' (ctx:OxV) drivers/staging/otus/hal/hpreg.c:1387: ERROR: space required after that ',' (ctx:VxO) drivers/staging/otus/hal/hpreg.c:1387: ERROR: space required before that '-' (ctx:OxV) drivers/staging/otus/hal/hpreg.c:1388: ERROR: space required after that ',' (ctx:VxO) drivers/staging/otus/hal/hpreg.c:1388: ERROR: space required before that '-' (ctx:OxV) drivers/staging/otus/hal/hpreg.c:1395: ERROR: space required after that ',' (ctx:VxO) drivers/staging/otus/hal/hpreg.c:1395: ERROR: space required before that '-' (ctx:OxV) drivers/staging/otus/hal/hpreg.c:1395: ERROR: space required after that ',' (ctx:VxO) drivers/staging/otus/hal/hpreg.c:1395: ERROR: space required before that '-' (ctx:OxV) drivers/staging/otus/hal/hpreg.c:1395: ERROR: space required after that ',' (ctx:VxO) drivers/staging/otus/hal/hpreg.c:1395: ERROR: space required before that '-' (ctx:OxV) drivers/staging/otus/hal/hpreg.c:1395: ERROR: space required after that ',' (ctx:VxO) drivers/staging/otus/hal/hpreg.c:1395: ERROR: space required before that '-' (ctx:OxV) drivers/staging/otus/hal/hpreg.c:1395: ERROR: space required after that ',' (ctx:VxO) drivers/staging/otus/hal/hpreg.c:1395: ERROR: space required before that '-' (ctx:OxV) drivers/staging/otus/hal/hpreg.c:1395: ERROR: space required after that ',' (ctx:VxO) drivers/staging/otus/hal/hpreg.c:1395: ERROR: space required before that '-' (ctx:OxV) drivers/staging/otus/hal/hpreg.c:1395: ERROR: space required after that ',' (ctx:VxO) drivers/staging/otus/hal/hpreg.c:1395: ERROR: space required before that '-' (ctx:OxV) drivers/staging/otus/hal/hpreg.c:1396: ERROR: space required after that ',' (ctx:VxO) drivers/staging/otus/hal/hpreg.c:1396: ERROR: space required before that '-' (ctx:OxV) drivers/staging/otus/hal/hpreg.c:1396: ERROR: space required after that ',' (ctx:VxO) drivers/staging/otus/hal/hpreg.c:1396: ERROR: space required before that '-' (ctx:OxV) drivers/staging/otus/hal/hpreg.c:1396: ERROR: space required after that ',' (ctx:VxO) drivers/staging/otus/hal/hpreg.c:1396: ERROR: space required before that '-' (ctx:OxV) drivers/staging/otus/hal/hpreg.c:1396: ERROR: space required after that ',' (ctx:VxO) drivers/staging/otus/hal/hpreg.c:1396: ERROR: space required before that '-' (ctx:OxV) drivers/staging/otus/hal/hpreg.c:1396: ERROR: space required after that ',' (ctx:VxO) drivers/staging/otus/hal/hpreg.c:1396: ERROR: space required before that '-' (ctx:OxV) drivers/staging/otus/hal/hpreg.c:1396: ERROR: space required after that ',' (ctx:VxO) drivers/staging/otus/hal/hpreg.c:1396: ERROR: space required before that '-' (ctx:OxV) drivers/staging/otus/hal/hpreg.c:1396: ERROR: space required after that ',' (ctx:VxO) drivers/staging/otus/hal/hpreg.c:1396: ERROR: space required before that '-' (ctx:OxV) drivers/staging/otus/hal/hpreg.c:1397: ERROR: space required after that ',' (ctx:VxO) drivers/staging/otus/hal/hpreg.c:1397: ERROR: space required before that '-' (ctx:OxV) drivers/staging/otus/hal/hpreg.c:1398: ERROR: space required after that ',' (ctx:VxO) drivers/staging/otus/hal/hpreg.c:1398: ERROR: space required before that '-' (ctx:OxV) drivers/staging/otus/hal/hpreg.c:1398: ERROR: space required after that ',' (ctx:VxO) drivers/staging/otus/hal/hpreg.c:1398: ERROR: space required before that '-' (ctx:OxV) drivers/staging/otus/hal/hpreg.c:1405: ERROR: space required after that ',' (ctx:VxO) drivers/staging/otus/hal/hpreg.c:1405: ERROR: space required before that '-' (ctx:OxV) drivers/staging/otus/hal/hpreg.c:1405: ERROR: space required after that ',' (ctx:VxO) drivers/staging/otus/hal/hpreg.c:1405: ERROR: space required before that '-' (ctx:OxV) drivers/staging/otus/hal/hpreg.c:1405: ERROR: space required after that ',' (ctx:VxO) drivers/staging/otus/hal/hpreg.c:1405: ERROR: space required before that '-' (ctx:OxV) drivers/staging/otus/hal/hpreg.c:1405: ERROR: space required after that ',' (ctx:VxO) drivers/staging/otus/hal/hpreg.c:1405: ERROR: space required before that '-' (ctx:OxV) drivers/staging/otus/hal/hpreg.c:1405: ERROR: space required after that ',' (ctx:VxO) drivers/staging/otus/hal/hpreg.c:1405: ERROR: space required before that '-' (ctx:OxV) drivers/staging/otus/hal/hpreg.c:1405: ERROR: space required after that ',' (ctx:VxO) drivers/staging/otus/hal/hpreg.c:1405: ERROR: space required before that '-' (ctx:OxV) drivers/staging/otus/hal/hpreg.c:1405: ERROR: space required after that ',' (ctx:VxO) drivers/staging/otus/hal/hpreg.c:1405: ERROR: space required before that '-' (ctx:OxV) drivers/staging/otus/hal/hpreg.c:1406: ERROR: space required after that ',' (ctx:VxO) drivers/staging/otus/hal/hpreg.c:1406: ERROR: space required before that '-' (ctx:OxV) drivers/staging/otus/hal/hpreg.c:1406: ERROR: space required after that ',' (ctx:VxO) drivers/staging/otus/hal/hpreg.c:1406: ERROR: space required before that '-' (ctx:OxV) drivers/staging/otus/hal/hpreg.c:1406: ERROR: space required after that ',' (ctx:VxO) drivers/staging/otus/hal/hpreg.c:1406: ERROR: space required before that '-' (ctx:OxV) drivers/staging/otus/hal/hpreg.c:1406: ERROR: space required after that ',' (ctx:VxO) drivers/staging/otus/hal/hpreg.c:1406: ERROR: space required before that '-' (ctx:OxV) drivers/staging/otus/hal/hpreg.c:1406: ERROR: space required after that ',' (ctx:VxO) drivers/staging/otus/hal/hpreg.c:1406: ERROR: space required before that '-' (ctx:OxV) drivers/staging/otus/hal/hpreg.c:1406: ERROR: space required after that ',' (ctx:VxO) drivers/staging/otus/hal/hpreg.c:1406: ERROR: space required before that '-' (ctx:OxV) drivers/staging/otus/hal/hpreg.c:1406: ERROR: space required after that ',' (ctx:VxO) drivers/staging/otus/hal/hpreg.c:1406: ERROR: space required before that '-' (ctx:OxV) drivers/staging/otus/hal/hpreg.c:1407: ERROR: space required after that ',' (ctx:VxO) drivers/staging/otus/hal/hpreg.c:1407: ERROR: space required before that '-' (ctx:OxV) drivers/staging/otus/hal/hpreg.c:1408: ERROR: space required after that ',' (ctx:VxO) drivers/staging/otus/hal/hpreg.c:1408: ERROR: space required before that '-' (ctx:OxV) drivers/staging/otus/hal/hpreg.c:1415: ERROR: space required after that ',' (ctx:VxV) drivers/staging/otus/hal/hpreg.c:1415: ERROR: space required after that ',' (ctx:VxV) drivers/staging/otus/hal/hpreg.c:1415: ERROR: space required after that ',' (ctx:VxV) drivers/staging/otus/hal/hpreg.c:1415: ERROR: space required after that ',' (ctx:VxV) drivers/staging/otus/hal/hpreg.c:1416: ERROR: space required after that ',' (ctx:VxV) drivers/staging/otus/hal/hpreg.c:1416: ERROR: space required after that ',' (ctx:VxV) drivers/staging/otus/hal/hpreg.c:1416: ERROR: space required after that ',' (ctx:VxV) drivers/staging/otus/hal/hpreg.c:1416: ERROR: space required after that ',' (ctx:VxV) drivers/staging/otus/hal/hpreg.c:1416: ERROR: space required after that ',' (ctx:VxV) drivers/staging/otus/hal/hpreg.c:1416: ERROR: space required after that ',' (ctx:VxV) drivers/staging/otus/hal/hpreg.c:1432: ERROR: space required after that ',' (ctx:VxV) drivers/staging/otus/hal/hpreg.c:1432: ERROR: space required after that ',' (ctx:VxV) drivers/staging/otus/hal/hpreg.c:1432: ERROR: space required after that ',' (ctx:VxV) drivers/staging/otus/hal/hpreg.c:1435: ERROR: space required after that ',' (ctx:VxV) drivers/staging/otus/hal/hpreg.c:1435: ERROR: space required after that ',' (ctx:VxV) drivers/staging/otus/hal/hpreg.c:1435: ERROR: space required after that ',' (ctx:VxV) drivers/staging/otus/hal/hpreg.c:1436: ERROR: space required after that ',' (ctx:VxV) drivers/staging/otus/hal/hpreg.c:1436: ERROR: space required after that ',' (ctx:VxV) drivers/staging/otus/hal/hpreg.c:1436: ERROR: space required after that ',' (ctx:VxV) drivers/staging/otus/hal/hpreg.c:1442: ERROR: space required after that ',' (ctx:VxV) drivers/staging/otus/hal/hpreg.c:1442: ERROR: space required after that ',' (ctx:VxV) drivers/staging/otus/hal/hpreg.c:1442: ERROR: space required after that ',' (ctx:VxV) drivers/staging/otus/hal/hpreg.c:1445: ERROR: space required after that ',' (ctx:VxV) drivers/staging/otus/hal/hpreg.c:1445: ERROR: space required after that ',' (ctx:VxV) drivers/staging/otus/hal/hpreg.c:1445: ERROR: space required after that ',' (ctx:VxV) drivers/staging/otus/hal/hpreg.c:1446: ERROR: space required after that ',' (ctx:VxV) drivers/staging/otus/hal/hpreg.c:1446: ERROR: space required after that ',' (ctx:VxV) drivers/staging/otus/hal/hpreg.c:1446: ERROR: space required after that ',' (ctx:VxV) drivers/staging/otus/hal/hpreg.c:1455: ERROR: space required after that ',' (ctx:VxV) drivers/staging/otus/hal/hpreg.c:1455: ERROR: space required after that ',' (ctx:VxV) drivers/staging/otus/hal/hpreg.c:1455: ERROR: space required after that ',' (ctx:VxV) drivers/staging/otus/hal/hpreg.c:1455: ERROR: space required after that ',' (ctx:VxV) drivers/staging/otus/hal/hpreg.c:1456: ERROR: space required after that ',' (ctx:VxV) drivers/staging/otus/hal/hpreg.c:1456: ERROR: space required after that ',' (ctx:VxV) drivers/staging/otus/hal/hpreg.c:1456: ERROR: space required after that ',' (ctx:VxV) drivers/staging/otus/hal/hpreg.c:1456: ERROR: space required after that ',' (ctx:VxV) drivers/staging/otus/hal/hpreg.c:1456: ERROR: space required after that ',' (ctx:VxV) drivers/staging/otus/hal/hpreg.c:1456: ERROR: space required after that ',' (ctx:VxV) drivers/staging/otus/hal/hpreg.c:1465: ERROR: space required after that ',' (ctx:VxV) drivers/staging/otus/hal/hpreg.c:1465: ERROR: space required after that ',' (ctx:VxV) drivers/staging/otus/hal/hpreg.c:1465: ERROR: space required after that ',' (ctx:VxV) drivers/staging/otus/hal/hpreg.c:1465: ERROR: space required after that ',' (ctx:VxV) drivers/staging/otus/hal/hpreg.c:1466: ERROR: space required after that ',' (ctx:VxV) drivers/staging/otus/hal/hpreg.c:1466: ERROR: space required after that ',' (ctx:VxV) drivers/staging/otus/hal/hpreg.c:1466: ERROR: space required after that ',' (ctx:VxV) drivers/staging/otus/hal/hpreg.c:1466: ERROR: space required after that ',' (ctx:VxV) drivers/staging/otus/hal/hpreg.c:1466: ERROR: space required after that ',' (ctx:VxV) drivers/staging/otus/hal/hpreg.c:1466: ERROR: space required after that ',' (ctx:VxV) drivers/staging/otus/hal/hpreg.c:1475: ERROR: space required after that ',' (ctx:VxV) drivers/staging/otus/hal/hpreg.c:1475: ERROR: space required after that ',' (ctx:VxV) drivers/staging/otus/hal/hpreg.c:1475: ERROR: space required after that ',' (ctx:VxV) drivers/staging/otus/hal/hpreg.c:1475: ERROR: space required after that ',' (ctx:VxV) drivers/staging/otus/hal/hpreg.c:1476: ERROR: space required after that ',' (ctx:VxV) drivers/staging/otus/hal/hpreg.c:1476: ERROR: space required after that ',' (ctx:VxV) drivers/staging/otus/hal/hpreg.c:1476: ERROR: space required after that ',' (ctx:VxV) drivers/staging/otus/hal/hpreg.c:1476: ERROR: space required after that ',' (ctx:VxV) drivers/staging/otus/hal/hpreg.c:1476: ERROR: space required after that ',' (ctx:VxV) drivers/staging/otus/hal/hpreg.c:1476: ERROR: space required after that ',' (ctx:VxV) drivers/staging/otus/hal/hpreg.c:1476: ERROR: space required after that ',' (ctx:VxO) drivers/staging/otus/hal/hpreg.c:1476: ERROR: space required before that '-' (ctx:OxV) drivers/staging/otus/hal/hpreg.c:1485: ERROR: space required after that ',' (ctx:VxV) drivers/staging/otus/hal/hpreg.c:1485: ERROR: space required after that ',' (ctx:VxV) drivers/staging/otus/hal/hpreg.c:1485: ERROR: space required after that ',' (ctx:VxV) drivers/staging/otus/hal/hpreg.c:1485: ERROR: space required after that ',' (ctx:VxO) drivers/staging/otus/hal/hpreg.c:1485: ERROR: space required before that '-' (ctx:OxV) drivers/staging/otus/hal/hpreg.c:1486: ERROR: space required after that ',' (ctx:VxV) drivers/staging/otus/hal/hpreg.c:1486: ERROR: space required after that ',' (ctx:VxV) drivers/staging/otus/hal/hpreg.c:1486: ERROR: space required after that ',' (ctx:VxV) drivers/staging/otus/hal/hpreg.c:1486: ERROR: space required after that ',' (ctx:VxO) drivers/staging/otus/hal/hpreg.c:1486: ERROR: space required before that '-' (ctx:OxV) drivers/staging/otus/hal/hpreg.c:1557: ERROR: spaces required around that '=' (ctx:VxV) drivers/staging/otus/hal/hpreg.c:1558: ERROR: spaces required around that '=' (ctx:VxV) drivers/staging/otus/hal/hpreg.c:1560: ERROR: that open brace { should be on the previous line drivers/staging/otus/hal/hpreg.c:1560: ERROR: spaces required around that '=' (ctx:VxV) drivers/staging/otus/hal/hpreg.c:1560: ERROR: spaces required around that '=' (ctx:VxV) drivers/staging/otus/hal/hpreg.c:1560: ERROR: spaces required around that '<' (ctx:VxV) drivers/staging/otus/hal/hpreg.c:1560: ERROR: spaces required around that '&&' (ctx:VxV) drivers/staging/otus/hal/hpreg.c:1562: ERROR: that open brace { should be on the previous line drivers/staging/otus/hal/hpreg.c:1568: ERROR: that open brace { should be on the previous line drivers/staging/otus/hal/hpreg.c:1574: ERROR: that open brace { should be on the previous line drivers/staging/otus/hal/hpreg.c:1579: ERROR: that open brace { should be on the previous line drivers/staging/otus/hal/hpreg.c:1590: ERROR: that open brace { should be on the previous line drivers/staging/otus/hal/hpreg.c:1590: ERROR: spaces required around that '=' (ctx:VxV) drivers/staging/otus/hal/hpreg.c:1590: ERROR: space required after that ';' (ctx:VxV) drivers/staging/otus/hal/hpreg.c:1590: ERROR: spaces required around that '<' (ctx:VxV) drivers/staging/otus/hal/hpreg.c:1592: ERROR: that open brace { should be on the previous line drivers/staging/otus/hal/hpreg.c:1594: ERROR: that open brace { should be on the previous line drivers/staging/otus/hal/hpreg.c:1613: ERROR: spaces required around that '=' (ctx:VxV) drivers/staging/otus/hal/hpreg.c:1613: ERROR: spaces required around that '<' (ctx:VxV) drivers/staging/otus/hal/hpreg.c:1635: ERROR: "foo* bar" should be "foo *bar" drivers/staging/otus/hal/hpreg.c:1639: ERROR: spaces required around that '=' (ctx:VxV) drivers/staging/otus/hal/hpreg.c:1639: ERROR: space required after that ',' (ctx:VxV) drivers/staging/otus/hal/hpreg.c:1640: ERROR: "foo* bar" should be "foo *bar" drivers/staging/otus/hal/hpreg.c:1643: ERROR: spaces required around that '=' (ctx:VxV) drivers/staging/otus/hal/hpreg.c:1647: ERROR: that open brace { should be on the previous line drivers/staging/otus/hal/hpreg.c:1647: WARNING: suspect code indent for conditional statements (8, 8) drivers/staging/otus/hal/hpreg.c:1649: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:1652: ERROR: that open brace { should be on the previous line drivers/staging/otus/hal/hpreg.c:1652: WARNING: suspect code indent for conditional statements (8, 8) drivers/staging/otus/hal/hpreg.c:1654: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:1657: ERROR: that open brace { should be on the previous line drivers/staging/otus/hal/hpreg.c:1659: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:1660: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:1662: ERROR: that open brace { should be on the previous line drivers/staging/otus/hal/hpreg.c:1662: ERROR: else should follow close brace '}' drivers/staging/otus/hal/hpreg.c:1664: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:1671: ERROR: that open brace { should be on the previous line drivers/staging/otus/hal/hpreg.c:1674: ERROR: spaces required around that '=' (ctx:VxV) drivers/staging/otus/hal/hpreg.c:1675: ERROR: spaces required around that '=' (ctx:VxV) drivers/staging/otus/hal/hpreg.c:1676: ERROR: spaces required around that '=' (ctx:VxV) drivers/staging/otus/hal/hpreg.c:1676: ERROR: space required after that ',' (ctx:VxO) drivers/staging/otus/hal/hpreg.c:1676: ERROR: space required before that '*' (ctx:OxV) drivers/staging/otus/hal/hpreg.c:1676: ERROR: spaces required around that '=' (ctx:VxV) drivers/staging/otus/hal/hpreg.c:1678: ERROR: that open brace { should be on the previous line drivers/staging/otus/hal/hpreg.c:1681: ERROR: do not use C99 // comments drivers/staging/otus/hal/hpreg.c:1682: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:1682: ERROR: do not use C99 // comments drivers/staging/otus/hal/hpreg.c:1683: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:1684: ERROR: do not use C99 // comments drivers/staging/otus/hal/hpreg.c:1685: ERROR: do not use C99 // comments drivers/staging/otus/hal/hpreg.c:1686: ERROR: do not use C99 // comments drivers/staging/otus/hal/hpreg.c:1687: ERROR: do not use C99 // comments drivers/staging/otus/hal/hpreg.c:1690: ERROR: that open brace { should be on the previous line drivers/staging/otus/hal/hpreg.c:1692: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:1693: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:1694: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:1695: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:1695: ERROR: do not use C99 // comments drivers/staging/otus/hal/hpreg.c:1696: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:1696: ERROR: do not use C99 // comments drivers/staging/otus/hal/hpreg.c:1697: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:1697: ERROR: do not use C99 // comments drivers/staging/otus/hal/hpreg.c:1698: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:1698: ERROR: do not use C99 // comments drivers/staging/otus/hal/hpreg.c:1699: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:1700: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:1700: ERROR: do not use C99 // comments drivers/staging/otus/hal/hpreg.c:1701: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:1702: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:1702: ERROR: do not use C99 // comments drivers/staging/otus/hal/hpreg.c:1703: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:1706: ERROR: do not use C99 // comments drivers/staging/otus/hal/hpreg.c:1707: ERROR: do not use C99 // comments drivers/staging/otus/hal/hpreg.c:1708: ERROR: do not use C99 // comments drivers/staging/otus/hal/hpreg.c:1710: ERROR: do not use C99 // comments drivers/staging/otus/hal/hpreg.c:1711: ERROR: do not use C99 // comments drivers/staging/otus/hal/hpreg.c:1712: ERROR: do not use C99 // comments drivers/staging/otus/hal/hpreg.c:1713: ERROR: do not use C99 // comments drivers/staging/otus/hal/hpreg.c:1714: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:1714: ERROR: do not use C99 // comments drivers/staging/otus/hal/hpreg.c:1717: ERROR: that open brace { should be on the previous line drivers/staging/otus/hal/hpreg.c:1719: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:1720: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:1721: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:1722: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:1722: ERROR: do not use C99 // comments drivers/staging/otus/hal/hpreg.c:1723: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:1723: ERROR: do not use C99 // comments drivers/staging/otus/hal/hpreg.c:1724: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:1724: ERROR: do not use C99 // comments drivers/staging/otus/hal/hpreg.c:1725: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:1725: ERROR: do not use C99 // comments drivers/staging/otus/hal/hpreg.c:1726: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:1726: ERROR: do not use C99 // comments drivers/staging/otus/hal/hpreg.c:1727: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:1728: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:1728: ERROR: do not use C99 // comments drivers/staging/otus/hal/hpreg.c:1729: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:1730: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:1730: ERROR: do not use C99 // comments drivers/staging/otus/hal/hpreg.c:1731: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:1734: ERROR: do not use C99 // comments drivers/staging/otus/hal/hpreg.c:1735: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:1735: ERROR: do not use C99 // comments drivers/staging/otus/hal/hpreg.c:1736: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:1737: ERROR: do not use C99 // comments drivers/staging/otus/hal/hpreg.c:1738: ERROR: do not use C99 // comments drivers/staging/otus/hal/hpreg.c:1739: ERROR: do not use C99 // comments drivers/staging/otus/hal/hpreg.c:1740: ERROR: do not use C99 // comments drivers/staging/otus/hal/hpreg.c:1743: ERROR: do not use C99 // comments drivers/staging/otus/hal/hpreg.c:1744: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:1744: ERROR: do not use C99 // comments drivers/staging/otus/hal/hpreg.c:1745: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:1746: ERROR: do not use C99 // comments drivers/staging/otus/hal/hpreg.c:1747: ERROR: do not use C99 // comments drivers/staging/otus/hal/hpreg.c:1748: ERROR: do not use C99 // comments drivers/staging/otus/hal/hpreg.c:1749: ERROR: do not use C99 // comments drivers/staging/otus/hal/hpreg.c:1752: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:1755: ERROR: that open brace { should be on the previous line drivers/staging/otus/hal/hpreg.c:1755: WARNING: suspect code indent for conditional statements (16, 20) drivers/staging/otus/hal/hpreg.c:1757: ERROR: do not use C99 // comments drivers/staging/otus/hal/hpreg.c:1759: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:1760: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:1760: ERROR: that open brace { should be on the previous line drivers/staging/otus/hal/hpreg.c:1761: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:1762: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:1762: ERROR: do not use C99 // comments drivers/staging/otus/hal/hpreg.c:1763: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:1764: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:1766: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:1766: ERROR: do not use C99 // comments drivers/staging/otus/hal/hpreg.c:1767: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:1767: ERROR: that open brace { should be on the previous line drivers/staging/otus/hal/hpreg.c:1767: WARNING: suspect code indent for conditional statements (8, 12) drivers/staging/otus/hal/hpreg.c:1767: ERROR: space prohibited before that close parenthesis ')' drivers/staging/otus/hal/hpreg.c:1768: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:1769: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:1770: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:1772: ERROR: that open brace { should be on the previous line drivers/staging/otus/hal/hpreg.c:1772: ERROR: spaces required around that '=' (ctx:VxV) drivers/staging/otus/hal/hpreg.c:1772: ERROR: space required after that ';' (ctx:VxV) drivers/staging/otus/hal/hpreg.c:1772: ERROR: spaces required around that '<' (ctx:VxV) drivers/staging/otus/hal/hpreg.c:1774: ERROR: that open brace { should be on the previous line drivers/staging/otus/hal/hpreg.c:1774: ERROR: space required after that ',' (ctx:VxV) drivers/staging/otus/hal/hpreg.c:1778: ERROR: do not use C99 // comments drivers/staging/otus/hal/hpreg.c:1779: ERROR: do not use C99 // comments drivers/staging/otus/hal/hpreg.c:1780: ERROR: do not use C99 // comments drivers/staging/otus/hal/hpreg.c:1781: ERROR: that open brace { should be on the previous line drivers/staging/otus/hal/hpreg.c:1781: ERROR: spaces required around that '=' (ctx:VxV) drivers/staging/otus/hal/hpreg.c:1786: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:1786: ERROR: do not use C99 // comments drivers/staging/otus/hal/hpreg.c:1787: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:1787: ERROR: that open brace { should be on the previous line drivers/staging/otus/hal/hpreg.c:1787: ERROR: spaces required around that '==' (ctx:VxV) drivers/staging/otus/hal/hpreg.c:1788: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:1789: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:1789: ERROR: that open brace { should be on the previous line drivers/staging/otus/hal/hpreg.c:1789: ERROR: space prohibited after that open parenthesis '(' drivers/staging/otus/hal/hpreg.c:1789: ERROR: space prohibited before that close parenthesis ')' drivers/staging/otus/hal/hpreg.c:1789: ERROR: space required before the open parenthesis '(' drivers/staging/otus/hal/hpreg.c:1790: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:1791: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:1792: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:1793: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:1794: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:1795: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:1796: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:1797: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:1798: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:1799: ERROR: that open brace { should be on the previous line drivers/staging/otus/hal/hpreg.c:1799: WARNING: suspect code indent for conditional statements (40, 44) drivers/staging/otus/hal/hpreg.c:1805: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:1807: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:1809: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:1811: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:1814: ERROR: that open brace { should be on the previous line drivers/staging/otus/hal/hpreg.c:1816: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:1817: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:1820: ERROR: space required before the open parenthesis '(' drivers/staging/otus/hal/hpreg.c:1821: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:1826: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:1837: CHECK: if this code is redundant consider removing it drivers/staging/otus/hal/hpreg.c:1839: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:1840: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:1841: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:1842: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:1843: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:1845: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:1845: ERROR: that open brace { should be on the previous line drivers/staging/otus/hal/hpreg.c:1845: WARNING: suspect code indent for conditional statements (8, 12) drivers/staging/otus/hal/hpreg.c:1845: ERROR: spaces required around that '=' (ctx:VxV) drivers/staging/otus/hal/hpreg.c:1845: ERROR: spaces required around that '<' (ctx:VxV) drivers/staging/otus/hal/hpreg.c:1846: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:1847: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:1848: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:1849: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:1850: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:1851: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:1852: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:1853: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:1854: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:1861: ERROR: "foo* bar" should be "foo *bar" drivers/staging/otus/hal/hpreg.c:1863: ERROR: do not use C99 // comments drivers/staging/otus/hal/hpreg.c:1871: ERROR: "foo* bar" should be "foo *bar" drivers/staging/otus/hal/hpreg.c:1874: ERROR: do not use C99 // comments drivers/staging/otus/hal/hpreg.c:1881: ERROR: that open brace { should be on the previous line drivers/staging/otus/hal/hpreg.c:1883: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:1883: ERROR: that open brace { should be on the previous line drivers/staging/otus/hal/hpreg.c:1883: WARNING: suspect code indent for conditional statements (8, 12) drivers/staging/otus/hal/hpreg.c:1884: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:1885: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:1887: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:1887: ERROR: do not use C99 // comments drivers/staging/otus/hal/hpreg.c:1888: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:1888: ERROR: "(foo*)" should be "(foo *)" drivers/staging/otus/hal/hpreg.c:1890: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:1890: ERROR: do not use C99 // comments drivers/staging/otus/hal/hpreg.c:1892: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:1892: ERROR: that open brace { should be on the previous line drivers/staging/otus/hal/hpreg.c:1893: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:1894: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:1894: ERROR: do not use C99 // comments drivers/staging/otus/hal/hpreg.c:1896: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:1897: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:1898: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:1899: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:1904: ERROR: "foo* bar" should be "foo *bar" drivers/staging/otus/hal/hpreg.c:1908: ERROR: do not use C99 // comments drivers/staging/otus/hal/hpreg.c:1909: ERROR: do not use C99 // comments drivers/staging/otus/hal/hpreg.c:1915: ERROR: that open brace { should be on the previous line drivers/staging/otus/hal/hpreg.c:1916: ERROR: do not use C99 // comments drivers/staging/otus/hal/hpreg.c:1917: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:1917: ERROR: do not use C99 // comments drivers/staging/otus/hal/hpreg.c:1919: ERROR: do not use C99 // comments drivers/staging/otus/hal/hpreg.c:1920: ERROR: that open brace { should be on the previous line drivers/staging/otus/hal/hpreg.c:1922: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:1922: ERROR: do not use C99 // comments drivers/staging/otus/hal/hpreg.c:1923: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:1923: ERROR: that open brace { should be on the previous line drivers/staging/otus/hal/hpreg.c:1923: WARNING: suspect code indent for conditional statements (8, 12) drivers/staging/otus/hal/hpreg.c:1924: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:1925: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:1925: ERROR: do not use C99 // comments drivers/staging/otus/hal/hpreg.c:1926: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:1926: ERROR: do not use C99 // comments drivers/staging/otus/hal/hpreg.c:1928: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:1930: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:1930: ERROR: that open brace { should be on the previous line drivers/staging/otus/hal/hpreg.c:1931: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:1932: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:1933: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:1935: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:1935: ERROR: do not use C99 // comments drivers/staging/otus/hal/hpreg.c:1936: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:1936: ERROR: do not use C99 // comments drivers/staging/otus/hal/hpreg.c:1937: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:1937: ERROR: do not use C99 // comments drivers/staging/otus/hal/hpreg.c:1938: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:1938: ERROR: do not use C99 // comments drivers/staging/otus/hal/hpreg.c:1939: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:1939: ERROR: do not use C99 // comments drivers/staging/otus/hal/hpreg.c:1940: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:1940: ERROR: do not use C99 // comments drivers/staging/otus/hal/hpreg.c:1941: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:1941: ERROR: do not use C99 // comments drivers/staging/otus/hal/hpreg.c:1942: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:1942: ERROR: do not use C99 // comments drivers/staging/otus/hal/hpreg.c:1943: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:1943: ERROR: do not use C99 // comments drivers/staging/otus/hal/hpreg.c:1944: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:1944: ERROR: do not use C99 // comments drivers/staging/otus/hal/hpreg.c:1945: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:1945: ERROR: do not use C99 // comments drivers/staging/otus/hal/hpreg.c:1946: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:1946: ERROR: do not use C99 // comments drivers/staging/otus/hal/hpreg.c:1947: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:1947: ERROR: do not use C99 // comments drivers/staging/otus/hal/hpreg.c:1948: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:1948: ERROR: do not use C99 // comments drivers/staging/otus/hal/hpreg.c:1949: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:1949: ERROR: do not use C99 // comments drivers/staging/otus/hal/hpreg.c:1950: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:1950: ERROR: do not use C99 // comments drivers/staging/otus/hal/hpreg.c:1951: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:1951: ERROR: do not use C99 // comments drivers/staging/otus/hal/hpreg.c:1952: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:1952: ERROR: do not use C99 // comments drivers/staging/otus/hal/hpreg.c:1953: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:1953: ERROR: do not use C99 // comments drivers/staging/otus/hal/hpreg.c:1954: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:1954: ERROR: do not use C99 // comments drivers/staging/otus/hal/hpreg.c:1955: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:1955: ERROR: do not use C99 // comments drivers/staging/otus/hal/hpreg.c:1956: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:1956: ERROR: do not use C99 // comments drivers/staging/otus/hal/hpreg.c:1957: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:1957: ERROR: do not use C99 // comments drivers/staging/otus/hal/hpreg.c:1958: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:1958: ERROR: do not use C99 // comments drivers/staging/otus/hal/hpreg.c:1959: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:1959: ERROR: do not use C99 // comments drivers/staging/otus/hal/hpreg.c:1960: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:1960: ERROR: do not use C99 // comments drivers/staging/otus/hal/hpreg.c:1961: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:1961: ERROR: do not use C99 // comments drivers/staging/otus/hal/hpreg.c:1962: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:1962: ERROR: do not use C99 // comments drivers/staging/otus/hal/hpreg.c:1963: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:1963: ERROR: do not use C99 // comments drivers/staging/otus/hal/hpreg.c:1964: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:1964: ERROR: do not use C99 // comments drivers/staging/otus/hal/hpreg.c:1965: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:1965: ERROR: do not use C99 // comments drivers/staging/otus/hal/hpreg.c:1966: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:1966: ERROR: do not use C99 // comments drivers/staging/otus/hal/hpreg.c:1967: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:1967: ERROR: do not use C99 // comments drivers/staging/otus/hal/hpreg.c:1968: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:1968: ERROR: do not use C99 // comments drivers/staging/otus/hal/hpreg.c:1969: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:1969: ERROR: do not use C99 // comments drivers/staging/otus/hal/hpreg.c:1970: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:1970: ERROR: do not use C99 // comments drivers/staging/otus/hal/hpreg.c:1971: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:1971: ERROR: do not use C99 // comments drivers/staging/otus/hal/hpreg.c:1973: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:1974: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:1976: ERROR: do not use C99 // comments drivers/staging/otus/hal/hpreg.c:1980: ERROR: "foo* bar" should be "foo *bar" drivers/staging/otus/hal/hpreg.c:1984: ERROR: that open brace { should be on the previous line drivers/staging/otus/hal/hpreg.c:1986: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:1986: ERROR: that open brace { should be on the previous line drivers/staging/otus/hal/hpreg.c:1986: WARNING: suspect code indent for conditional statements (8, 12) drivers/staging/otus/hal/hpreg.c:1987: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:1988: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:1989: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:1995: ERROR: "foo* bar" should be "foo *bar" drivers/staging/otus/hal/hpreg.c:2003: ERROR: that open brace { should be on the previous line drivers/staging/otus/hal/hpreg.c:2005: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:2005: ERROR: that open brace { should be on the previous line drivers/staging/otus/hal/hpreg.c:2005: WARNING: suspect code indent for conditional statements (8, 12) drivers/staging/otus/hal/hpreg.c:2006: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:2007: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:2008: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:2009: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:2032: ERROR: "foo* bar" should be "foo *bar" drivers/staging/otus/hal/hpreg.c:2035: ERROR: space required after that close brace '}' drivers/staging/otus/hal/hpreg.c:2039: ERROR: that open brace { should be on the previous line drivers/staging/otus/hal/hpreg.c:2041: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:2041: WARNING: suspect code indent for conditional statements (8, 12) drivers/staging/otus/hal/hpreg.c:2042: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:2045: ERROR: that open brace { should be on the previous line drivers/staging/otus/hal/hpreg.c:2047: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:2048: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:2050: ERROR: that open brace { should be on the previous line drivers/staging/otus/hal/hpreg.c:2050: ERROR: else should follow close brace '}' drivers/staging/otus/hal/hpreg.c:2052: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:2055: ERROR: that open brace { should be on the previous line drivers/staging/otus/hal/hpreg.c:2057: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:2057: ERROR: that open brace { should be on the previous line drivers/staging/otus/hal/hpreg.c:2057: WARNING: suspect code indent for conditional statements (8, 12) drivers/staging/otus/hal/hpreg.c:2058: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:2059: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:2060: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:2061: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:2061: ERROR: that open brace { should be on the previous line drivers/staging/otus/hal/hpreg.c:2062: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:2063: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:2064: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:2065: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:2066: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:2067: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:2073: ERROR: "foo* bar" should be "foo *bar" drivers/staging/otus/hal/hpreg.c:2079: ERROR: that open brace { should be on the previous line drivers/staging/otus/hal/hpreg.c:2081: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:2081: WARNING: suspect code indent for conditional statements (8, 12) drivers/staging/otus/hal/hpreg.c:2082: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:2085: ERROR: that open brace { should be on the previous line drivers/staging/otus/hal/hpreg.c:2085: ERROR: space prohibited after that open parenthesis '(' drivers/staging/otus/hal/hpreg.c:2087: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:2087: ERROR: that open brace { should be on the previous line drivers/staging/otus/hal/hpreg.c:2087: WARNING: suspect code indent for conditional statements (8, 12) drivers/staging/otus/hal/hpreg.c:2088: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:2089: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:2090: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:2091: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:2093: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:2093: ERROR: do not use C99 // comments drivers/staging/otus/hal/hpreg.c:2094: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:2094: ERROR: do not use C99 // comments drivers/staging/otus/hal/hpreg.c:2096: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:2098: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:2098: ERROR: that open brace { should be on the previous line drivers/staging/otus/hal/hpreg.c:2098: WARNING: suspect code indent for conditional statements (8, 12) drivers/staging/otus/hal/hpreg.c:2099: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:2100: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:2101: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:2102: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:2103: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:2105: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:2111: ERROR: "foo* bar" should be "foo *bar" drivers/staging/otus/hal/hpreg.c:2117: ERROR: that open brace { should be on the previous line drivers/staging/otus/hal/hpreg.c:2119: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:2119: ERROR: do not use C99 // comments drivers/staging/otus/hal/hpreg.c:2120: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:2120: ERROR: that open brace { should be on the previous line drivers/staging/otus/hal/hpreg.c:2120: WARNING: suspect code indent for conditional statements (8, 12) drivers/staging/otus/hal/hpreg.c:2121: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:2122: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:2123: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:2124: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:2127: ERROR: return is not a function, parentheses are not required drivers/staging/otus/hal/hpreg.c:2130: ERROR: "foo* bar" should be "foo *bar" drivers/staging/otus/hal/hpreg.c:2140: ERROR: that open brace { should be on the previous line drivers/staging/otus/hal/hpreg.c:2142: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:2142: ERROR: do not use C99 // comments drivers/staging/otus/hal/hpreg.c:2143: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:2143: ERROR: that open brace { should be on the previous line drivers/staging/otus/hal/hpreg.c:2143: WARNING: suspect code indent for conditional statements (8, 12) drivers/staging/otus/hal/hpreg.c:2144: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:2145: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:2146: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:2147: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:2152: ERROR: return is not a function, parentheses are not required drivers/staging/otus/hal/hpreg.c:2155: ERROR: "foo* bar" should be "foo *bar" drivers/staging/otus/hal/hpreg.c:2160: ERROR: that open brace { should be on the previous line drivers/staging/otus/hal/hpreg.c:2162: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:2162: ERROR: that open brace { should be on the previous line drivers/staging/otus/hal/hpreg.c:2162: WARNING: suspect code indent for conditional statements (8, 12) drivers/staging/otus/hal/hpreg.c:2163: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:2164: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:2165: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:2171: ERROR: "foo* bar" should be "foo *bar" drivers/staging/otus/hal/hpreg.c:2181: ERROR: that open brace { should be on the previous line drivers/staging/otus/hal/hpreg.c:2183: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:2183: ERROR: that open brace { should be on the previous line drivers/staging/otus/hal/hpreg.c:2183: WARNING: suspect code indent for conditional statements (8, 12) drivers/staging/otus/hal/hpreg.c:2184: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:2185: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:2185: ERROR: that open brace { should be on the previous line drivers/staging/otus/hal/hpreg.c:2186: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:2187: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:2187: ERROR: that open brace { should be on the previous line drivers/staging/otus/hal/hpreg.c:2187: WARNING: suspect code indent for conditional statements (16, 20) drivers/staging/otus/hal/hpreg.c:2188: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:2189: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:2190: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:2191: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:2192: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:2193: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:2193: ERROR: that open brace { should be on the previous line drivers/staging/otus/hal/hpreg.c:2193: ERROR: else should follow close brace '}' drivers/staging/otus/hal/hpreg.c:2194: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:2195: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:2195: ERROR: that open brace { should be on the previous line drivers/staging/otus/hal/hpreg.c:2195: WARNING: suspect code indent for conditional statements (16, 20) drivers/staging/otus/hal/hpreg.c:2196: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:2197: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:2198: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:2199: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:2200: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:2201: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:2212: ERROR: "foo* bar" should be "foo *bar" drivers/staging/otus/hal/hpreg.c:2216: ERROR: that open brace { should be on the previous line drivers/staging/otus/hal/hpreg.c:2218: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:2219: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:2220: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:2221: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:2222: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:2223: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:2224: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:2225: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:2226: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:2227: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:2228: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:2229: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:2230: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:2231: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:2232: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:2233: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:2234: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:2235: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:2235: ERROR: do not use C99 // comments drivers/staging/otus/hal/hpreg.c:2236: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:2238: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:2239: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:2239: ERROR: do not use C99 // comments drivers/staging/otus/hal/hpreg.c:2240: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:2242: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:2243: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:2244: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:2245: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:2246: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:2247: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:2248: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:2249: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:2250: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:2251: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:2252: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:2253: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:2254: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:2255: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:2256: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:2257: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:2258: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:2259: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:2260: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:2260: ERROR: do not use C99 // comments drivers/staging/otus/hal/hpreg.c:2261: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:2263: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:2264: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:2265: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:2266: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:2267: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:2268: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:2269: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:2270: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:2271: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:2272: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:2273: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:2274: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:2275: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:2276: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:2277: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:2278: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:2279: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:2280: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:2281: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:2282: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:2283: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:2284: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:2285: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:2286: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:2287: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:2288: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:2289: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:2290: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:2291: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:2292: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:2293: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:2294: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:2295: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:2296: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:2297: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:2298: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:2299: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:2300: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:2301: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:2302: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:2303: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:2304: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:2305: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:2306: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:2307: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:2308: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:2309: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:2310: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:2311: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:2312: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:2313: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:2314: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:2315: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:2316: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:2317: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:2318: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:2319: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:2320: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:2321: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:2322: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:2323: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:2324: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:2325: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:2326: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:2327: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:2328: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:2329: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:2330: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:2331: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:2332: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:2332: ERROR: do not use C99 // comments drivers/staging/otus/hal/hpreg.c:2333: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:2335: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:2336: ERROR: code indent should use tabs where possible drivers/staging/otus/hal/hpreg.c:2338: ERROR: do not use C99 // comments drivers/staging/otus/hal/hpreg.c:2343: ERROR: "foo* bar" should be "foo *bar" drivers/staging/otus/hal/hpreg.c:2345: ERROR: "foo* bar" should be "foo *bar" drivers/staging/otus/hal/hpreg.c:2348: ERROR: spaces required around that '=' (ctx:VxV) Signed-off-by: Andrea Gelmini Signed-off-by: Greg Kroah-Hartman --- drivers/staging/otus/hal/hpreg.c | 1586 ++++++++++++++---------------- 1 file changed, 754 insertions(+), 832 deletions(-) diff --git a/drivers/staging/otus/hal/hpreg.c b/drivers/staging/otus/hal/hpreg.c index 178777c09dbd..da3b77433874 100644 --- a/drivers/staging/otus/hal/hpreg.c +++ b/drivers/staging/otus/hal/hpreg.c @@ -30,7 +30,7 @@ #include "hpusb.h" /* used throughout this file... */ -#define N(a) (sizeof (a) / sizeof (a[0])) +#define N(a) (sizeof(a) / sizeof(a[0])) #define HAL_MODE_11A_TURBO HAL_MODE_108A #define HAL_MODE_11G_TURBO HAL_MODE_108G @@ -78,7 +78,7 @@ enum { }; #define MKK5GHZ_FLAG1 (DISALLOW_ADHOC_11A_TURB | NEED_NFC | LIMIT_FRAME_4MS) -#define MKK5GHZ_FLAG2 (DISALLOW_ADHOC_11A | DISALLOW_ADHOC_11A_TURB | NEED_NFC| LIMIT_FRAME_4MS) +#define MKK5GHZ_FLAG2 (DISALLOW_ADHOC_11A | DISALLOW_ADHOC_11A_TURB | NEED_NFC | LIMIT_FRAME_4MS) typedef enum { DFS_UNINIT_DOMAIN = 0, /* Uninitialized dfs domain */ @@ -272,7 +272,7 @@ static REG_DMN_PAIR_MAPPING regDomainPairs[] = { /* MKK4 */ {MKK4_MKKB, MKK4, MKKA, MKK5GHZ_FLAG2, NEED_NFC, PSCAN_MKK3 | PSCAN_MKKA | PSCAN_MKKA_G, CTRY_JAPAN10 }, {MKK4_MKKA1, MKK4, MKKA, MKK5GHZ_FLAG1, NEED_NFC, PSCAN_MKK3 | PSCAN_MKKA1 | PSCAN_MKKA1_G, CTRY_JAPAN28 }, - {MKK4_MKKA2, MKK4, MKKA, MKK5GHZ_FLAG1, NEED_NFC, PSCAN_MKK3 |PSCAN_MKKA2 | PSCAN_MKKA2_G, CTRY_JAPAN11 }, + {MKK4_MKKA2, MKK4, MKKA, MKK5GHZ_FLAG1, NEED_NFC, PSCAN_MKK3 | PSCAN_MKKA2 | PSCAN_MKKA2_G, CTRY_JAPAN11 }, {MKK4_MKKC, MKK4, MKKC, MKK5GHZ_FLAG1, NEED_NFC, PSCAN_MKK3, CTRY_JAPAN12 }, {MKK4_FCCA, MKK4, FCCA, MKK5GHZ_FLAG1, NEED_NFC, NO_PSCAN, CTRY_JAPAN29 }, {MKK4_MKKA, MKK4, MKKA, MKK5GHZ_FLAG1, NEED_NFC, PSCAN_MKK3 | PSCAN_MKKA, CTRY_JAPAN36 }, @@ -301,7 +301,7 @@ static REG_DMN_PAIR_MAPPING regDomainPairs[] = { {MKK8_MKKA2, MKK8, MKKA, MKK5GHZ_FLAG1, NEED_NFC, PSCAN_MKK1 | PSCAN_MKK3 | PSCAN_MKKA2 | PSCAN_MKKA2_G, CTRY_JAPAN23 }, {MKK8_MKKC, MKK8, MKKC, MKK5GHZ_FLAG1, NEED_NFC, PSCAN_MKK1 | PSCAN_MKK3 , CTRY_JAPAN24 }, - /* MKK9 */ + /* MKK9 */ {MKK9_MKKA, MKK9, MKKA, MKK5GHZ_FLAG1, NEED_NFC, NO_PSCAN, CTRY_JAPAN34 }, {MKK9_FCCA, MKK9, FCCA, MKK5GHZ_FLAG1, NEED_NFC, NO_PSCAN, CTRY_JAPAN37 }, {MKK9_MKKA1, MKK9, MKKA, MKK5GHZ_FLAG1, NEED_NFC, PSCAN_MKKA1 | PSCAN_MKKA1_G, CTRY_JAPAN38 }, @@ -359,7 +359,7 @@ static REG_DMN_PAIR_MAPPING regDomainPairs[] = { #define COUNTRY_CODE_MASK 0x03ff #define CF_INTERFERENCE (CHANNEL_CW_INT | CHANNEL_RADAR_INT) #define CHANNEL_14 (2484) /* 802.11g operation is not permitted on channel 14 */ -#define IS_11G_CH14(_ch,_cf) \ +#define IS_11G_CH14(_ch, _cf) \ (((_ch) == CHANNEL_14) && ((_cf) == CHANNEL_G)) #define YES TRUE @@ -373,183 +373,183 @@ enum { typedef struct { HAL_CTRY_CODE countryCode; HAL_REG_DOMAIN regDmnEnum; - const char* isoName; - const char* name; + const char *isoName; + const char *name; HAL_BOOL allow11g; HAL_BOOL allow11aTurbo; HAL_BOOL allow11gTurbo; - HAL_BOOL allow11na; /* HT-40 allowed in 5GHz? */ - HAL_BOOL allow11ng; /* HT-40 allowed in 2GHz? */ + HAL_BOOL allow11na; /* HT-40 allowed in 5GHz? */ + HAL_BOOL allow11ng; /* HT-40 allowed in 2GHz? */ u16_t outdoorChanStart; } COUNTRY_CODE_TO_ENUM_RD; static COUNTRY_CODE_TO_ENUM_RD allCountries[] = { - {CTRY_DEBUG, NO_ENUMRD, "DB", "DEBUG", YES, YES, YES, YES, YES, 7000 }, - {CTRY_DEFAULT, DEF_REGDMN, "NA", "NO_COUNTRY_SET", YES, YES, YES, YES, YES, 7000 }, - {CTRY_ALBANIA, NULL1_WORLD, "AL", "ALBANIA", YES, NO, YES, NO, YES, 7000 }, - {CTRY_ALGERIA, NULL1_WORLD, "DZ", "ALGERIA", YES, NO, YES, NO, YES, 7000 }, - {CTRY_ARGENTINA, APL3_WORLD, "AR", "ARGENTINA", YES, NO, NO, NO, NO, 7000 }, - {CTRY_ARMENIA, ETSI4_WORLD, "AM", "ARMENIA", YES, NO, YES, NO, YES, 7000 }, - {CTRY_AUSTRALIA, FCC6_WORLD, "AU", "AUSTRALIA", YES, YES, YES, YES, YES, 7000 }, - {CTRY_AUSTRIA, ETSI2_WORLD, "AT", "AUSTRIA", YES, NO, YES, YES, YES, 7000 }, - {CTRY_AZERBAIJAN, ETSI4_WORLD, "AZ", "AZERBAIJAN", YES, YES, YES, YES, YES, 7000 }, - {CTRY_BAHRAIN, APL6_WORLD, "BH", "BAHRAIN", YES, NO, YES, NO, YES, 7000 }, - {CTRY_BELARUS, ETSI1_WORLD, "BY", "BELARUS", YES, NO, YES, YES, YES, 7000 }, - {CTRY_BELGIUM, ETSI1_WORLD, "BE", "BELGIUM", YES, NO, YES, YES, YES, 7000 }, - {CTRY_BELIZE, APL1_ETSIC, "BZ", "BELIZE", YES, YES, YES, YES, YES, 7000 }, - {CTRY_BOLIVIA, APL1_ETSIC, "BO", "BOLVIA", YES, YES, YES, YES, YES, 7000 }, - {CTRY_BRAZIL, FCC3_WORLD, "BR", "BRAZIL", NO, NO, NO, NO, NO, 7000 }, - {CTRY_BRUNEI_DARUSSALAM,APL1_WORLD,"BN", "BRUNEI DARUSSALAM", YES, YES, YES, YES, YES, 7000 }, - {CTRY_BULGARIA, ETSI6_WORLD, "BG", "BULGARIA", YES, NO, YES, YES, YES, 7000 }, - {CTRY_CANADA, FCC6_FCCA, "CA", "CANADA", YES, YES, YES, YES, YES, 7000 }, - {CTRY_CHILE, APL6_WORLD, "CL", "CHILE", YES, YES, YES, YES, YES, 7000 }, - {CTRY_CHINA, APL1_WORLD, "CN", "CHINA", YES, YES, YES, YES, YES, 7000 }, - {CTRY_COLOMBIA, FCC1_FCCA, "CO", "COLOMBIA", YES, NO, YES, NO, YES, 7000 }, - {CTRY_COSTA_RICA, FCC1_WORLD, "CR", "COSTA RICA", YES, NO, YES, NO, YES, 7000 }, - {CTRY_CROATIA, ETSI3_WORLD, "HR", "CROATIA", YES, NO, YES, NO, YES, 7000 }, - {CTRY_CYPRUS, ETSI3_WORLD, "CY", "CYPRUS", YES, YES, YES, YES, YES, 7000 }, - {CTRY_CZECH, ETSI3_WORLD, "CZ", "CZECH REPUBLIC", YES, NO, YES, YES, YES, 7000 }, - {CTRY_DENMARK, ETSI1_WORLD, "DK", "DENMARK", YES, NO, YES, YES, YES, 7000 }, - {CTRY_DOMINICAN_REPUBLIC,FCC1_FCCA,"DO", "DOMINICAN REPUBLIC", YES, YES, YES, YES, YES, 7000 }, - {CTRY_ECUADOR, FCC1_WORLD, "EC", "ECUADOR", YES, NO, NO, NO, YES, 7000 }, - {CTRY_EGYPT, ETSI3_WORLD, "EG", "EGYPT", YES, NO, YES, NO, YES, 7000 }, - {CTRY_EL_SALVADOR, FCC1_WORLD, "SV", "EL SALVADOR", YES, NO, YES, NO, YES, 7000 }, - {CTRY_ESTONIA, ETSI1_WORLD, "EE", "ESTONIA", YES, NO, YES, YES, YES, 7000 }, - {CTRY_FINLAND, ETSI1_WORLD, "FI", "FINLAND", YES, NO, YES, YES, YES, 7000 }, - {CTRY_FRANCE, ETSI1_WORLD, "FR", "FRANCE", YES, NO, YES, YES, YES, 7000 }, - {CTRY_FRANCE2, ETSI3_WORLD, "F2", "FRANCE_RES", YES, NO, YES, YES, YES, 7000 }, - {CTRY_GEORGIA, ETSI4_WORLD, "GE", "GEORGIA", YES, YES, YES, YES, YES, 7000 }, - {CTRY_GERMANY, ETSI1_WORLD, "DE", "GERMANY", YES, NO, YES, YES, YES, 7000 }, - {CTRY_GREECE, ETSI1_WORLD, "GR", "GREECE", YES, NO, YES, YES, YES, 7000 }, - {CTRY_GUATEMALA, FCC1_FCCA, "GT", "GUATEMALA", YES, YES, YES, YES, YES, 7000 }, - {CTRY_HONDURAS, NULL1_WORLD, "HN", "HONDURAS", YES, NO, YES, NO, YES, 7000 }, - {CTRY_HONG_KONG, FCC2_WORLD, "HK", "HONG KONG", YES, YES, YES, YES, YES, 7000 }, - {CTRY_HUNGARY, ETSI4_WORLD, "HU", "HUNGARY", YES, NO, YES, YES, YES, 7000 }, - {CTRY_ICELAND, ETSI1_WORLD, "IS", "ICELAND", YES, NO, YES, YES, YES, 7000 }, - {CTRY_INDIA, APL6_WORLD, "IN", "INDIA", YES, NO, YES, NO, YES, 7000 }, - {CTRY_INDONESIA, APL1_WORLD, "ID", "INDONESIA", YES, NO, YES, NO, YES, 7000 }, - {CTRY_IRAN, APL1_WORLD, "IR", "IRAN", YES, YES, YES, YES, YES, 7000 }, - {CTRY_IRELAND, ETSI1_WORLD, "IE", "IRELAND", YES, NO, YES, YES, YES, 7000 }, - {CTRY_ISRAEL, ETSI3_WORLD, "IL", "ISRAEL", YES, NO, YES, NO, YES, 7000 }, - {CTRY_ISRAEL2, NULL1_ETSIB, "ISR","ISRAEL_RES", YES, NO, YES, NO, YES, 7000 }, - {CTRY_ITALY, ETSI1_WORLD, "IT", "ITALY", YES, NO, YES, YES, YES, 7000 }, - {CTRY_JAMAICA, ETSI1_WORLD, "JM", "JAMAICA", YES, NO, YES, YES, YES, 7000 }, - {CTRY_JAPAN, MKK1_MKKA, "JP", "JAPAN", YES, NO, NO, NO, NO, 7000 }, - {CTRY_JAPAN1, MKK1_MKKB, "J1", "JAPAN1", YES, NO, NO, NO, NO, 7000 }, - {CTRY_JAPAN2, MKK1_FCCA, "J2", "JAPAN2", YES, NO, NO, NO, NO, 7000 }, - {CTRY_JAPAN3, MKK2_MKKA, "J3", "JAPAN3", YES, NO, NO, NO, NO, 7000 }, - {CTRY_JAPAN4, MKK1_MKKA1, "J4", "JAPAN4", YES, NO, NO, NO, NO, 7000 }, - {CTRY_JAPAN5, MKK1_MKKA2, "J5", "JAPAN5", YES, NO, NO, NO, NO, 7000 }, - {CTRY_JAPAN6, MKK1_MKKC, "J6", "JAPAN6", YES, NO, NO, NO, NO, 7000 }, - {CTRY_JAPAN7, MKK3_MKKB, "J7", "JAPAN7", YES, NO, NO, NO, NO, 7000 }, - {CTRY_JAPAN8, MKK3_MKKA2, "J8", "JAPAN8", YES, NO, NO, NO, NO, 7000 }, - {CTRY_JAPAN9, MKK3_MKKC, "J9", "JAPAN9", YES, NO, NO, NO, NO, 7000 }, - {CTRY_JAPAN10, MKK4_MKKB, "J10", "JAPAN10", YES, NO, NO, NO, NO, 7000 }, - {CTRY_JAPAN11, MKK4_MKKA2, "J11", "JAPAN11", YES, NO, NO, NO, NO, 7000 }, - {CTRY_JAPAN12, MKK4_MKKC, "J12", "JAPAN12", YES, NO, NO, NO, NO, 7000 }, - {CTRY_JAPAN13, MKK5_MKKB, "J13", "JAPAN13", YES, NO, NO, NO, NO, 7000 }, - {CTRY_JAPAN14, MKK5_MKKA2, "J14", "JAPAN14", YES, NO, NO, NO, NO, 7000 }, - {CTRY_JAPAN15, MKK5_MKKC, "J15", "JAPAN15", YES, NO, NO, NO, NO, 7000 }, - {CTRY_JAPAN16, MKK6_MKKB, "J16", "JAPAN16", YES, NO, NO, NO, NO, 7000 }, - {CTRY_JAPAN17, MKK6_MKKA2, "J17", "JAPAN17", YES, NO, NO, NO, NO, 7000 }, - {CTRY_JAPAN18, MKK6_MKKC, "J18", "JAPAN18", YES, NO, NO, NO, NO, 7000 }, - {CTRY_JAPAN19, MKK7_MKKB, "J19", "JAPAN19", YES, NO, NO, NO, NO, 7000 }, - {CTRY_JAPAN20, MKK7_MKKA, "J20", "JAPAN20", YES, NO, NO, NO, NO, 7000 }, - {CTRY_JAPAN21, MKK7_MKKC, "J21", "JAPAN21", YES, NO, NO, NO, NO, 7000 }, - {CTRY_JAPAN22, MKK8_MKKB, "J22", "JAPAN22", YES, NO, NO, NO, NO, 7000 }, - {CTRY_JAPAN23, MKK8_MKKA2, "J23", "JAPAN23", YES, NO, NO, NO, NO, 7000 }, - {CTRY_JAPAN24, MKK8_MKKC, "J24", "JAPAN24", YES, NO, NO, NO, NO, 7000 }, - {CTRY_JAPAN25, MKK3_MKKA, "J25", "JAPAN25", YES, NO, NO, NO, NO, 7000 }, - {CTRY_JAPAN26, MKK3_MKKA1, "J26", "JAPAN26", YES, NO, NO, NO, NO, 7000 }, - {CTRY_JAPAN27, MKK3_FCCA, "J27", "JAPAN27", YES, NO, NO, NO, NO, 7000 }, - {CTRY_JAPAN28, MKK4_MKKA1, "J28", "JAPAN28", YES, NO, NO, NO, NO, 7000 }, - {CTRY_JAPAN29, MKK4_FCCA, "J29", "JAPAN29", YES, NO, NO, NO, NO, 7000 }, - {CTRY_JAPAN30, MKK6_MKKA1, "J30", "JAPAN30", YES, NO, NO, NO, NO, 7000 }, - {CTRY_JAPAN31, MKK6_FCCA, "J31", "JAPAN31", YES, NO, NO, NO, NO, 7000 }, - {CTRY_JAPAN32, MKK7_MKKA1, "J32", "JAPAN32", YES, NO, NO, NO, NO, 7000 }, - {CTRY_JAPAN33, MKK7_FCCA, "J33", "JAPAN33", YES, NO, NO, NO, NO, 7000 }, - {CTRY_JAPAN34, MKK9_MKKA, "J34", "JAPAN34", YES, NO, NO, NO, NO, 7000 }, - {CTRY_JAPAN35, MKK10_MKKA, "J35", "JAPAN35", YES, NO, NO, NO, NO, 7000 }, - {CTRY_JAPAN36, MKK4_MKKA, "J36", "JAPAN36", YES, NO, NO, NO, NO, 7000 }, - {CTRY_JAPAN37, MKK9_FCCA, "J37", "JAPAN37", YES, NO, NO, NO, NO, 7000 }, - {CTRY_JAPAN38, MKK9_MKKA1, "J38", "JAPAN38", YES, NO, NO, NO, NO, 7000 }, - {CTRY_JAPAN39, MKK9_MKKC, "J39", "JAPAN39", YES, NO, NO, NO, NO, 7000 }, - {CTRY_JAPAN40, MKK10_MKKA2, "J40", "JAPAN40", YES, NO, NO, NO, NO, 7000 }, - {CTRY_JAPAN41, MKK10_FCCA, "J41", "JAPAN41", YES, NO, NO, NO, NO, 7000 }, - {CTRY_JAPAN42, MKK10_MKKA1, "J42", "JAPAN42", YES, NO, NO, NO, NO, 7000 }, - {CTRY_JAPAN43, MKK10_MKKC, "J43", "JAPAN43", YES, NO, NO, NO, NO, 7000 }, - {CTRY_JAPAN44, MKK10_MKKA2, "J44", "JAPAN44", YES, NO, NO, NO, NO, 7000 }, - {CTRY_JAPAN45, MKK11_MKKA, "J45", "JAPAN45", YES, NO, NO, NO, NO, 7000 }, - {CTRY_JAPAN46, MKK11_FCCA, "J46", "JAPAN46", YES, NO, NO, NO, NO, 7000 }, - {CTRY_JAPAN47, MKK11_MKKA1, "J47", "JAPAN47", YES, NO, NO, NO, NO, 7000 }, - {CTRY_JAPAN48, MKK11_MKKC, "J48", "JAPAN48", YES, NO, NO, NO, NO, 7000 }, - {CTRY_JAPAN49, MKK11_MKKA2, "J49", "JAPAN49", YES, NO, NO, NO, NO, 7000 }, - {CTRY_JAPAN50, MKK12_MKKA, "J50", "JAPAN50", YES, NO, NO, NO, NO, 7000 }, - {CTRY_JAPAN51, MKK12_FCCA, "J51", "JAPAN51", YES, NO, NO, NO, NO, 7000 }, - {CTRY_JAPAN52, MKK12_MKKA1, "J52", "JAPAN52", YES, NO, NO, NO, NO, 7000 }, - {CTRY_JAPAN53, MKK12_MKKC, "J53", "JAPAN53", YES, NO, NO, NO, NO, 7000 }, - {CTRY_JAPAN54, MKK12_MKKA2, "J54", "JAPAN54", YES, NO, NO, NO, NO, 7000 }, - {CTRY_JORDAN, ETSI2_WORLD, "JO", "JORDAN", YES, NO, YES, NO, YES, 7000 }, - {CTRY_KAZAKHSTAN, NULL1_WORLD, "KZ", "KAZAKHSTAN", YES, NO, YES, NO, YES, 7000 }, - {CTRY_KOREA_NORTH, APL9_WORLD, "KP", "NORTH KOREA", YES, NO, NO, YES, YES, 7000 }, - {CTRY_KOREA_ROC, APL9_WORLD, "KR", "KOREA REPUBLIC", YES, NO, NO, NO, NO, 7000 }, - {CTRY_KOREA_ROC2, APL2_APLD, "K2", "KOREA REPUBLIC2",YES, NO, NO, NO, NO, 7000 }, - {CTRY_KOREA_ROC3, APL9_WORLD, "K3", "KOREA REPUBLIC3",YES, NO, NO, NO, NO, 7000 }, - {CTRY_KUWAIT, NULL1_WORLD, "KW", "KUWAIT", YES, NO, YES, NO, YES, 7000 }, - {CTRY_LATVIA, ETSI1_WORLD, "LV", "LATVIA", YES, NO, YES, YES, YES, 7000 }, - {CTRY_LEBANON, NULL1_WORLD, "LB", "LEBANON", YES, NO, YES, NO, YES, 7000 }, - {CTRY_LIECHTENSTEIN,ETSI1_WORLD, "LI", "LIECHTENSTEIN", YES, NO, YES, YES, YES, 7000 }, - {CTRY_LITHUANIA, ETSI1_WORLD, "LT", "LITHUANIA", YES, NO, YES, YES, YES, 7000 }, - {CTRY_LUXEMBOURG, ETSI1_WORLD, "LU", "LUXEMBOURG", YES, NO, YES, YES, YES, 7000 }, - {CTRY_MACAU, FCC2_WORLD, "MO", "MACAU", YES, YES, YES, YES, YES, 7000 }, - {CTRY_MACEDONIA, NULL1_WORLD, "MK", "MACEDONIA", YES, NO, YES, NO, YES, 7000 }, - {CTRY_MALAYSIA, APL8_WORLD, "MY", "MALAYSIA", NO, NO, NO, NO, NO, 7000 }, - {CTRY_MALTA, ETSI1_WORLD, "MT", "MALTA", YES, NO, YES, YES, YES, 7000 }, - {CTRY_MEXICO, FCC1_FCCA, "MX", "MEXICO", YES, YES, YES, YES, YES, 7000 }, - {CTRY_MONACO, ETSI4_WORLD, "MC", "MONACO", YES, YES, YES, YES, YES, 7000 }, - {CTRY_MOROCCO, NULL1_WORLD, "MA", "MOROCCO", YES, NO, YES, NO, YES, 7000 }, - {CTRY_NETHERLANDS, ETSI1_WORLD, "NL", "NETHERLANDS", YES, NO, YES, YES, YES, 7000 }, - {CTRY_NETHERLANDS_ANT, ETSI1_WORLD, "AN", "NETHERLANDS-ANTILLES", YES, NO, YES, YES, YES, 7000 }, - {CTRY_NEW_ZEALAND, FCC2_ETSIC, "NZ", "NEW ZEALAND", YES, NO, YES, NO, YES, 7000 }, - {CTRY_NORWAY, ETSI1_WORLD, "NO", "NORWAY", YES, NO, YES, YES, YES, 7000 }, - {CTRY_OMAN, APL6_WORLD, "OM", "OMAN", YES, NO, YES, NO, YES, 7000 }, - {CTRY_PAKISTAN, NULL1_WORLD, "PK", "PAKISTAN", YES, NO, YES, NO, YES, 7000 }, - {CTRY_PANAMA, FCC1_FCCA, "PA", "PANAMA", YES, YES, YES, YES, YES, 7000 }, - {CTRY_PERU, APL1_WORLD, "PE", "PERU", YES, NO, YES, NO, YES, 7000 }, - {CTRY_PHILIPPINES, APL1_WORLD, "PH", "PHILIPPINES", YES, YES, YES, YES, YES, 7000 }, - {CTRY_POLAND, ETSI1_WORLD, "PL", "POLAND", YES, NO, YES, YES, YES, 7000 }, - {CTRY_PORTUGAL, ETSI1_WORLD, "PT", "PORTUGAL", YES, NO, YES, YES, YES, 7000 }, - {CTRY_PUERTO_RICO, FCC1_FCCA, "PR", "PUERTO RICO", YES, YES, YES, YES, YES, 7000 }, - {CTRY_QATAR, NULL1_WORLD, "QA", "QATAR", YES, NO, YES, NO, YES, 7000 }, - {CTRY_ROMANIA, NULL1_WORLD, "RO", "ROMANIA", YES, NO, YES, NO, YES, 7000 }, - {CTRY_RUSSIA, NULL1_WORLD, "RU", "RUSSIA", YES, NO, YES, NO, YES, 7000 }, - {CTRY_SAUDI_ARABIA,NULL1_WORLD, "SA", "SAUDI ARABIA", YES, NO, YES, NO, YES, 7000 }, - {CTRY_SERBIA_MONT, ETSI1_WORLD, "CS", "SERBIA & MONTENEGRO", YES, NO, YES, YES, YES, 7000 }, - {CTRY_SINGAPORE, APL6_WORLD, "SG", "SINGAPORE", YES, YES, YES, YES, YES, 7000 }, - {CTRY_SLOVAKIA, ETSI1_WORLD, "SK", "SLOVAK REPUBLIC",YES, NO, YES, YES, YES, 7000 }, - {CTRY_SLOVENIA, ETSI1_WORLD, "SI", "SLOVENIA", YES, NO, YES, YES, YES, 7000 }, - {CTRY_SOUTH_AFRICA,FCC3_WORLD, "ZA", "SOUTH AFRICA", YES, NO, YES, NO, YES, 7000 }, - {CTRY_SPAIN, ETSI1_WORLD, "ES", "SPAIN", YES, NO, YES, YES, YES, 7000 }, - {CTRY_SRILANKA, FCC3_WORLD, "LK", "SRI LANKA", YES, NO, YES, NO, YES, 7000 }, - {CTRY_SWEDEN, ETSI1_WORLD, "SE", "SWEDEN", YES, NO, YES, YES, YES, 7000 }, - {CTRY_SWITZERLAND, ETSI1_WORLD, "CH", "SWITZERLAND", YES, NO, YES, YES, YES, 7000 }, - {CTRY_SYRIA, NULL1_WORLD, "SY", "SYRIA", YES, NO, YES, NO, YES, 7000 }, - {CTRY_TAIWAN, APL3_FCCA, "TW", "TAIWAN", YES, YES, YES, YES, YES, 7000 }, - {CTRY_THAILAND, NULL1_WORLD, "TH", "THAILAND", YES, NO, YES, NO, YES, 7000 }, - {CTRY_TRINIDAD_Y_TOBAGO,ETSI4_WORLD,"TT", "TRINIDAD & TOBAGO", YES, NO, YES, NO, YES, 7000 }, - {CTRY_TUNISIA, ETSI3_WORLD, "TN", "TUNISIA", YES, NO, YES, NO, YES, 7000 }, - {CTRY_TURKEY, ETSI3_WORLD, "TR", "TURKEY", YES, NO, YES, NO, YES, 7000 }, - {CTRY_UKRAINE, NULL1_WORLD, "UA", "UKRAINE", YES, NO, YES, NO, YES, 7000 }, - {CTRY_UAE, NULL1_WORLD, "AE", "UNITED ARAB EMIRATES", YES, NO, YES, NO, YES, 7000 }, - {CTRY_UNITED_KINGDOM, ETSI1_WORLD,"GB", "UNITED KINGDOM", YES, NO, YES, NO, YES, 7000 }, - {CTRY_UNITED_STATES, FCC3_FCCA, "US", "UNITED STATES", YES, YES, YES, YES, YES, 5825 }, - {CTRY_UNITED_STATES_FCC49, FCC4_FCCA, "PS", "UNITED STATES (PUBLIC SAFETY)", YES, YES, YES, YES, YES, 7000 }, - {CTRY_URUGUAY, FCC1_WORLD, "UY", "URUGUAY", YES, NO, YES, NO, YES, 7000 }, - {CTRY_UZBEKISTAN, FCC3_FCCA, "UZ", "UZBEKISTAN", YES, YES, YES, YES, YES, 7000 }, - {CTRY_VENEZUELA, APL2_ETSIC, "VE", "VENEZUELA", YES, NO, YES, NO, YES, 7000 }, - {CTRY_VIET_NAM, NULL1_WORLD, "VN", "VIET NAM", YES, NO, YES, NO, YES, 7000 }, - {CTRY_YEMEN, NULL1_WORLD, "YE", "YEMEN", YES, NO, YES, NO, YES, 7000 }, - {CTRY_ZIMBABWE, NULL1_WORLD, "ZW", "ZIMBABWE", YES, NO, YES, NO, YES, 7000 } + {CTRY_DEBUG, NO_ENUMRD, "DB", "DEBUG", YES, YES, YES, YES, YES, 7000 }, + {CTRY_DEFAULT, DEF_REGDMN, "NA", "NO_COUNTRY_SET", YES, YES, YES, YES, YES, 7000 }, + {CTRY_ALBANIA, NULL1_WORLD, "AL", "ALBANIA", YES, NO, YES, NO, YES, 7000 }, + {CTRY_ALGERIA, NULL1_WORLD, "DZ", "ALGERIA", YES, NO, YES, NO, YES, 7000 }, + {CTRY_ARGENTINA, APL3_WORLD, "AR", "ARGENTINA", YES, NO, NO, NO, NO, 7000 }, + {CTRY_ARMENIA, ETSI4_WORLD, "AM", "ARMENIA", YES, NO, YES, NO, YES, 7000 }, + {CTRY_AUSTRALIA, FCC6_WORLD, "AU", "AUSTRALIA", YES, YES, YES, YES, YES, 7000 }, + {CTRY_AUSTRIA, ETSI2_WORLD, "AT", "AUSTRIA", YES, NO, YES, YES, YES, 7000 }, + {CTRY_AZERBAIJAN, ETSI4_WORLD, "AZ", "AZERBAIJAN", YES, YES, YES, YES, YES, 7000 }, + {CTRY_BAHRAIN, APL6_WORLD, "BH", "BAHRAIN", YES, NO, YES, NO, YES, 7000 }, + {CTRY_BELARUS, ETSI1_WORLD, "BY", "BELARUS", YES, NO, YES, YES, YES, 7000 }, + {CTRY_BELGIUM, ETSI1_WORLD, "BE", "BELGIUM", YES, NO, YES, YES, YES, 7000 }, + {CTRY_BELIZE, APL1_ETSIC, "BZ", "BELIZE", YES, YES, YES, YES, YES, 7000 }, + {CTRY_BOLIVIA, APL1_ETSIC, "BO", "BOLVIA", YES, YES, YES, YES, YES, 7000 }, + {CTRY_BRAZIL, FCC3_WORLD, "BR", "BRAZIL", NO, NO, NO, NO, NO, 7000 }, + {CTRY_BRUNEI_DARUSSALAM, APL1_WORLD, "BN", "BRUNEI DARUSSALAM", YES, YES, YES, YES, YES, 7000 }, + {CTRY_BULGARIA, ETSI6_WORLD, "BG", "BULGARIA", YES, NO, YES, YES, YES, 7000 }, + {CTRY_CANADA, FCC6_FCCA, "CA", "CANADA", YES, YES, YES, YES, YES, 7000 }, + {CTRY_CHILE, APL6_WORLD, "CL", "CHILE", YES, YES, YES, YES, YES, 7000 }, + {CTRY_CHINA, APL1_WORLD, "CN", "CHINA", YES, YES, YES, YES, YES, 7000 }, + {CTRY_COLOMBIA, FCC1_FCCA, "CO", "COLOMBIA", YES, NO, YES, NO, YES, 7000 }, + {CTRY_COSTA_RICA, FCC1_WORLD, "CR", "COSTA RICA", YES, NO, YES, NO, YES, 7000 }, + {CTRY_CROATIA, ETSI3_WORLD, "HR", "CROATIA", YES, NO, YES, NO, YES, 7000 }, + {CTRY_CYPRUS, ETSI3_WORLD, "CY", "CYPRUS", YES, YES, YES, YES, YES, 7000 }, + {CTRY_CZECH, ETSI3_WORLD, "CZ", "CZECH REPUBLIC", YES, NO, YES, YES, YES, 7000 }, + {CTRY_DENMARK, ETSI1_WORLD, "DK", "DENMARK", YES, NO, YES, YES, YES, 7000 }, + {CTRY_DOMINICAN_REPUBLIC, FCC1_FCCA, "DO", "DOMINICAN REPUBLIC", YES, YES, YES, YES, YES, 7000 }, + {CTRY_ECUADOR, FCC1_WORLD, "EC", "ECUADOR", YES, NO, NO, NO, YES, 7000 }, + {CTRY_EGYPT, ETSI3_WORLD, "EG", "EGYPT", YES, NO, YES, NO, YES, 7000 }, + {CTRY_EL_SALVADOR, FCC1_WORLD, "SV", "EL SALVADOR", YES, NO, YES, NO, YES, 7000 }, + {CTRY_ESTONIA, ETSI1_WORLD, "EE", "ESTONIA", YES, NO, YES, YES, YES, 7000 }, + {CTRY_FINLAND, ETSI1_WORLD, "FI", "FINLAND", YES, NO, YES, YES, YES, 7000 }, + {CTRY_FRANCE, ETSI1_WORLD, "FR", "FRANCE", YES, NO, YES, YES, YES, 7000 }, + {CTRY_FRANCE2, ETSI3_WORLD, "F2", "FRANCE_RES", YES, NO, YES, YES, YES, 7000 }, + {CTRY_GEORGIA, ETSI4_WORLD, "GE", "GEORGIA", YES, YES, YES, YES, YES, 7000 }, + {CTRY_GERMANY, ETSI1_WORLD, "DE", "GERMANY", YES, NO, YES, YES, YES, 7000 }, + {CTRY_GREECE, ETSI1_WORLD, "GR", "GREECE", YES, NO, YES, YES, YES, 7000 }, + {CTRY_GUATEMALA, FCC1_FCCA, "GT", "GUATEMALA", YES, YES, YES, YES, YES, 7000 }, + {CTRY_HONDURAS, NULL1_WORLD, "HN", "HONDURAS", YES, NO, YES, NO, YES, 7000 }, + {CTRY_HONG_KONG, FCC2_WORLD, "HK", "HONG KONG", YES, YES, YES, YES, YES, 7000 }, + {CTRY_HUNGARY, ETSI4_WORLD, "HU", "HUNGARY", YES, NO, YES, YES, YES, 7000 }, + {CTRY_ICELAND, ETSI1_WORLD, "IS", "ICELAND", YES, NO, YES, YES, YES, 7000 }, + {CTRY_INDIA, APL6_WORLD, "IN", "INDIA", YES, NO, YES, NO, YES, 7000 }, + {CTRY_INDONESIA, APL1_WORLD, "ID", "INDONESIA", YES, NO, YES, NO, YES, 7000 }, + {CTRY_IRAN, APL1_WORLD, "IR", "IRAN", YES, YES, YES, YES, YES, 7000 }, + {CTRY_IRELAND, ETSI1_WORLD, "IE", "IRELAND", YES, NO, YES, YES, YES, 7000 }, + {CTRY_ISRAEL, ETSI3_WORLD, "IL", "ISRAEL", YES, NO, YES, NO, YES, 7000 }, + {CTRY_ISRAEL2, NULL1_ETSIB, "ISR", "ISRAEL_RES", YES, NO, YES, NO, YES, 7000 }, + {CTRY_ITALY, ETSI1_WORLD, "IT", "ITALY", YES, NO, YES, YES, YES, 7000 }, + {CTRY_JAMAICA, ETSI1_WORLD, "JM", "JAMAICA", YES, NO, YES, YES, YES, 7000 }, + {CTRY_JAPAN, MKK1_MKKA, "JP", "JAPAN", YES, NO, NO, NO, NO, 7000 }, + {CTRY_JAPAN1, MKK1_MKKB, "J1", "JAPAN1", YES, NO, NO, NO, NO, 7000 }, + {CTRY_JAPAN2, MKK1_FCCA, "J2", "JAPAN2", YES, NO, NO, NO, NO, 7000 }, + {CTRY_JAPAN3, MKK2_MKKA, "J3", "JAPAN3", YES, NO, NO, NO, NO, 7000 }, + {CTRY_JAPAN4, MKK1_MKKA1, "J4", "JAPAN4", YES, NO, NO, NO, NO, 7000 }, + {CTRY_JAPAN5, MKK1_MKKA2, "J5", "JAPAN5", YES, NO, NO, NO, NO, 7000 }, + {CTRY_JAPAN6, MKK1_MKKC, "J6", "JAPAN6", YES, NO, NO, NO, NO, 7000 }, + {CTRY_JAPAN7, MKK3_MKKB, "J7", "JAPAN7", YES, NO, NO, NO, NO, 7000 }, + {CTRY_JAPAN8, MKK3_MKKA2, "J8", "JAPAN8", YES, NO, NO, NO, NO, 7000 }, + {CTRY_JAPAN9, MKK3_MKKC, "J9", "JAPAN9", YES, NO, NO, NO, NO, 7000 }, + {CTRY_JAPAN10, MKK4_MKKB, "J10", "JAPAN10", YES, NO, NO, NO, NO, 7000 }, + {CTRY_JAPAN11, MKK4_MKKA2, "J11", "JAPAN11", YES, NO, NO, NO, NO, 7000 }, + {CTRY_JAPAN12, MKK4_MKKC, "J12", "JAPAN12", YES, NO, NO, NO, NO, 7000 }, + {CTRY_JAPAN13, MKK5_MKKB, "J13", "JAPAN13", YES, NO, NO, NO, NO, 7000 }, + {CTRY_JAPAN14, MKK5_MKKA2, "J14", "JAPAN14", YES, NO, NO, NO, NO, 7000 }, + {CTRY_JAPAN15, MKK5_MKKC, "J15", "JAPAN15", YES, NO, NO, NO, NO, 7000 }, + {CTRY_JAPAN16, MKK6_MKKB, "J16", "JAPAN16", YES, NO, NO, NO, NO, 7000 }, + {CTRY_JAPAN17, MKK6_MKKA2, "J17", "JAPAN17", YES, NO, NO, NO, NO, 7000 }, + {CTRY_JAPAN18, MKK6_MKKC, "J18", "JAPAN18", YES, NO, NO, NO, NO, 7000 }, + {CTRY_JAPAN19, MKK7_MKKB, "J19", "JAPAN19", YES, NO, NO, NO, NO, 7000 }, + {CTRY_JAPAN20, MKK7_MKKA, "J20", "JAPAN20", YES, NO, NO, NO, NO, 7000 }, + {CTRY_JAPAN21, MKK7_MKKC, "J21", "JAPAN21", YES, NO, NO, NO, NO, 7000 }, + {CTRY_JAPAN22, MKK8_MKKB, "J22", "JAPAN22", YES, NO, NO, NO, NO, 7000 }, + {CTRY_JAPAN23, MKK8_MKKA2, "J23", "JAPAN23", YES, NO, NO, NO, NO, 7000 }, + {CTRY_JAPAN24, MKK8_MKKC, "J24", "JAPAN24", YES, NO, NO, NO, NO, 7000 }, + {CTRY_JAPAN25, MKK3_MKKA, "J25", "JAPAN25", YES, NO, NO, NO, NO, 7000 }, + {CTRY_JAPAN26, MKK3_MKKA1, "J26", "JAPAN26", YES, NO, NO, NO, NO, 7000 }, + {CTRY_JAPAN27, MKK3_FCCA, "J27", "JAPAN27", YES, NO, NO, NO, NO, 7000 }, + {CTRY_JAPAN28, MKK4_MKKA1, "J28", "JAPAN28", YES, NO, NO, NO, NO, 7000 }, + {CTRY_JAPAN29, MKK4_FCCA, "J29", "JAPAN29", YES, NO, NO, NO, NO, 7000 }, + {CTRY_JAPAN30, MKK6_MKKA1, "J30", "JAPAN30", YES, NO, NO, NO, NO, 7000 }, + {CTRY_JAPAN31, MKK6_FCCA, "J31", "JAPAN31", YES, NO, NO, NO, NO, 7000 }, + {CTRY_JAPAN32, MKK7_MKKA1, "J32", "JAPAN32", YES, NO, NO, NO, NO, 7000 }, + {CTRY_JAPAN33, MKK7_FCCA, "J33", "JAPAN33", YES, NO, NO, NO, NO, 7000 }, + {CTRY_JAPAN34, MKK9_MKKA, "J34", "JAPAN34", YES, NO, NO, NO, NO, 7000 }, + {CTRY_JAPAN35, MKK10_MKKA, "J35", "JAPAN35", YES, NO, NO, NO, NO, 7000 }, + {CTRY_JAPAN36, MKK4_MKKA, "J36", "JAPAN36", YES, NO, NO, NO, NO, 7000 }, + {CTRY_JAPAN37, MKK9_FCCA, "J37", "JAPAN37", YES, NO, NO, NO, NO, 7000 }, + {CTRY_JAPAN38, MKK9_MKKA1, "J38", "JAPAN38", YES, NO, NO, NO, NO, 7000 }, + {CTRY_JAPAN39, MKK9_MKKC, "J39", "JAPAN39", YES, NO, NO, NO, NO, 7000 }, + {CTRY_JAPAN40, MKK10_MKKA2, "J40", "JAPAN40", YES, NO, NO, NO, NO, 7000 }, + {CTRY_JAPAN41, MKK10_FCCA, "J41", "JAPAN41", YES, NO, NO, NO, NO, 7000 }, + {CTRY_JAPAN42, MKK10_MKKA1, "J42", "JAPAN42", YES, NO, NO, NO, NO, 7000 }, + {CTRY_JAPAN43, MKK10_MKKC, "J43", "JAPAN43", YES, NO, NO, NO, NO, 7000 }, + {CTRY_JAPAN44, MKK10_MKKA2, "J44", "JAPAN44", YES, NO, NO, NO, NO, 7000 }, + {CTRY_JAPAN45, MKK11_MKKA, "J45", "JAPAN45", YES, NO, NO, NO, NO, 7000 }, + {CTRY_JAPAN46, MKK11_FCCA, "J46", "JAPAN46", YES, NO, NO, NO, NO, 7000 }, + {CTRY_JAPAN47, MKK11_MKKA1, "J47", "JAPAN47", YES, NO, NO, NO, NO, 7000 }, + {CTRY_JAPAN48, MKK11_MKKC, "J48", "JAPAN48", YES, NO, NO, NO, NO, 7000 }, + {CTRY_JAPAN49, MKK11_MKKA2, "J49", "JAPAN49", YES, NO, NO, NO, NO, 7000 }, + {CTRY_JAPAN50, MKK12_MKKA, "J50", "JAPAN50", YES, NO, NO, NO, NO, 7000 }, + {CTRY_JAPAN51, MKK12_FCCA, "J51", "JAPAN51", YES, NO, NO, NO, NO, 7000 }, + {CTRY_JAPAN52, MKK12_MKKA1, "J52", "JAPAN52", YES, NO, NO, NO, NO, 7000 }, + {CTRY_JAPAN53, MKK12_MKKC, "J53", "JAPAN53", YES, NO, NO, NO, NO, 7000 }, + {CTRY_JAPAN54, MKK12_MKKA2, "J54", "JAPAN54", YES, NO, NO, NO, NO, 7000 }, + {CTRY_JORDAN, ETSI2_WORLD, "JO", "JORDAN", YES, NO, YES, NO, YES, 7000 }, + {CTRY_KAZAKHSTAN, NULL1_WORLD, "KZ", "KAZAKHSTAN", YES, NO, YES, NO, YES, 7000 }, + {CTRY_KOREA_NORTH, APL9_WORLD, "KP", "NORTH KOREA", YES, NO, NO, YES, YES, 7000 }, + {CTRY_KOREA_ROC, APL9_WORLD, "KR", "KOREA REPUBLIC", YES, NO, NO, NO, NO, 7000 }, + {CTRY_KOREA_ROC2, APL2_APLD, "K2", "KOREA REPUBLIC2", YES, NO, NO, NO, NO, 7000 }, + {CTRY_KOREA_ROC3, APL9_WORLD, "K3", "KOREA REPUBLIC3", YES, NO, NO, NO, NO, 7000 }, + {CTRY_KUWAIT, NULL1_WORLD, "KW", "KUWAIT", YES, NO, YES, NO, YES, 7000 }, + {CTRY_LATVIA, ETSI1_WORLD, "LV", "LATVIA", YES, NO, YES, YES, YES, 7000 }, + {CTRY_LEBANON, NULL1_WORLD, "LB", "LEBANON", YES, NO, YES, NO, YES, 7000 }, + {CTRY_LIECHTENSTEIN, ETSI1_WORLD, "LI", "LIECHTENSTEIN", YES, NO, YES, YES, YES, 7000 }, + {CTRY_LITHUANIA, ETSI1_WORLD, "LT", "LITHUANIA", YES, NO, YES, YES, YES, 7000 }, + {CTRY_LUXEMBOURG, ETSI1_WORLD, "LU", "LUXEMBOURG", YES, NO, YES, YES, YES, 7000 }, + {CTRY_MACAU, FCC2_WORLD, "MO", "MACAU", YES, YES, YES, YES, YES, 7000 }, + {CTRY_MACEDONIA, NULL1_WORLD, "MK", "MACEDONIA", YES, NO, YES, NO, YES, 7000 }, + {CTRY_MALAYSIA, APL8_WORLD, "MY", "MALAYSIA", NO, NO, NO, NO, NO, 7000 }, + {CTRY_MALTA, ETSI1_WORLD, "MT", "MALTA", YES, NO, YES, YES, YES, 7000 }, + {CTRY_MEXICO, FCC1_FCCA, "MX", "MEXICO", YES, YES, YES, YES, YES, 7000 }, + {CTRY_MONACO, ETSI4_WORLD, "MC", "MONACO", YES, YES, YES, YES, YES, 7000 }, + {CTRY_MOROCCO, NULL1_WORLD, "MA", "MOROCCO", YES, NO, YES, NO, YES, 7000 }, + {CTRY_NETHERLANDS, ETSI1_WORLD, "NL", "NETHERLANDS", YES, NO, YES, YES, YES, 7000 }, + {CTRY_NETHERLANDS_ANT, ETSI1_WORLD, "AN", "NETHERLANDS-ANTILLES", YES, NO, YES, YES, YES, 7000 }, + {CTRY_NEW_ZEALAND, FCC2_ETSIC, "NZ", "NEW ZEALAND", YES, NO, YES, NO, YES, 7000 }, + {CTRY_NORWAY, ETSI1_WORLD, "NO", "NORWAY", YES, NO, YES, YES, YES, 7000 }, + {CTRY_OMAN, APL6_WORLD, "OM", "OMAN", YES, NO, YES, NO, YES, 7000 }, + {CTRY_PAKISTAN, NULL1_WORLD, "PK", "PAKISTAN", YES, NO, YES, NO, YES, 7000 }, + {CTRY_PANAMA, FCC1_FCCA, "PA", "PANAMA", YES, YES, YES, YES, YES, 7000 }, + {CTRY_PERU, APL1_WORLD, "PE", "PERU", YES, NO, YES, NO, YES, 7000 }, + {CTRY_PHILIPPINES, APL1_WORLD, "PH", "PHILIPPINES", YES, YES, YES, YES, YES, 7000 }, + {CTRY_POLAND, ETSI1_WORLD, "PL", "POLAND", YES, NO, YES, YES, YES, 7000 }, + {CTRY_PORTUGAL, ETSI1_WORLD, "PT", "PORTUGAL", YES, NO, YES, YES, YES, 7000 }, + {CTRY_PUERTO_RICO, FCC1_FCCA, "PR", "PUERTO RICO", YES, YES, YES, YES, YES, 7000 }, + {CTRY_QATAR, NULL1_WORLD, "QA", "QATAR", YES, NO, YES, NO, YES, 7000 }, + {CTRY_ROMANIA, NULL1_WORLD, "RO", "ROMANIA", YES, NO, YES, NO, YES, 7000 }, + {CTRY_RUSSIA, NULL1_WORLD, "RU", "RUSSIA", YES, NO, YES, NO, YES, 7000 }, + {CTRY_SAUDI_ARABIA, NULL1_WORLD, "SA", "SAUDI ARABIA", YES, NO, YES, NO, YES, 7000 }, + {CTRY_SERBIA_MONT, ETSI1_WORLD, "CS", "SERBIA & MONTENEGRO", YES, NO, YES, YES, YES, 7000 }, + {CTRY_SINGAPORE, APL6_WORLD, "SG", "SINGAPORE", YES, YES, YES, YES, YES, 7000 }, + {CTRY_SLOVAKIA, ETSI1_WORLD, "SK", "SLOVAK REPUBLIC", YES, NO, YES, YES, YES, 7000 }, + {CTRY_SLOVENIA, ETSI1_WORLD, "SI", "SLOVENIA", YES, NO, YES, YES, YES, 7000 }, + {CTRY_SOUTH_AFRICA, FCC3_WORLD, "ZA", "SOUTH AFRICA", YES, NO, YES, NO, YES, 7000 }, + {CTRY_SPAIN, ETSI1_WORLD, "ES", "SPAIN", YES, NO, YES, YES, YES, 7000 }, + {CTRY_SRILANKA, FCC3_WORLD, "LK", "SRI LANKA", YES, NO, YES, NO, YES, 7000 }, + {CTRY_SWEDEN, ETSI1_WORLD, "SE", "SWEDEN", YES, NO, YES, YES, YES, 7000 }, + {CTRY_SWITZERLAND, ETSI1_WORLD, "CH", "SWITZERLAND", YES, NO, YES, YES, YES, 7000 }, + {CTRY_SYRIA, NULL1_WORLD, "SY", "SYRIA", YES, NO, YES, NO, YES, 7000 }, + {CTRY_TAIWAN, APL3_FCCA, "TW", "TAIWAN", YES, YES, YES, YES, YES, 7000 }, + {CTRY_THAILAND, NULL1_WORLD, "TH", "THAILAND", YES, NO, YES, NO, YES, 7000 }, + {CTRY_TRINIDAD_Y_TOBAGO, ETSI4_WORLD, "TT", "TRINIDAD & TOBAGO", YES, NO, YES, NO, YES, 7000 }, + {CTRY_TUNISIA, ETSI3_WORLD, "TN", "TUNISIA", YES, NO, YES, NO, YES, 7000 }, + {CTRY_TURKEY, ETSI3_WORLD, "TR", "TURKEY", YES, NO, YES, NO, YES, 7000 }, + {CTRY_UKRAINE, NULL1_WORLD, "UA", "UKRAINE", YES, NO, YES, NO, YES, 7000 }, + {CTRY_UAE, NULL1_WORLD, "AE", "UNITED ARAB EMIRATES", YES, NO, YES, NO, YES, 7000 }, + {CTRY_UNITED_KINGDOM, ETSI1_WORLD, "GB", "UNITED KINGDOM", YES, NO, YES, NO, YES, 7000 }, + {CTRY_UNITED_STATES, FCC3_FCCA, "US", "UNITED STATES", YES, YES, YES, YES, YES, 5825 }, + {CTRY_UNITED_STATES_FCC49, FCC4_FCCA, "PS", "UNITED STATES (PUBLIC SAFETY)", YES, YES, YES, YES, YES, 7000 }, + {CTRY_URUGUAY, FCC1_WORLD, "UY", "URUGUAY", YES, NO, YES, NO, YES, 7000 }, + {CTRY_UZBEKISTAN, FCC3_FCCA, "UZ", "UZBEKISTAN", YES, YES, YES, YES, YES, 7000 }, + {CTRY_VENEZUELA, APL2_ETSIC, "VE", "VENEZUELA", YES, NO, YES, NO, YES, 7000 }, + {CTRY_VIET_NAM, NULL1_WORLD, "VN", "VIET NAM", YES, NO, YES, NO, YES, 7000 }, + {CTRY_YEMEN, NULL1_WORLD, "YE", "YEMEN", YES, NO, YES, NO, YES, 7000 }, + {CTRY_ZIMBABWE, NULL1_WORLD, "ZW", "ZIMBABWE", YES, NO, YES, NO, YES, 7000 } }; typedef struct RegDmnFreqBand { @@ -660,7 +660,7 @@ enum { W1_5745_5825, W1_5500_5700, W2_5260_5320, - W2_5180_5240, + W2_5180_5240, W2_5825_5825, }; @@ -1332,8 +1332,8 @@ static REG_DOMAIN regDomains[] = { BMZERO, BMZERO, BMZERO, - BM(F2_2312_2372,F2_2412_2472, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1), - BM(G2_2312_2372,G2_2412_2472, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1), + BM(F2_2312_2372, F2_2412_2472, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1), + BM(G2_2312_2372, G2_2412_2472, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1), BMZERO, BMZERO, BMZERO}, @@ -1342,9 +1342,9 @@ static REG_DOMAIN regDomains[] = { BMZERO, BMZERO, BMZERO, - BM(F1_2457_2472,-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1), - BM(G1_2457_2472,-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1), - BM(T2_2437_2437,-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1), + BM(F1_2457_2472, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1), + BM(G1_2457_2472, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1), + BM(T2_2437_2437, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1), BMZERO, BMZERO}, @@ -1352,9 +1352,9 @@ static REG_DOMAIN regDomains[] = { BMZERO, BMZERO, BMZERO, - BM(F1_2432_2442,-1,-1,-1,-1,-1,-1,-1, -1, -1, -1, -1), - BM(G1_2432_2442,-1,-1,-1,-1,-1,-1,-1, -1, -1, -1, -1), - BM(T2_2437_2437,-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1), + BM(F1_2432_2442, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1), + BM(G1_2432_2442, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1), + BM(T2_2437_2437, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1), BMZERO, BMZERO}, @@ -1362,9 +1362,9 @@ static REG_DOMAIN regDomains[] = { BMZERO, BMZERO, BMZERO, - BM(F3_2412_2472,-1,-1,-1,-1,-1,-1,-1, -1, -1, -1, -1), - BM(G3_2412_2472,-1,-1,-1,-1,-1,-1,-1, -1, -1, -1, -1), - BM(T2_2437_2437,-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1), + BM(F3_2412_2472, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1), + BM(G3_2412_2472, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1), + BM(T2_2437_2437, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1), BMZERO, BMZERO}, @@ -1372,10 +1372,10 @@ static REG_DOMAIN regDomains[] = { BMZERO, BMZERO, BMZERO, - BM(F1_2412_2462,-1,-1,-1,-1,-1,-1,-1, -1, -1, -1, -1), - BM(G1_2412_2462,-1,-1,-1,-1,-1,-1,-1, -1, -1, -1, -1), - BM(T2_2437_2437,-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1), - BM(NG2_2422_2452,-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1), + BM(F1_2412_2462, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1), + BM(G1_2412_2462, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1), + BM(T2_2437_2437, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1), + BM(NG2_2422_2452, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1), BMZERO}, {MKKA, MKK, NO_DFS, PSCAN_MKKA | PSCAN_MKKA_G | PSCAN_MKKA1 | PSCAN_MKKA1_G | PSCAN_MKKA2 | PSCAN_MKKA2_G, DISALLOW_ADHOC_11A_TURB, @@ -1384,36 +1384,36 @@ static REG_DOMAIN regDomains[] = { BMZERO, BM(F2_2412_2462, F1_2467_2472, F2_2484_2484, -1, -1, -1, -1, -1, -1, -1, -1, -1), BM(G2_2412_2462, G1_2467_2472, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1), - BM(T2_2437_2437,-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1), - BM(NG1_2422_2452,-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1), + BM(T2_2437_2437, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1), + BM(NG1_2422_2452, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1), BMZERO}, {MKKC, MKK, NO_DFS, NO_PSCAN, NO_REQ, BMZERO, BMZERO, BMZERO, - BM(F2_2412_2472,-1,-1,-1,-1,-1,-1,-1, -1, -1, -1, -1), - BM(G2_2412_2472,-1,-1,-1,-1,-1,-1,-1, -1, -1, -1, -1), - BM(T2_2437_2437,-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1), - BM(NG1_2422_2452,-1,-1, -1, -1, -1, -1, -1, -1, -1, -1, -1), + BM(F2_2412_2472, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1), + BM(G2_2412_2472, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1), + BM(T2_2437_2437, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1), + BM(NG1_2422_2452, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1), BMZERO}, {WORLD, ETSI, NO_DFS, NO_PSCAN, NO_REQ, BMZERO, BMZERO, BMZERO, - BM(F2_2412_2472,-1,-1,-1,-1,-1,-1,-1, -1, -1, -1, -1), - BM(G2_2412_2472,-1,-1,-1,-1,-1,-1,-1, -1, -1, -1, -1), - BM(T2_2437_2437,-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1), - BM(NG1_2422_2452,-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1), + BM(F2_2412_2472, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1), + BM(G2_2412_2472, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1), + BM(T2_2437_2437, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1), + BM(NG1_2422_2452, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1), BMZERO}, {WOR0_WORLD, NO_CTL, DFS_FCC3 | DFS_ETSI, PSCAN_WWR, ADHOC_PER_11D, BM(W1_5260_5320, W1_5180_5240, W1_5170_5230, W1_5745_5825, W1_5500_5700, -1, -1, -1, -1, -1, -1, -1), BM(WT1_5210_5250, WT1_5290_5290, WT1_5760_5800, -1, -1, -1, -1, -1, -1, -1, -1, -1), BMZERO, - BM(W1_2412_2412,W1_2437_2442,W1_2462_2462,W1_2472_2472,W1_2417_2432, W1_2447_2457, W1_2467_2467, W1_2484_2484, -1, -1, -1, -1), - BM(WG1_2412_2412,WG1_2437_2442,WG1_2462_2462,WG1_2472_2472,WG1_2417_2432,WG1_2447_2457,WG1_2467_2467, -1, -1, -1, -1, -1), + BM(W1_2412_2412, W1_2437_2442, W1_2462_2462, W1_2472_2472, W1_2417_2432, W1_2447_2457, W1_2467_2467, W1_2484_2484, -1, -1, -1, -1), + BM(WG1_2412_2412, WG1_2437_2442, WG1_2462_2462, WG1_2472_2472, WG1_2417_2432, WG1_2447_2457, WG1_2467_2467, -1, -1, -1, -1, -1), BM(T3_2437_2437, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1), BMZERO, BMZERO}, @@ -1429,21 +1429,21 @@ static REG_DOMAIN regDomains[] = { BMZERO}, {WOR02_WORLD, NO_CTL, DFS_FCC3 | DFS_ETSI, PSCAN_WWR, ADHOC_PER_11D, - BM(W1_5260_5320, W1_5180_5240,W1_5170_5230,W1_5745_5825,W1_5500_5700, -1, -1, -1, -1, -1, -1, -1), + BM(W1_5260_5320, W1_5180_5240, W1_5170_5230, W1_5745_5825, W1_5500_5700, -1, -1, -1, -1, -1, -1, -1), BM(WT1_5210_5250, WT1_5290_5290, WT1_5760_5800, -1, -1, -1, -1, -1, -1, -1, -1, -1), BMZERO, - BM(W1_2412_2412,W1_2437_2442,W1_2462_2462, W1_2472_2472,W1_2417_2432, W1_2447_2457, W1_2467_2467, -1, -1, -1, -1, -1), - BM(WG1_2412_2412,WG1_2437_2442,WG1_2462_2462, WG1_2472_2472,WG1_2417_2432, WG1_2447_2457, WG1_2467_2467, -1, -1, -1, -1, -1), + BM(W1_2412_2412, W1_2437_2442, W1_2462_2462, W1_2472_2472, W1_2417_2432, W1_2447_2457, W1_2467_2467, -1, -1, -1, -1, -1), + BM(WG1_2412_2412, WG1_2437_2442, WG1_2462_2462, WG1_2472_2472, WG1_2417_2432, WG1_2447_2457, WG1_2467_2467, -1, -1, -1, -1, -1), BM(T3_2437_2437, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1), BMZERO, BMZERO}, {EU1_WORLD, NO_CTL, DFS_FCC3 | DFS_ETSI, PSCAN_WWR, ADHOC_PER_11D, - BM(W1_5260_5320, W1_5180_5240,W1_5170_5230,W1_5745_5825,W1_5500_5700, -1, -1, -1, -1, -1, -1, -1), + BM(W1_5260_5320, W1_5180_5240, W1_5170_5230, W1_5745_5825, W1_5500_5700, -1, -1, -1, -1, -1, -1, -1), BM(WT1_5210_5250, WT1_5290_5290, WT1_5760_5800, -1, -1, -1, -1, -1, -1, -1, -1, -1), BMZERO, - BM(W1_2412_2412,W1_2437_2442,W1_2462_2462, W2_2472_2472,W1_2417_2432, W1_2447_2457, W2_2467_2467, -1, -1, -1, -1, -1), - BM(WG1_2412_2412,WG1_2437_2442,WG1_2462_2462, WG2_2472_2472,WG1_2417_2432, WG1_2447_2457, WG2_2467_2467, -1, -1, -1, -1, -1), + BM(W1_2412_2412, W1_2437_2442, W1_2462_2462, W2_2472_2472, W1_2417_2432, W1_2447_2457, W2_2467_2467, -1, -1, -1, -1, -1), + BM(WG1_2412_2412, WG1_2437_2442, WG1_2462_2462, WG2_2472_2472, WG1_2417_2432, WG1_2447_2457, WG2_2467_2467, -1, -1, -1, -1, -1), BM(T3_2437_2437, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1), BMZERO, BMZERO}, @@ -1452,8 +1452,8 @@ static REG_DOMAIN regDomains[] = { BM(W1_5260_5320, W1_5180_5240, W1_5170_5230, W1_5745_5825, W1_5500_5700, -1, -1, -1, -1, -1, -1, -1), BMZERO, BMZERO, - BM(W1_2412_2412,W1_2437_2442,W1_2462_2462,W1_2472_2472,W1_2417_2432, W1_2447_2457, W1_2467_2467, W1_2484_2484, -1, -1, -1, -1), - BM(WG1_2412_2412,WG1_2437_2442,WG1_2462_2462,WG1_2472_2472,WG1_2417_2432,WG1_2447_2457,WG1_2467_2467, -1, -1, -1, -1, -1), + BM(W1_2412_2412, W1_2437_2442, W1_2462_2462, W1_2472_2472, W1_2417_2432, W1_2447_2457, W1_2467_2467, W1_2484_2484, -1, -1, -1, -1), + BM(WG1_2412_2412, WG1_2437_2442, WG1_2462_2462, WG1_2472_2472, WG1_2417_2432, WG1_2447_2457, WG1_2467_2467, -1, -1, -1, -1, -1), BM(T3_2437_2437, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1), BMZERO, BMZERO}, @@ -1462,8 +1462,8 @@ static REG_DOMAIN regDomains[] = { BM(W1_5260_5320, W1_5180_5240, W1_5170_5230, W1_5745_5825, W1_5500_5700, -1, -1, -1, -1, -1, -1, -1), BM(WT1_5210_5250, WT1_5290_5290, WT1_5760_5800, -1, -1, -1, -1, -1, -1, -1, -1, -1), BMZERO, - BM(W1_2412_2412,W1_2437_2442,W1_2462_2462,W1_2472_2472,W1_2417_2432, W1_2447_2457, W1_2467_2467, W1_2484_2484, -1, -1, -1, -1), - BM(WG1_2412_2412,WG1_2437_2442,WG1_2462_2462,WG1_2472_2472,WG1_2417_2432,WG1_2447_2457,WG1_2467_2467, -1, -1, -1, -1, -1), + BM(W1_2412_2412, W1_2437_2442, W1_2462_2462, W1_2472_2472, W1_2417_2432, W1_2447_2457, W1_2467_2467, W1_2484_2484, -1, -1, -1, -1), + BM(WG1_2412_2412, WG1_2437_2442, WG1_2462_2462, WG1_2472_2472, WG1_2417_2432, WG1_2447_2457, WG1_2467_2467, -1, -1, -1, -1, -1), BM(T3_2437_2437, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1), BMZERO, BMZERO}, @@ -1472,8 +1472,8 @@ static REG_DOMAIN regDomains[] = { BM(W1_5260_5320, W1_5180_5240, W1_5170_5230, W1_5745_5825, -1, -1, -1, -1, -1, -1, -1, -1), BM(WT1_5210_5250, WT1_5290_5290, WT1_5760_5800, -1, -1, -1, -1, -1, -1, -1, -1, -1), BMZERO, - BM(W1_2412_2412,W1_2437_2442,W1_2462_2462,W1_2472_2472,W1_2417_2432, W1_2447_2457, W1_2467_2467, -1, -1, -1, -1, -1), - BM(WG1_2412_2412,WG1_2437_2442,WG1_2462_2462,WG1_2472_2472,WG1_2417_2432,WG1_2447_2457,WG1_2467_2467,-1, -1, -1, -1, -1), + BM(W1_2412_2412, W1_2437_2442, W1_2462_2462, W1_2472_2472, W1_2417_2432, W1_2447_2457, W1_2467_2467, -1, -1, -1, -1, -1), + BM(WG1_2412_2412, WG1_2437_2442, WG1_2462_2462, WG1_2472_2472, WG1_2417_2432, WG1_2447_2457, WG1_2467_2467, -1, -1, -1, -1, -1), BM(T3_2437_2437, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1), BMZERO, BMZERO}, @@ -1482,8 +1482,8 @@ static REG_DOMAIN regDomains[] = { BM(W2_5260_5320, W2_5180_5240, F2_5745_5805, W2_5825_5825, -1, -1, -1, -1, -1, -1, -1, -1), BM(WT1_5210_5250, WT1_5290_5290, WT1_5760_5800, -1, -1, -1, -1, -1, -1, -1, -1, -1), BMZERO, - BM(W1_2412_2412,W1_2437_2442,W1_2462_2462, W1_2417_2432,W1_2447_2457,-1, -1, -1, -1, -1, -1, -1), - BM(WG1_2412_2412,WG1_2437_2442,WG1_2462_2462, WG1_2417_2432,WG1_2447_2457,-1, -1, -1, -1, -1, -1, -1), + BM(W1_2412_2412, W1_2437_2442, W1_2462_2462, W1_2417_2432, W1_2447_2457, -1, -1, -1, -1, -1, -1, -1), + BM(WG1_2412_2412, WG1_2437_2442, WG1_2462_2462, WG1_2417_2432, WG1_2447_2457, -1, -1, -1, -1, -1, -1, -1), BM(T3_2437_2437, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1), BMZERO, BMZERO}, @@ -1554,30 +1554,24 @@ static const struct cmode modes[] = { u8_t GetWmRD(u16_t regionCode, u16_t channelFlag, REG_DOMAIN *rd) { s16_t i, found, regDmn; - u64_t flags=NO_REQ; - REG_DMN_PAIR_MAPPING *regPair=NULL; + u64_t flags = NO_REQ; + REG_DMN_PAIR_MAPPING *regPair = NULL; - for (i=0, found=0; (iregDmn2GHz; flags = regPair->flags2GHz; - } - else - { + } else { regDmn = regPair->regDmn5GHz; flags = regPair->flags5GHz; } @@ -1587,19 +1581,16 @@ u8_t GetWmRD(u16_t regionCode, u16_t channelFlag, REG_DOMAIN *rd) * unitary reg domain of the pair */ - for (i=0;ipscan &= regPair->pscanMask; - rd->flags = (u32_t)flags; + rd->flags = (u32_t)flags; return TRUE; } @@ -1610,7 +1601,7 @@ u8_t isChanBitMaskZero(u64_t *bitmask) { u16_t i; - for (i=0; ihpPrivate; + zmw_get_wlan_dev(dev); + hpPriv = wd->hpPrivate; - zmw_declare_for_critical_section(); + zmw_declare_for_critical_section(); - if (!GetWmRD(regionCode, ~ZM_REG_FLAG_CHANNEL_2GHZ, &rd5GHz)) - { - zm_debug_msg1("couldn't find unitary 5GHz reg domain for Region Code ", regionCode); + if (!GetWmRD(regionCode, ~ZM_REG_FLAG_CHANNEL_2GHZ, &rd5GHz)) { + zm_debug_msg1("couldn't find unitary 5GHz reg domain for Region Code ", regionCode); return; } - if (!GetWmRD(regionCode, ZM_REG_FLAG_CHANNEL_2GHZ, &rd2GHz)) - { - zm_debug_msg1("couldn't find unitary 2GHz reg domain for Region Code ", regionCode); + if (!GetWmRD(regionCode, ZM_REG_FLAG_CHANNEL_2GHZ, &rd2GHz)) { + zm_debug_msg1("couldn't find unitary 2GHz reg domain for Region Code ", regionCode); return; } - if (wd->regulationTable.regionCode == regionCode) - { - zm_debug_msg1("current region code is the same with Region Code ", regionCode); - return; - } - else - { - wd->regulationTable.regionCode = regionCode; - } + if (wd->regulationTable.regionCode == regionCode) { + zm_debug_msg1("current region code is the same with Region Code ", regionCode); + return; + } else + wd->regulationTable.regionCode = regionCode; - next = 0; + next = 0; - zmw_enter_critical_section(dev); + zmw_enter_critical_section(dev); - for (cm = modes; cm < &modes[N(modes)]; cm++) - { + for (cm = modes; cm < &modes[N(modes)]; cm++) { u16_t c; - u64_t *channelBM=NULL; - REG_DOMAIN *rd=NULL; - REG_DMN_FREQ_BAND *fband=NULL,*freqs=NULL; + u64_t *channelBM = NULL; + REG_DOMAIN *rd = NULL; + REG_DMN_FREQ_BAND *fband = NULL, *freqs = NULL; - switch (cm->mode) - { + switch (cm->mode) { case HAL_MODE_TURBO: - //we don't have turbo mode so we disable it - //zm_debug_msg0("CWY - HAL_MODE_TURBO"); - channelBM = NULL; - //rd = &rd5GHz; - //channelBM = rd->chan11a_turbo; - //freqs = ®Dmn5GhzTurboFreq[0]; - //ctl = rd->conformanceTestLimit | CTL_TURBO; + /* we don't have turbo mode so we disable it + //zm_debug_msg0("CWY - HAL_MODE_TURBO"); */ + channelBM = NULL; + /* rd = &rd5GHz; + channelBM = rd->chan11a_turbo; + freqs = ®Dmn5GhzTurboFreq[0]; + ctl = rd->conformanceTestLimit | CTL_TURBO; */ break; case HAL_MODE_11A: - if ((hpPriv->OpFlags & 0x1) != 0) - { - rd = &rd5GHz; - channelBM = rd->chan11a; - freqs = ®Dmn5GhzFreq[0]; - c_lo = 4920; //from channel 184 - c_hi = 5825; //to channel 165 - //ctl = rd->conformanceTestLimit; - //zm_debug_msg2("CWY - HAL_MODE_11A, channelBM = 0x", *channelBM); - } - //else - { - //channelBM = NULL; - } + if ((hpPriv->OpFlags & 0x1) != 0) { + rd = &rd5GHz; + channelBM = rd->chan11a; + freqs = ®Dmn5GhzFreq[0]; + c_lo = 4920; /* from channel 184 */ + c_hi = 5825; /* to channel 165 */ + /* ctl = rd->conformanceTestLimit; + zm_debug_msg2("CWY - HAL_MODE_11A, channelBM = 0x", *channelBM); */ + } + /* else + channelBM = NULL; + */ break; case HAL_MODE_11B: - //Disable 11B mode because it only has difference with 11G in PowerDFS Data, - //and we don't use this now. - //zm_debug_msg0("CWY - HAL_MODE_11B"); + /* Disable 11B mode because it only has difference with 11G in PowerDFS Data, + and we don't use this now. + zm_debug_msg0("CWY - HAL_MODE_11B"); */ channelBM = NULL; - //rd = &rd2GHz; - //channelBM = rd->chan11b; - //freqs = ®Dmn2GhzFreq[0]; - //ctl = rd->conformanceTestLimit | CTL_11B; - //zm_debug_msg2("CWY - HAL_MODE_11B, channelBM = 0x", *channelBM); + /* rd = &rd2GHz; + channelBM = rd->chan11b; + freqs = ®Dmn2GhzFreq[0]; + ctl = rd->conformanceTestLimit | CTL_11B; + zm_debug_msg2("CWY - HAL_MODE_11B, channelBM = 0x", *channelBM); */ break; case HAL_MODE_11G: - if ((hpPriv->OpFlags & 0x2) != 0) - { - rd = &rd2GHz; - channelBM = rd->chan11g; - freqs = ®Dmn2Ghz11gFreq[0]; - c_lo = 2412; //from channel 1 - //c_hi = 2462; //to channel 11 - c_hi = 2472; //to channel 13 - //ctl = rd->conformanceTestLimit | CTL_11G; - //zm_debug_msg2("CWY - HAL_MODE_11G, channelBM = 0x", *channelBM); - } - //else - { - //channelBM = NULL; - } + if ((hpPriv->OpFlags & 0x2) != 0) { + rd = &rd2GHz; + channelBM = rd->chan11g; + freqs = ®Dmn2Ghz11gFreq[0]; + c_lo = 2412; /* from channel 1 */ + /* c_hi = 2462; to channel 11 */ + c_hi = 2472; /* to channel 13 */ + /* ctl = rd->conformanceTestLimit | CTL_11G; */ + /* zm_debug_msg2("CWY - HAL_MODE_11G, channelBM = 0x", *channelBM); */ + } + /* else + channelBM = NULL; + */ break; case HAL_MODE_11G_TURBO: - //we don't have turbo mode so we disable it - //zm_debug_msg0("CWY - HAL_MODE_11G_TURBO"); - channelBM = NULL; - //rd = &rd2GHz; - //channelBM = rd->chan11g_turbo; - //freqs = ®Dmn2Ghz11gTurboFreq[0]; - //ctl = rd->conformanceTestLimit | CTL_108G; + /* we don't have turbo mode so we disable it + zm_debug_msg0("CWY - HAL_MODE_11G_TURBO"); */ + channelBM = NULL; + /* rd = &rd2GHz; + channelBM = rd->chan11g_turbo; + freqs = ®Dmn2Ghz11gTurboFreq[0]; + ctl = rd->conformanceTestLimit | CTL_108G; */ break; case HAL_MODE_11A_TURBO: - //we don't have turbo mode so we disable it - //zm_debug_msg0("CWY - HAL_MODE_11A_TURBO"); - channelBM = NULL; - //rd = &rd5GHz; - //channelBM = rd->chan11a_dyn_turbo; - //freqs = ®Dmn5GhzTurboFreq[0]; - //ctl = rd->conformanceTestLimit | CTL_108G; + /* we don't have turbo mode so we disable it + zm_debug_msg0("CWY - HAL_MODE_11A_TURBO"); */ + channelBM = NULL; + /* rd = &rd5GHz; + channelBM = rd->chan11a_dyn_turbo; + freqs = ®Dmn5GhzTurboFreq[0]; + ctl = rd->conformanceTestLimit | CTL_108G; */ break; default: - zm_debug_msg1("Unkonwn HAL mode ", cm->mode); + zm_debug_msg1("Unkonwn HAL mode ", cm->mode); continue; } - if (channelBM == NULL) - { - //zm_debug_msg0("CWY - channelBM is NULL"); + + if (channelBM == NULL) { + /* zm_debug_msg0("CWY - channelBM is NULL"); */ continue; - } - if (isChanBitMaskZero(channelBM)) - { - //zm_debug_msg0("CWY - BitMask is Zero"); - continue; - } - - // RAY:Is it ok?? - if (freqs == NULL ) - { - continue; - } - - for (b=0;b<64*BMLEN; b++) - { - if (IS_BIT_SET(b,channelBM)) - { + } + + if (isChanBitMaskZero(channelBM)) { + /* zm_debug_msg0("CWY - BitMask is Zero"); */ + continue; + } + + /* RAY:Is it ok?? */ + if (freqs == NULL) + continue; + + for (b = 0 ; b < 64*BMLEN ; b++) { + if (IS_BIT_SET(b, channelBM)) { fband = &freqs[b]; - //zm_debug_msg1("CWY - lowChannel = ", fband->lowChannel); - //zm_debug_msg1("CWY - highChannel = ", fband->highChannel); - //zm_debug_msg1("CWY - channelSep = ", fband->channelSep); - for (c=fband->lowChannel; c <= fband->highChannel; - c += fband->channelSep) - { + /* zm_debug_msg1("CWY - lowChannel = ", fband->lowChannel); + zm_debug_msg1("CWY - highChannel = ", fband->highChannel); + zm_debug_msg1("CWY - channelSep = ", fband->channelSep); */ + for (c = fband->lowChannel; c <= fband->highChannel; + c += fband->channelSep) { ZM_HAL_CHANNEL icv; - //Disable all DFS channel - if ((hpPriv->disableDfsCh==0) || (!(fband->useDfs & rd->dfsMask))) - { - if( fband->channelBW < 20 ) - { - /**************************************************************/ - /* */ - /* Temporary discard channel that BW < 20MHz (5 or 10MHz) */ - /* Our architecture does not implemnt it !!! */ - /* */ - /**************************************************************/ - continue; - } - if ((c >= c_lo) && (c <= c_hi)) - { - icv.channel = c; - icv.channelFlags = cm->flags; - icv.maxRegTxPower = fband->powerDfs; - if (fband->usePassScan & rd->pscan) - icv.channelFlags |= ZM_REG_FLAG_CHANNEL_PASSIVE; - else - icv.channelFlags &= ~ZM_REG_FLAG_CHANNEL_PASSIVE; - if (fband->useDfs & rd->dfsMask) - icv.privFlags = ZM_REG_FLAG_CHANNEL_DFS; - else - icv.privFlags = 0; - - /* For now disable radar for FCC3 */ - if (fband->useDfs & rd->dfsMask & DFS_FCC3) - { - icv.privFlags &= ~ZM_REG_FLAG_CHANNEL_DFS; - icv.privFlags |= ZM_REG_FLAG_CHANNEL_DFS_CLEAR; - } - - if(rd->flags & LIMIT_FRAME_4MS) - icv.privFlags |= ZM_REG_FLAG_CHANNEL_DFS_CLEAR; - - icv.minTxPower = 0; - icv.maxTxPower = 0; - - zm_assert(next < 60); - - wd->regulationTable.allowChannel[next++] = icv; - } + /* Disable all DFS channel */ + if ((hpPriv->disableDfsCh == 0) || (!(fband->useDfs & rd->dfsMask))) { + if (fband->channelBW < 20) { + /**************************************************************/ + /* */ + /* Temporary discard channel that BW < 20MHz (5 or 10MHz) */ + /* Our architecture does not implemnt it !!! */ + /* */ + /**************************************************************/ + continue; + } + if ((c >= c_lo) && (c <= c_hi)) { + icv.channel = c; + icv.channelFlags = cm->flags; + icv.maxRegTxPower = fband->powerDfs; + if (fband->usePassScan & rd->pscan) + icv.channelFlags |= ZM_REG_FLAG_CHANNEL_PASSIVE; + else + icv.channelFlags &= ~ZM_REG_FLAG_CHANNEL_PASSIVE; + if (fband->useDfs & rd->dfsMask) + icv.privFlags = ZM_REG_FLAG_CHANNEL_DFS; + else + icv.privFlags = 0; + + /* For now disable radar for FCC3 */ + if (fband->useDfs & rd->dfsMask & DFS_FCC3) { + icv.privFlags &= ~ZM_REG_FLAG_CHANNEL_DFS; + icv.privFlags |= ZM_REG_FLAG_CHANNEL_DFS_CLEAR; + } + + if (rd->flags & LIMIT_FRAME_4MS) + icv.privFlags |= ZM_REG_FLAG_CHANNEL_DFS_CLEAR; + + icv.minTxPower = 0; + icv.maxTxPower = 0; + + zm_assert(next < 60); + + wd->regulationTable.allowChannel[next++] = icv; + } + } } } } } - } wd->regulationTable.allowChannelCnt = next; - #if 0 - { - /* debug print */ - u32_t i; - DbgPrint("\n-------------------------------------------\n"); - DbgPrint("zfHpGetRegulationTable print all channel info regincode = 0x%x\n", wd->regulationTable.regionCode); - DbgPrint("index channel channelFlags maxRegTxPower privFlags useDFS\n"); - - for (i=0; iregulationTable.allowChannelCnt; i++) - { - DbgPrint("%02d %d %04x %02d %x %x\n", - i, - wd->regulationTable.allowChannel[i].channel, - wd->regulationTable.allowChannel[i].channelFlags, - wd->regulationTable.allowChannel[i].maxRegTxPower, - wd->regulationTable.allowChannel[i].privFlags, - wd->regulationTable.allowChannel[i].privFlags & ZM_REG_FLAG_CHANNEL_DFS); - } - } - #endif - - zmw_leave_critical_section(dev); + #if 0 + { + /* debug print */ + u32_t i; + DbgPrint("\n-------------------------------------------\n"); + DbgPrint("zfHpGetRegulationTable print all channel info regincode = 0x%x\n", wd->regulationTable.regionCode); + DbgPrint("index channel channelFlags maxRegTxPower privFlags useDFS\n"); + + for (i = 0 ; i < wd->regulationTable.allowChannelCnt ; i++) { + DbgPrint("%02d %d %04x %02d %x %x\n", i, + wd->regulationTable.allowChannel[i].channel, + wd->regulationTable.allowChannel[i].channelFlags, + wd->regulationTable.allowChannel[i].maxRegTxPower, + wd->regulationTable.allowChannel[i].privFlags, + wd->regulationTable.allowChannel[i].privFlags & ZM_REG_FLAG_CHANNEL_DFS); + } + } + #endif + + zmw_leave_critical_section(dev); } -void zfHpGetRegulationTablefromRegionCode(zdev_t* dev, u16_t regionCode) +void zfHpGetRegulationTablefromRegionCode(zdev_t *dev, u16_t regionCode) { - u16_t c_lo = 2000, c_hi = 6000; //default channel is all enable - u8_t isoName[3] = {'N', 'A', 0}; + u16_t c_lo = 2000, c_hi = 6000; /* default channel is all enable */ + u8_t isoName[3] = {'N', 'A', 0}; - zfCoreSetIsoName(dev, isoName); + zfCoreSetIsoName(dev, isoName); - zfHpGetRegulationTable(dev, regionCode, c_lo, c_hi); + zfHpGetRegulationTable(dev, regionCode, c_lo, c_hi); } -void zfHpGetRegulationTablefromCountry(zdev_t* dev, u16_t CountryCode) +void zfHpGetRegulationTablefromCountry(zdev_t *dev, u16_t CountryCode) { - u16_t i; - u16_t c_lo = 2000, c_hi = 6000; //default channel is all enable - u16_t RegDomain; - - zmw_get_wlan_dev(dev); + u16_t i; + u16_t c_lo = 2000, c_hi = 6000; /* default channel is all enable */ + u16_t RegDomain; - zmw_declare_for_critical_section(); + zmw_get_wlan_dev(dev); - for (i = 0; i < N(allCountries); i++) - { - if (CountryCode == allCountries[i].countryCode) - { - RegDomain = allCountries[i].regDmnEnum; + zmw_declare_for_critical_section(); - // read the ACU country code from EEPROM - zfCoreSetIsoName(dev, (u8_t*)allCountries[i].isoName); + for (i = 0; i < N(allCountries); i++) { + if (CountryCode == allCountries[i].countryCode) { + RegDomain = allCountries[i].regDmnEnum; - //zm_debug_msg_s("CWY - Country Name = ", allCountries[i].name); + /* read the ACU country code from EEPROM */ + zfCoreSetIsoName(dev, (u8_t *)allCountries[i].isoName); - if (wd->regulationTable.regionCode != RegDomain) - { - //zm_debug_msg0("CWY - Change regulatory table"); + /* zm_debug_msg_s("CWY - Country Name = ", allCountries[i].name); */ - zfHpGetRegulationTable(dev, RegDomain, c_lo, c_hi); - } - return; - } - } - zm_debug_msg1("Invalid CountryCode = ", CountryCode); + if (wd->regulationTable.regionCode != RegDomain) { + /* zm_debug_msg0("CWY - Change regulatory table"); */ + zfHpGetRegulationTable(dev, RegDomain, c_lo, c_hi); + } + return; + } + } + zm_debug_msg1("Invalid CountryCode = ", CountryCode); } -u8_t zfHpGetRegulationTablefromISO(zdev_t* dev, u8_t *countryInfo, u8_t length) +u8_t zfHpGetRegulationTablefromISO(zdev_t *dev, u8_t *countryInfo, u8_t length) { - u16_t i; - u16_t RegDomain; - u16_t c_lo = 2000, c_hi = 6000; //default channel is all enable - //u8_t strLen = 2; - - zmw_get_wlan_dev(dev); - - zmw_declare_for_critical_section(); - - if (countryInfo[4] != 0x20) - { // with (I)ndoor/(O)utdoor info - //strLen = 3; - } - //zm_debug_msg_s("Desired iso name = ", isoName); - for (i = 0; i < N(allCountries); i++) - { - //zm_debug_msg_s("Current iso name = ", allCountries[i].isoName); - if (zfMemoryIsEqual((u8_t *)allCountries[i].isoName, (u8_t *)&countryInfo[2], length-1)) - { - //DbgPrint("Set current iso name = %s\n", allCountries[i].isoName); - //zm_debug_msg0("iso name hit!!"); - - RegDomain = allCountries[i].regDmnEnum; - - if (wd->regulationTable.regionCode != RegDomain) - { - zfHpGetRegulationTable(dev, RegDomain, c_lo, c_hi); - } - - //while (index < (countryInfo[1]+2)) - //{ - // if (countryInfo[index] <= 14) - // { - // /* calculate 2.4GHz low boundary channel frequency */ - // ch = countryInfo[index]; - // if ( ch == 14 ) - // c_lo = ZM_CH_G_14; - // else - // c_lo = ZM_CH_G_1 + (ch - 1) * 5; - // /* calculate 2.4GHz high boundary channel frequency */ - // ch = countryInfo[index] + countryInfo[index + 1] - 1; - // if ( ch == 14 ) - // c_hi = ZM_CH_G_14; - // else - // c_hi = ZM_CH_G_1 + (ch - 1) * 5; - // } - // else - // { - // /* calculate 5GHz low boundary channel frequency */ - // ch = countryInfo[index]; - // if ( (ch >= 184)&&(ch <= 196) ) - // c_lo = 4000 + ch*5; - // else - // c_lo = 5000 + ch*5; - // /* calculate 5GHz high boundary channel frequency */ - // ch = countryInfo[index] + countryInfo[index + 1] - 1; - // if ( (ch >= 184)&&(ch <= 196) ) - // c_hi = 4000 + ch*5; - // else - // c_hi = 5000 + ch*5; - // } - // - // zfHpGetRegulationTable(dev, RegDomain, c_lo, c_hi); - // - // index+=3; - //} - - return 0; - } - } - //zm_debug_msg_s("Invalid iso name = ", &countryInfo[2]); - return 1; + u16_t i; + u16_t RegDomain; + u16_t c_lo = 2000, c_hi = 6000; /* default channel is all enable */ + /* u8_t strLen = 2; */ + + zmw_get_wlan_dev(dev); + + zmw_declare_for_critical_section(); + + if (countryInfo[4] != 0x20) { + /* with (I)ndoor/(O)utdoor info + strLen = 3; */ + } + /* zm_debug_msg_s("Desired iso name = ", isoName); */ + for (i = 0; i < N(allCountries); i++) { + /* zm_debug_msg_s("Current iso name = ", allCountries[i].isoName); */ + if (zfMemoryIsEqual((u8_t *)allCountries[i].isoName, (u8_t *)&countryInfo[2], length-1)) { + /* DbgPrint("Set current iso name = %s\n", allCountries[i].isoName); */ + /* zm_debug_msg0("iso name hit!!"); */ + + RegDomain = allCountries[i].regDmnEnum; + + if (wd->regulationTable.regionCode != RegDomain) + zfHpGetRegulationTable(dev, RegDomain, c_lo, c_hi); + /* + while (index < (countryInfo[1]+2)) { + if (countryInfo[index] <= 14) { + // calculate 2.4GHz low boundary channel frequency + ch = countryInfo[index]; + if ( ch == 14 ) + c_lo = ZM_CH_G_14; + else + c_lo = ZM_CH_G_1 + (ch - 1) * 5; + // calculate 2.4GHz high boundary channel frequency + ch = countryInfo[index] + countryInfo[index + 1] - 1; + if ( ch == 14 ) + c_hi = ZM_CH_G_14; + else + c_hi = ZM_CH_G_1 + (ch - 1) * 5; + } else { + // calculate 5GHz low boundary channel frequency + ch = countryInfo[index]; + if ( (ch >= 184)&&(ch <= 196) ) + c_lo = 4000 + ch*5; + else + c_lo = 5000 + ch*5; + // calculate 5GHz high boundary channel frequency + ch = countryInfo[index] + countryInfo[index + 1] - 1; + if ( (ch >= 184)&&(ch <= 196) ) + c_hi = 4000 + ch*5; + else + c_hi = 5000 + ch*5; + } + + zfHpGetRegulationTable(dev, RegDomain, c_lo, c_hi); + + index+=3; + } + */ + return 0; + } + } + /* zm_debug_msg_s("Invalid iso name = ", &countryInfo[2]); */ + return 1; } -const char* zfHpGetisoNamefromregionCode(zdev_t* dev, u16_t regionCode) +const char *zfHpGetisoNamefromregionCode(zdev_t *dev, u16_t regionCode) { - u16_t i; - - for (i = 0; i < N(allCountries); i++) - { - if (allCountries[i].regDmnEnum == regionCode) - { - return allCountries[i].isoName; - } - } - /* no matching item, return default */ - return allCountries[0].isoName; + u16_t i; + + for (i = 0; i < N(allCountries); i++) { + if (allCountries[i].regDmnEnum == regionCode) + return allCountries[i].isoName; + } + /* no matching item, return default */ + return allCountries[0].isoName; } -u16_t zfHpGetRegionCodeFromIsoName(zdev_t* dev, u8_t *countryIsoName) +u16_t zfHpGetRegionCodeFromIsoName(zdev_t *dev, u8_t *countryIsoName) { - u16_t i; - u16_t regionCode; - - /* if no matching item, return default */ - regionCode = DEF_REGDMN; - - for (i = 0; i < N(allCountries); i++) - { - if (zfMemoryIsEqual((u8_t *)allCountries[i].isoName, countryIsoName, 2)) - { - regionCode = allCountries[i].regDmnEnum; - break; - } - } - - return regionCode; + u16_t i; + u16_t regionCode; + + /* if no matching item, return default */ + regionCode = DEF_REGDMN; + + for (i = 0; i < N(allCountries); i++) { + if (zfMemoryIsEqual((u8_t *)allCountries[i].isoName, countryIsoName, 2)) { + regionCode = allCountries[i].regDmnEnum; + break; + } + } + + return regionCode; } /************************************************************************/ @@ -2029,323 +1980,294 @@ u16_t zfHpGetRegionCodeFromIsoName(zdev_t* dev, u8_t *countryIsoName) /* Chao-Wen Yang ZyDAS Technology Corporation 2007.3 */ /* */ /************************************************************************/ -u16_t zfHpDeleteAllowChannel(zdev_t* dev, u16_t freq) +u16_t zfHpDeleteAllowChannel(zdev_t *dev, u16_t freq) { - u16_t i, bandIndex = 0; - u16_t dfs5GBand[][2] = {{5150, 5240}, {5260, 5350}, {5450, 5700}, {5725, 5825}}; - - zmw_get_wlan_dev(dev); - /* Find which band does this frequency belong */ - for (i = 0; i < 4; i++) - { - if ((freq >= dfs5GBand[i][0]) && (freq <= dfs5GBand[i][1])) - bandIndex = i + 1; - } - - if (bandIndex == 0) - { - /* 2.4G, don't care */ - return 0; - } - else - { - bandIndex--; - } - /* Set all channels in this band to passive scan */ - for (i = 0; i < wd->regulationTable.allowChannelCnt; i++) - { - if ((wd->regulationTable.allowChannel[i].channel >= dfs5GBand[bandIndex][0]) && - (wd->regulationTable.allowChannel[i].channel <= dfs5GBand[bandIndex][1])) - { - /* if channel is not passive, set it to be passive and mark it */ - if ((wd->regulationTable.allowChannel[i].channelFlags & - ZM_REG_FLAG_CHANNEL_PASSIVE) == 0) - { - wd->regulationTable.allowChannel[i].channelFlags |= - (ZM_REG_FLAG_CHANNEL_PASSIVE | ZM_REG_FLAG_CHANNEL_CSA); - } - } - } - - return 0; + u16_t i, bandIndex = 0; + u16_t dfs5GBand[][2] = { {5150, 5240}, {5260, 5350}, {5450, 5700}, {5725, 5825} }; + + zmw_get_wlan_dev(dev); + /* Find which band does this frequency belong */ + for (i = 0; i < 4; i++) { + if ((freq >= dfs5GBand[i][0]) && (freq <= dfs5GBand[i][1])) + bandIndex = i + 1; + } + + if (bandIndex == 0) { + /* 2.4G, don't care */ + return 0; + } else + bandIndex--; + /* Set all channels in this band to passive scan */ + for (i = 0; i < wd->regulationTable.allowChannelCnt; i++) { + if ((wd->regulationTable.allowChannel[i].channel >= dfs5GBand[bandIndex][0]) && + (wd->regulationTable.allowChannel[i].channel <= dfs5GBand[bandIndex][1])) { + /* if channel is not passive, set it to be passive and mark it */ + if ((wd->regulationTable.allowChannel[i].channelFlags & + ZM_REG_FLAG_CHANNEL_PASSIVE) == 0) { + wd->regulationTable.allowChannel[i].channelFlags |= + (ZM_REG_FLAG_CHANNEL_PASSIVE | ZM_REG_FLAG_CHANNEL_CSA); + } + } + } + + return 0; } -u16_t zfHpAddAllowChannel(zdev_t* dev, u16_t freq) +u16_t zfHpAddAllowChannel(zdev_t *dev, u16_t freq) { - u16_t i, j, arrayIndex; + u16_t i, j, arrayIndex; - zmw_get_wlan_dev(dev); + zmw_get_wlan_dev(dev); - for (i = 0; i < wd->regulationTable.allowChannelCnt; i++) - { - if (wd->regulationTable.allowChannel[i].channel == freq) - break; - } + for (i = 0; i < wd->regulationTable.allowChannelCnt; i++) { + if (wd->regulationTable.allowChannel[i].channel == freq) + break; + } - if ( i == wd->regulationTable.allowChannelCnt) - { - for (j = 0; j < wd->regulationTable.allowChannelCnt; j++) - { - if (wd->regulationTable.allowChannel[j].channel > freq) - break; - } + if (i == wd->regulationTable.allowChannelCnt) { + for (j = 0; j < wd->regulationTable.allowChannelCnt; j++) { + if (wd->regulationTable.allowChannel[j].channel > freq) + break; + } - //zm_debug_msg1("CWY - add frequency = ", freq); - //zm_debug_msg1("CWY - channel array index = ", j); + /* zm_debug_msg1("CWY - add frequency = ", freq); + zm_debug_msg1("CWY - channel array index = ", j); */ - arrayIndex = j; + arrayIndex = j; - if (arrayIndex < wd->regulationTable.allowChannelCnt) - { - for (j = wd->regulationTable.allowChannelCnt; j > arrayIndex; j--) - wd->regulationTable.allowChannel[j] = wd->regulationTable.allowChannel[j - 1]; - } - wd->regulationTable.allowChannel[arrayIndex].channel = freq; + if (arrayIndex < wd->regulationTable.allowChannelCnt) { + for (j = wd->regulationTable.allowChannelCnt; j > arrayIndex; j--) + wd->regulationTable.allowChannel[j] = wd->regulationTable.allowChannel[j - 1]; + } + wd->regulationTable.allowChannel[arrayIndex].channel = freq; - wd->regulationTable.allowChannelCnt++; - } + wd->regulationTable.allowChannelCnt++; + } - return 0; + return 0; } -u16_t zfHpIsDfsChannelNCS(zdev_t* dev, u16_t freq) +u16_t zfHpIsDfsChannelNCS(zdev_t *dev, u16_t freq) { - u8_t flag = ZM_REG_FLAG_CHANNEL_DFS; - u16_t i; - zmw_get_wlan_dev(dev); - - for (i = 0; i < wd->regulationTable.allowChannelCnt; i++) - { - //DbgPrint("DFS:freq=%d, chan=%d", freq, wd->regulationTable.allowChannel[i].channel); - if (wd->regulationTable.allowChannel[i].channel == freq) - { - flag = wd->regulationTable.allowChannel[i].privFlags; - break; - } - } - - return (flag & (ZM_REG_FLAG_CHANNEL_DFS|ZM_REG_FLAG_CHANNEL_DFS_CLEAR)); + u8_t flag = ZM_REG_FLAG_CHANNEL_DFS; + u16_t i; + zmw_get_wlan_dev(dev); + + for (i = 0; i < wd->regulationTable.allowChannelCnt; i++) { + /* DbgPrint("DFS:freq=%d, chan=%d", freq, wd->regulationTable.allowChannel[i].channel); */ + if (wd->regulationTable.allowChannel[i].channel == freq) { + flag = wd->regulationTable.allowChannel[i].privFlags; + break; } + } + + return flag & (ZM_REG_FLAG_CHANNEL_DFS|ZM_REG_FLAG_CHANNEL_DFS_CLEAR); } -u16_t zfHpIsDfsChannel(zdev_t* dev, u16_t freq) +u16_t zfHpIsDfsChannel(zdev_t *dev, u16_t freq) { - u8_t flag = ZM_REG_FLAG_CHANNEL_DFS; - u16_t i; - zmw_get_wlan_dev(dev); + u8_t flag = ZM_REG_FLAG_CHANNEL_DFS; + u16_t i; + zmw_get_wlan_dev(dev); - zmw_declare_for_critical_section(); + zmw_declare_for_critical_section(); - zmw_enter_critical_section(dev); + zmw_enter_critical_section(dev); - for (i = 0; i < wd->regulationTable.allowChannelCnt; i++) - { - //DbgPrint("DFS:freq=%d, chan=%d", freq, wd->regulationTable.allowChannel[i].channel); - if (wd->regulationTable.allowChannel[i].channel == freq) - { - flag = wd->regulationTable.allowChannel[i].privFlags; - break; - } - } + for (i = 0; i < wd->regulationTable.allowChannelCnt; i++) { + /* DbgPrint("DFS:freq=%d, chan=%d", freq, wd->regulationTable.allowChannel[i].channel); */ + if (wd->regulationTable.allowChannel[i].channel == freq) { + flag = wd->regulationTable.allowChannel[i].privFlags; + break; + } + } - zmw_leave_critical_section(dev); + zmw_leave_critical_section(dev); - return (flag & (ZM_REG_FLAG_CHANNEL_DFS|ZM_REG_FLAG_CHANNEL_DFS_CLEAR)); + return flag & (ZM_REG_FLAG_CHANNEL_DFS|ZM_REG_FLAG_CHANNEL_DFS_CLEAR); } -u16_t zfHpIsAllowedChannel(zdev_t* dev, u16_t freq) +u16_t zfHpIsAllowedChannel(zdev_t *dev, u16_t freq) { - u16_t i; - zmw_get_wlan_dev(dev); - - for (i = 0; i < wd->regulationTable.allowChannelCnt; i++) - { - if (wd->regulationTable.allowChannel[i].channel == freq) - { - return 1; - } - } - - return 0; + u16_t i; + zmw_get_wlan_dev(dev); + + for (i = 0; i < wd->regulationTable.allowChannelCnt; i++) { + if (wd->regulationTable.allowChannel[i].channel == freq) + return 1; + } + + return 0; } -u16_t zfHpFindFirstNonDfsChannel(zdev_t* dev, u16_t aBand) +u16_t zfHpFindFirstNonDfsChannel(zdev_t *dev, u16_t aBand) { - u16_t chan = 2412; - u16_t i; - zmw_get_wlan_dev(dev); - - zmw_declare_for_critical_section(); - - zmw_enter_critical_section(dev); - - for (i = 0; i < wd->regulationTable.allowChannelCnt; i++) - { - if ((wd->regulationTable.allowChannel[i].privFlags & ZM_REG_FLAG_CHANNEL_DFS) != 0) - { - if (aBand) - { - if (wd->regulationTable.allowChannel[i].channel > 3000) - { - chan = wd->regulationTable.allowChannel[i].channel; - break; - } - } - else - { - if (wd->regulationTable.allowChannel[i].channel < 3000) - { - chan = wd->regulationTable.allowChannel[i].channel; - break; - } - } - } - } - - zmw_leave_critical_section(dev); - - return chan; + u16_t chan = 2412; + u16_t i; + zmw_get_wlan_dev(dev); + + zmw_declare_for_critical_section(); + + zmw_enter_critical_section(dev); + + for (i = 0; i < wd->regulationTable.allowChannelCnt; i++) { + if ((wd->regulationTable.allowChannel[i].privFlags & ZM_REG_FLAG_CHANNEL_DFS) != 0) { + if (aBand) { + if (wd->regulationTable.allowChannel[i].channel > 3000) { + chan = wd->regulationTable.allowChannel[i].channel; + break; + } + } else { + if (wd->regulationTable.allowChannel[i].channel < 3000) { + chan = wd->regulationTable.allowChannel[i].channel; + break; + } + } + } + } + + zmw_leave_critical_section(dev); + + return chan; } /* porting from ACU */ /* save RegulatoryDomain in hpriv */ -u8_t zfHpGetRegulatoryDomain(zdev_t* dev) +u8_t zfHpGetRegulatoryDomain(zdev_t *dev) { - zmw_get_wlan_dev(dev); - - switch (wd->regulationTable.regionCode) - { - case NO_ENUMRD: - return 0; - break; - case FCC1_FCCA: - case FCC1_WORLD: - case FCC4_FCCA: - case FCC5_FCCA: - case FCC2_WORLD: - case FCC2_ETSIC: - case FCC3_FCCA: - case FCC3_WORLD: - case FCC1: - case FCC2: - case FCC3: - case FCC4: - case FCC5: - case FCCA: - return 0x10;//WG_AMERICAS DOT11_REG_DOMAIN_FCC United States - break; - - case FCC2_FCCA: - return 0x20;//DOT11_REG_DOMAIN_DOC Canada - break; - - case ETSI1_WORLD: - case ETSI3_ETSIA: - case ETSI2_WORLD: - case ETSI3_WORLD: - case ETSI4_WORLD: - case ETSI4_ETSIC: - case ETSI5_WORLD: - case ETSI6_WORLD: - case ETSI_RESERVED: - case ETSI1: - case ETSI2: - case ETSI3: - case ETSI4: - case ETSI5: - case ETSI6: - case ETSIA: - case ETSIB: - case ETSIC: - return 0x30;//WG_EMEA DOT11_REG_DOMAIN_ETSI Most of Europe - break; - - case MKK1_MKKA: - case MKK1_MKKB: - case MKK2_MKKA: - case MKK1_FCCA: - case MKK1_MKKA1: - case MKK1_MKKA2: - case MKK1_MKKC: - case MKK3_MKKB: - case MKK3_MKKA2: - case MKK3_MKKC: - case MKK4_MKKB: - case MKK4_MKKA2: - case MKK4_MKKC: - case MKK5_MKKB: - case MKK5_MKKA2: - case MKK5_MKKC: - case MKK6_MKKB: - case MKK6_MKKA2: - case MKK6_MKKC: - case MKK7_MKKB: - case MKK7_MKKA: - case MKK7_MKKC: - case MKK8_MKKB: - case MKK8_MKKA2: - case MKK8_MKKC: - case MKK6_MKKA1: - case MKK6_FCCA: - case MKK7_MKKA1: - case MKK7_FCCA: - case MKK9_FCCA: - case MKK9_MKKA1: - case MKK9_MKKC: - case MKK9_MKKA2: - case MKK10_FCCA: - case MKK10_MKKA1: - case MKK10_MKKC: - case MKK10_MKKA2: - case MKK11_MKKA: - case MKK11_FCCA: - case MKK11_MKKA1: - case MKK11_MKKC: - case MKK11_MKKA2: - case MKK12_MKKA: - case MKK12_FCCA: - case MKK12_MKKA1: - case MKK12_MKKC: - case MKK12_MKKA2: - case MKK3_MKKA: - case MKK3_MKKA1: - case MKK3_FCCA: - case MKK4_MKKA: - case MKK4_MKKA1: - case MKK4_FCCA: - case MKK9_MKKA: - case MKK10_MKKA: - case MKK1: - case MKK2: - case MKK3: - case MKK4: - case MKK5: - case MKK6: - case MKK7: - case MKK8: - case MKK9: - case MKK10: - case MKK11: - case MKK12: - case MKKA: - case MKKC: - return 0x40;//WG_JAPAN DOT11_REG_DOMAIN_MKK Japan - break; - - default: - break; - } - return 0xFF;// Didn't input RegDmn by mean to distinguish by customer + zmw_get_wlan_dev(dev); + + switch (wd->regulationTable.regionCode) { + case NO_ENUMRD: + return 0; + break; + case FCC1_FCCA: + case FCC1_WORLD: + case FCC4_FCCA: + case FCC5_FCCA: + case FCC2_WORLD: + case FCC2_ETSIC: + case FCC3_FCCA: + case FCC3_WORLD: + case FCC1: + case FCC2: + case FCC3: + case FCC4: + case FCC5: + case FCCA: + return 0x10;/* WG_AMERICAS DOT11_REG_DOMAIN_FCC United States */ + break; + + case FCC2_FCCA: + return 0x20;/* DOT11_REG_DOMAIN_DOC Canada */ + break; + + case ETSI1_WORLD: + case ETSI3_ETSIA: + case ETSI2_WORLD: + case ETSI3_WORLD: + case ETSI4_WORLD: + case ETSI4_ETSIC: + case ETSI5_WORLD: + case ETSI6_WORLD: + case ETSI_RESERVED: + case ETSI1: + case ETSI2: + case ETSI3: + case ETSI4: + case ETSI5: + case ETSI6: + case ETSIA: + case ETSIB: + case ETSIC: + return 0x30;/* WG_EMEA DOT11_REG_DOMAIN_ETSI Most of Europe */ + break; + + case MKK1_MKKA: + case MKK1_MKKB: + case MKK2_MKKA: + case MKK1_FCCA: + case MKK1_MKKA1: + case MKK1_MKKA2: + case MKK1_MKKC: + case MKK3_MKKB: + case MKK3_MKKA2: + case MKK3_MKKC: + case MKK4_MKKB: + case MKK4_MKKA2: + case MKK4_MKKC: + case MKK5_MKKB: + case MKK5_MKKA2: + case MKK5_MKKC: + case MKK6_MKKB: + case MKK6_MKKA2: + case MKK6_MKKC: + case MKK7_MKKB: + case MKK7_MKKA: + case MKK7_MKKC: + case MKK8_MKKB: + case MKK8_MKKA2: + case MKK8_MKKC: + case MKK6_MKKA1: + case MKK6_FCCA: + case MKK7_MKKA1: + case MKK7_FCCA: + case MKK9_FCCA: + case MKK9_MKKA1: + case MKK9_MKKC: + case MKK9_MKKA2: + case MKK10_FCCA: + case MKK10_MKKA1: + case MKK10_MKKC: + case MKK10_MKKA2: + case MKK11_MKKA: + case MKK11_FCCA: + case MKK11_MKKA1: + case MKK11_MKKC: + case MKK11_MKKA2: + case MKK12_MKKA: + case MKK12_FCCA: + case MKK12_MKKA1: + case MKK12_MKKC: + case MKK12_MKKA2: + case MKK3_MKKA: + case MKK3_MKKA1: + case MKK3_FCCA: + case MKK4_MKKA: + case MKK4_MKKA1: + case MKK4_FCCA: + case MKK9_MKKA: + case MKK10_MKKA: + case MKK1: + case MKK2: + case MKK3: + case MKK4: + case MKK5: + case MKK6: + case MKK7: + case MKK8: + case MKK9: + case MKK10: + case MKK11: + case MKK12: + case MKKA: + case MKKC: + return 0x40;/* WG_JAPAN DOT11_REG_DOMAIN_MKK Japan */ + break; + + default: + break; + } + return 0xFF; /* Didn't input RegDmn by mean to distinguish by customer */ } - -void zfHpDisableDfsChannel(zdev_t* dev, u8_t disableFlag) +void zfHpDisableDfsChannel(zdev_t *dev, u8_t disableFlag) { - struct zsHpPriv* hpPriv; + struct zsHpPriv *hpPriv; - zmw_get_wlan_dev(dev); - hpPriv=wd->hpPrivate; - hpPriv->disableDfsCh = disableFlag; - return; + zmw_get_wlan_dev(dev); + hpPriv = wd->hpPrivate; + hpPriv->disableDfsCh = disableFlag; + return; } -- 2.20.1