aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/event_analyzing_sample.py
diff options
context:
space:
mode:
authorJanusz Dziedzic <janusz.dziedzic@tieto.com>2014-04-08 07:38:43 -0400
committerJohn W. Linville <linville@tuxdriver.com>2014-04-09 13:55:55 -0400
commit4d76248013dbb1948429555208900a585b0f351d (patch)
tree6a5d0f0c89882281c250d5876e4f170682005e35 /tools/perf/scripts/python/event_analyzing_sample.py
parent12cd43c6ed6da7bf7c5afbd74da6959cda6d056b (diff)
ath9k: Enable DFS only when ATH9K_DFS_CERTIFIED
Add DFS interface combination only when CONFIG_ATH9K_DFS_CERTIFIED is set. In other case user can run CAC/beaconing without proper handling of pulse events (without radar detection activated). Reported-by: Cedric Voncken <cedric.voncken@acksys.fr> Signed-off-by: Janusz Dziedzic <janusz.dziedzic@tieto.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions
class="hl opt">*buf) { int l=0, c, i; while ((c=getc(inf))!=EOF) { if (c == ':') /* Sync with beginning of line */ { int n, check; unsigned char sum; int addr; int linetype; if (fscanf(inf, "%02x", &n) != 1) ABANDON("File format error"); sum = n; if (fscanf(inf, "%04x", &addr) != 1) ABANDON("File format error"); sum += addr/256; sum += addr%256; if (fscanf(inf, "%02x", &linetype) != 1) ABANDON("File format error"); sum += linetype; if (linetype != 0) continue; for (i=0;i<n;i++) { if (fscanf(inf, "%02x", &c) != 1) ABANDON("File format error"); if (addr >= MAX_SIZE) ABANDON("File too large"); buf[addr++] = c; if (addr > l) l = addr; sum += c; } if (fscanf(inf, "%02x", &check) != 1) ABANDON("File format error"); sum = ~sum + 1; if (check != sum) ABANDON("Line checksum error"); } } return l; } int main( int argc, const char * argv [] ) { const char * varline; int i,l; int id=0; if(argv[1] && strcmp(argv[1], "-i")==0) { argv++; argc--; id=1; } if(argv[1]==NULL) { fprintf(stderr,"hex2hex: [-i] filename\n"); exit(1); } varline = argv[1]; l = loadhex(stdin, buf); printf("/*\n *\t Computer generated file. Do not edit.\n */\n"); printf("static int %s_len = %d;\n", varline, l); printf("static unsigned char %s[] %s = {\n", varline, id?"__initdata":""); for (i=0;i<l;i++) { if (i) printf(","); if (i && !(i % 16)) printf("\n"); printf("0x%02x", buf[i]); } printf("\n};\n\n"); return 0; }