1.setup wifi in promisc mode.
2.set wifi monitor channel in 5G band,eg:44.
3.wait frame comming.
4.got the frame,and get the frame type(rtw_rx_type_t:is suuported or not) (use userdata parameter,it`s a ieee80211_frame_info_t struct).
but the type field is incorrect,but in the 2.4g band, it`s correct.
// setup code
It seems that the IAR compiler optimize is causing problems, and the optimization of each version of IAR is not quite the same. What is the version used? As far as I know, Realtek was using version 8.x before. You can use the same IAR version they used at the beginning to solve the problem.
when use gcc ,also has a bug,but not about type field,its about rssi field ,some times the rssi value is zero, but the rssi will not be zero. thats strange.
Thank you @lovex and @Alphi_Jiang . The SDK is under testing at the time you are asking. Now it is released V1.0.0. It is going to be fixed in next version.
We are checking this issue. Any example from the SDK, you are running? So I can re-produce the issue.
You might want to try changing the channel number to 161 in the promisc.c code under the promisc_test_all as I am able to get the rssi value. Just want to mention , we do not recommend making any changes to the code as it an API and also a static function. Even if you can send us the code that you used, we wont be able to assist you in debugging the issue. Thank you