remote talking to AR9271

bruce m beach brucembeach at gmail.com
Wed Feb 24 20:19:04 PST 2016


Hello Oleksij

> Complete SOC documentations is missing. We have only wifi
> part of it.  I created some doc here:
> https://github.com/qca/open-ath9k-htc-firmware/wiki/usb-regs
> https://github.com/qca/open-ath9k-htc-firmware/wiki/usb-related-issues
> https://github.com/qca/open-ath9k-htc-firmware/wiki/HTC


  Thanks for you reply. All these things I looked at, but at
the moment and for the last several months I've really been
working on the build tree which hopefully I'll be finished
in a month or so and can finally do some codeing. (I do have
a usb user space module at this point that will send data to
the 9271 but it is in an unfinished state). Right now I
noticed something about the preprocessor statements in init.c
which puzzles me. The only way I could see it was to copy
init.c to another file and delete everything except the
preprocessor statements, since the final #endif is 328 lines
below the #if defined(PROJECT_MAGPIE) of interest. Below is
the code section of interest:

    #if defined(PROJECT_MAGPIE)         // outer #if
      ....
        #if defined(PROJECT_MAGPIE) // inner
        #elif defined(PROJECT_K2)
        #endif /* #if defined(PROJECT_MAGPIE) */ //inner

        #if SYSTEM_MODULE_PRINT
        #else
        #endif

        #if defined(_ROM_)
        #endif
       ....
       ....
    #endif                              // end of outer #if

Notice that if PROJECT_MAGPIE is defined the
    #elif defined(PROJECT_K2)
will not get executed, but if PROJECT_MAGPIE is not defined the
#elif defined(PROJECT_K2) will still not get executed since
it is inside the  outer #if defined(PROJECT_MAGPIE) block. If I cut
the whole block out a

diff -s  htc_9271.fw htc_9271.fw.git

from my tree to the git tree are still identical.

Bruce

btw I can't make out who is
   ath9k_htc_fw-request at lists.infradead.org
   should I not be sending to
   ath9k_htc_fw at lists.infradead.org ?



More information about the ath9k_htc_fw mailing list