Answered by:
The question of "Rxcontext" in "dot11main.cpp "in umxsdrbrick ?

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
Answers
-
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!
-Qi
- 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 AMAnswerer
All replies
-
Hello,
You may need to look at this post
http://social.microsoft.com/Forums/en-US/1d941869-2f2a-4b58-9c27-f5073cbb182a/code-about-umx-sdr-brick?forum=soraThe question 3.
Muye
Friday, December 13, 2013 6:21 AM -
Thank you,Muye. Does the "RxContext" use in this code pieces(function StartBaseband11b)?
Or is it just a mistake?Thanks again.
- Edited by d kd Friday, December 13, 2013 8:20 AM
Friday, December 13, 2013 8:20 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!
-Qi
- 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 AMAnswerer -
Eh,I understand. Tnank you,Qi.Thursday, December 19, 2013 5:32 AM