Bugzilla – Bug 1848
yans-wifi-phy can receive frames sent using unsupported mode
Last modified: 2015-05-27 10:40:25 EDT
The current yans-wifi-phy implementation simply checks if the signal power is higher than the threshold and start receiving the frame if the signal exceeds the threshold even though the mode is not supported by the receiving phy. For example, consider the following scenario (all nodes are within range of each other): 802.11g AP 802.11g STA 802.11b STA Communication between the two STAs will have to go through the AP but 802.11b STA is still able to "overhear" all frames sent between 802.11g STA/AP. (The frames will be ignored anyway since they are not addressed to 802.11b STA.) This scenario is not a problem for adhoc since we assumed that all nodes support the same rate in adhoc mode. I marked this as "enhancement" since I think mixing between b/g is not common in the simulation(?)
Created attachment 1776 [details] Check mode before switching to RX Check mode before switching to RX
Hi Daniel, I noticed this bug, which is still true for 802.11n. I think it is even worse with 802.11n because of greenfield mode which should not be understood by non-HT stations. I have not tested all that, but I wonder also how the simulator behaves when a 40MHz transmission occur in presence of non-HT stations. Have you looked yet at such 802.11n mixed scenarios? I will try to test your patch as quickly as possible.
10600:48c3c6b355a1
Hi Ghada, Sorry, I just pushed the patch. If you can test it more, that would be great. I have not tested with 802.11n yet. We can roll it back if needed.
Created attachment 1777 [details] Sample scenario Here's the sample scenario.
Please make a test and update the Python bindings (you added a new function) :P
I rapidly tested your patch, and it resolves perfectly troubles when b and g stations are involved. When I consider HT, b and g stations, I get a strange behaviour (the same one with or without the patch). So, we should now investigate how to support 802.11n mixed mode with b/g stations. I do not think it is hard to do, I will try to work on that when I have some time for it.
Closing this bug since patch has been committed a while ago and no issues have popped up.