The question of "Rxcontext" in "dot11main.cpp "in umxsdrbrick ? RRS feed

  • Question

  •  Hello.

    I find the code

    "BB11A_RX_CONTEXT RxContext; // Used by 11a baseband"

    in "dot11main.cpp "in umxsdrbrick. And it means the "RxContext" was used by 11a baseband.

    However,the codes beolw

    bool StartBaseband11b () {
        // Initialize the 802.11b baseband
        pBB11bRxSource = CreateDemodGraph11b ();
        pBB11bTxSource = CreateModGraph11b ();
        BB11bDemodCtx.init ( &RxStream[0], FrameBuffer, FrameBufferSize );

        // Reset rx graph
        pBB11bRxSource->Reset ();

        // MAC_state
        current_state = MAC_STATE_RX;

        // Start all threads
        hTxThread = AllocStartThread ( Dot11bSendProc, NULL);
        if (hTxThread == NULL ) {
            printf("failed to start tx thread\n");
            return false;

        hRxThread = AllocStartThread ( Dot11bRecvProc, &RxContext );

    The Rxcontext in function StartBaseband11b should be 11b RxContext. Should it define 

    "BB11B_RX_CONTEXT RxContext" in the beginning? Does the compiler treat it as

    "BB11A_RX_CONTEXT RxContext“ in this file?  Thank you.

    Friday, December 13, 2013 2:01 AM


  • Hi d,

    This "&RxContext" is a mistake. It should be NULL and will not be used by the Dot11bRecvProc(), so there is no harm.

    We will clean out the bug in future releases.

    Thanks for the report!


    • Proposed as answer by Qi LuoEditor Thursday, December 19, 2013 3:21 AM
    • Marked as answer by Qi LuoEditor Thursday, December 19, 2013 5:43 AM
    Thursday, December 19, 2013 3:20 AM

All replies