Introduction
-------------------------
This file gives a basic introduction on how to use WPC debug in Qualcomm Atheros access points.

Steps to follow
-------------------------
1.Create a wpc_dbg_log file in /tmp folder and change the file permission.
    Eg:# touch /tmp/wpc_dbg_log
         # chmod 777 /tmp/wpc_dbg_log
2.Start wpc deamon.
    Eg:# wpc -d
3.Enable wpc debug in the tinynpbserver.
   Eg:$./nbpserver -W 
   Once you run it asks as "Sending WPC debug Request to AP                          START/STOP(1-START/0-STOP)
    Press 1 for enabling the WPC debug and 0 for disabling the WPC debug.
 4.After stops the wpc debug, tftp to the nbpserver using the command
   # tftp -l wpc_dbg_log -p serverip.
 5.Once copied the wpc_dbg_log file in the server, do make wpc_debug in the tinynbpserver directory.
   Eg:$ make wpc_debug 
   This will generate a binary file called wpc_debug.
6.Run wpc_debug .
  Eg:$ ./wpc_debug > wpc_debug.txt
  The debug logs can view in the wpc_debug.txt.   

The sample log output is

Filename: wpc_mgr.c Line No: 347 Frame type: 1
Filename: wpc_mgr.c Line No: 603 Frame type: 2
Filename: wpc_mgr.c Line No: 603 Frame type: 2
Filename: wpc_mgr.c Line No: 603 Frame type: 2
Filename: wpc_mgr.c Line No: 603 Frame type: 2
Filename: wpc_mgr.c Line No: 214 Frame type: 2
Filename: wpc_mgr.c Line No: 347 Frame type: 1
Filename: wpc_mgr.c Line No: 603 Frame type: 2
Filename: wpc_mgr.c Line No: 603 Frame type: 2
Filename: wpc_mgr.c Line No: 603 Frame type: 2
Filename: wpc_mgr.c Line No: 603 Frame type: 2
Filename: wpc_mgr.c Line No: 214 Frame type: 2
Filename: wpc_mgr.c Line No: 347 Frame type: 1
Filename: wpc_mgr.c Line No: 603 Frame type: 2
Filename: wpc_mgr.c Line No: 603 Frame type: 2
Filename: wpc_mgr.c Line No: 603 Frame type: 2
Filename: wpc_mgr.c Line No: 603 Frame type: 2
Filename: wpc_mgr.c Line No: 214 Frame type: 2
Filename: wpc_mgr.c Line No: 347 Frame type: 1
Filename: wpc_mgr.c Line No: 603 Frame type: 2
Filename: wpc_mgr.c Line No: 603 Frame type: 2
Filename: wpc_mgr.c Line No: 603 Frame type: 2
Filename: wpc_mgr.c Line No: 603 Frame type: 2
Filename: wpc_mgr.c Line No: 214 Frame type: 2
Filename: wpc_mgr.c Line No: 347 Frame type: 1
Filename: wpc_mgr.c Line No: 603 Frame type: 2
Filename: wpc_mgr.c Line No: 603 Frame type: 2
Filename: wpc_mgr.c Line No: 603 Frame type: 2
Filename: wpc_mgr.c Line No: 214 Frame type: 2
Filename: wpc_mgr.c Line No: 347 Frame type: 1
Filename: wpc_mgr.c Line No: 603 Frame type: 2
Filename: wpc_mgr.c Line No: 603 Frame type: 2
Filename: wpc_mgr.c Line No: 603 Frame type: 2
Filename: wpc_mgr.c Line No: 214 Frame type: 2
Filename: wpc_mgr.c Line No: 347 Frame type: 1
Filename: wpc_mgr.c Line No: 603 Frame type: 2
Filename: wpc_mgr.c Line No: 603 Frame type: 2
Filename: wpc_mgr.c Line No: 603 Frame type: 2
Filename: wpc_mgr.c Line No: 603 Frame type: 2
Filename: wpc_mgr.c Line No: 214 Frame type: 2
Filename: wpc_mgr.c Line No: 347 Frame type: 1
Filename: wpc_mgr.c Line No: 214 Frame type: 2
Filename: wpc_mgr.c Line No: 347 Frame type: 1
Filename: wpc_mgr.c Line No: 603 Frame type: 2
Filename: wpc_mgr.c Line No: 603 Frame type: 2
Filename: wpc_mgr.c Line No: 603 Frame type: 2
Filename: wpc_mgr.c Line No: 214 Frame type: 2
Filename: wpc_mgr.c Line No: 347 Frame type: 1
Filename: wpc_mgr.c Line No: 603 Frame type: 2
Filename: wpc_mgr.c Line No: 603 Frame type: 2
Filename: wpc_mgr.c Line No: 603 Frame type: 2
Filename: wpc_mgr.c Line No: 603 Frame type: 2
Filename: wpc_mgr.c Line No: 214 Frame type: 2
Filename: wpc_mgr.c Line No: 347 Frame type: 1
Filename: wpc_mgr.c Line No: 603 Frame type: 2
Filename: wpc_mgr.c Line No: 603 Frame type: 2
Filename: wpc_mgr.c Line No: 603 Frame type: 2
Filename: wpc_mgr.c Line No: 603 Frame type: 2
Filename: wpc_mgr.c Line No: 214 Frame type: 2
Filename: wpc_mgr.c Line No: 347 Frame type: 1
Filename: wpc_mgr.c Line No: 603 Frame type: 2
Filename: wpc_mgr.c Line No: 603 Frame type: 2
Filename: wpc_mgr.c Line No: 603 Frame type: 2
Filename: wpc_mgr.c Line No: 603 Frame type: 2
Filename: wpc_mgr.c Line No: 214 Frame type: 2
Filename: wpc_mgr.c Line No: 347 Frame type: 1
Filename: wpc_mgr.c Line No: 603 Frame type: 2
Filename: wpc_mgr.c Line No: 603 Frame type: 2
Filename: wpc_mgr.c Line No: 214 Frame type: 2
Filename: wpc_mgr.c Line No: 347 Frame type: 1
Filename: wpc_mgr.c Line No: 603 Frame type: 2
Filename: wpc_mgr.c Line No: 603 Frame type: 2
Filename: wpc_mgr.c Line No: 603 Frame type: 2
Filename: wpc_mgr.c Line No: 603 Frame type: 2
Filename: wpc_mgr.c Line No: 214 Frame type: 2
Filename: wpc_mgr.c Line No: 347 Frame type: 1
Filename: wpc_mgr.c Line No: 603 Frame type: 2
Filename: wpc_mgr.c Line No: 603 Frame type: 2
Filename: wpc_mgr.c Line No: 603 Frame type: 2
Filename: wpc_mgr.c Line No: 603 Frame type: 2
Filename: wpc_mgr.c Line No: 214 Frame type: 2
Filename: wpc_mgr.c Line No: 347 Frame type: 1
Filename: wpc_mgr.c Line No: 603 Frame type: 2
Filename: wpc_mgr.c Line No: 603 Frame type: 2
Filename: wpc_mgr.c Line No: 603 Frame type: 2
Filename: wpc_mgr.c Line No: 603 Frame type: 2
Filename: wpc_mgr.c Line No: 214 Frame type: 2
Filename: wpc_mgr.c Line No: 347 Frame type: 1
Filename: wpc_mgr.c Line No: 603 Frame type: 2
Filename: wpc_mgr.c Line No: 603 Frame type: 2
Filename: wpc_mgr.c Line No: 603 Frame type: 2
Filename: wpc_mgr.c Line No: 214 Frame type: 2
Filename: wpc_mgr.c Line No: 347 Frame type: 1
Filename: wpc_mgr.c Line No: 603 Frame type: 2
Filename: wpc_mgr.c Line No: 603 Frame type: 2
Filename: wpc_mgr.c Line No: 603 Frame type: 2
Filename: wpc_mgr.c Line No: 603 Frame type: 2
Filename: wpc_mgr.c Line No: 214 Frame type: 2
Filename: wpc_mgr.c Line No: 347 Frame type: 1
Filename: wpc_mgr.c Line No: 603 Frame type: 2
Filename: wpc_mgr.c Line No: 214 Frame type: 2
Filename: wpc_mgr.c Line No: 347 Frame type: 1
Filename: wpc_mgr.c Line No: 603 Frame type: 2
Filename: wpc_mgr.c Line No: 603 Frame type: 2
Filename: wpc_mgr.c Line No: 603 Frame type: 2
Filename: wpc_mgr.c Line No: 214 Frame type: 2
Filename: wpc_mgr.c Line No: 347 Frame type: 1
Filename: wpc_mgr.c Line No: 603 Frame type: 2
Filename: wpc_mgr.c Line No: 603 Frame type: 2
Filename: wpc_mgr.c Line No: 603 Frame type: 2
Filename: wpc_mgr.c Line No: 603 Frame type: 2
Filename: wpc_mgr.c Line No: 214 Frame type: 2
Filename: wpc_mgr.c Line No: 347 Frame type: 1
Filename: wpc_mgr.c Line No: 603 Frame type: 2
Filename: wpc_mgr.c Line No: 603 Frame type: 2
Filename: wpc_mgr.c Line No: 603 Frame type: 2
Filename: wpc_mgr.c Line No: 214 Frame type: 2
Filename: wpc_mgr.c Line No: 347 Frame type: 1
Filename: wpc_mgr.c Line No: 603 Frame type: 2
Filename: wpc_mgr.c Line No: 603 Frame type: 2
Filename: wpc_mgr.c Line No: 214 Frame type: 2
Filename: wpc_mgr.c Line No: 347 Frame type: 1
Filename: wpc_mgr.c Line No: 603 Frame type: 2
Filename: wpc_mgr.c Line No: 214 Frame type: 2
Filename: wpc_mgr.c Line No: 347 Frame type: 1
Filename: wpc_mgr.c Line No: 603 Frame type: 2
Filename: wpc_mgr.c Line No: 603 Frame type: 2
Filename: wpc_mgr.c Line No: 214 Frame type: 2
Filename: wpc_mgr.c Line No: 347 Frame type: 1
Filename: wpc_mgr.c Line No: 603 Frame type: 2
Filename: wpc_mgr.c Line No: 603 Frame type: 2
Filename: wpc_mgr.c Line No: 214 Frame type: 2
Filename: wpc_mgr.c Line No: 347 Frame type: 1
Filename: wpc_mgr.c Line No: 603 Frame type: 2
Filename: wpc_mgr.c Line No: 603 Frame type: 2
Filename: wpc_mgr.c Line No: 214 Frame type: 2
Filename: wpc_mgr.c Line No: 347 Frame type: 1
Filename: wpc_mgr.c Line No: 214 Frame type: 2
Filename: wpc_mgr.c Line No: 347 Frame type: 1
Filename: wpc_mgr.c Line No: 214 Frame type: 2
Filename: wpc_mgr.c Line No: 347 Frame type: 1
Filename: wpc_mgr.c Line No: 603 Frame type: 2
Filename: wpc_mgr.c Line No: 214 Frame type: 2
Filename: wpc_mgr.c Line No: 347 Frame type: 1
Filename: wpc_mgr.c Line No: 603 Frame type: 2
Filename: wpc_mgr.c Line No: 214 Frame type: 2
Filename: wpc_mgr.c Line No: 347 Frame type: 1
Filename: wpc_mgr.c Line No: 603 Frame type: 2
Filename: wpc_mgr.c Line No: 603 Frame type: 2
Filename: wpc_mgr.c Line No: 214 Frame type: 2
Filename: wpc_mgr.c Line No: 347 Frame type: 1
Filename: wpc_mgr.c Line No: 214 Frame type: 2
Filename: wpc_mgr.c Line No: 347 Frame type: 1
Filename: wpc_mgr.c Line No: 603 Frame type: 2
Filename: wpc_mgr.c Line No: 214 Frame type: 2
Filename: wpc_mgr.c Line No: 347 Frame type: 1
Filename: wpc_mgr.c Line No: 603 Frame type: 2
Filename: wpc_mgr.c Line No: 214 Frame type: 2
Filename: wpc_mgr.c Line No: 347 Frame type: 1
Filename: wpc_mgr.c Line No: 603 Frame type: 2
Filename: wpc_mgr.c Line No: 214 Frame type: 2
Filename: wpc_mgr.c Line No: 347 Frame type: 1
Filename: wpc_mgr.c Line No: 603 Frame type: 2
Filename: wpc_mgr.c Line No: 214 Frame type: 2
Filename: wpc_mgr.c Line No: 347 Frame type: 1
Filename: wpc_mgr.c Line No: 214 Frame type: 2
Filename: wpc_mgr.c Line No: 347 Frame type: 1
Filename: wpc_mgr.c Line No: 214 Frame type: 2
Filename: wpc_mgr.c Line No: 347 Frame type: 1
Filename: wpc_mgr.c Line No: 603 Frame type: 2