Bug 2733 - Ideal wifi manager cannot handle NSS higher than 1
Ideal wifi manager cannot handle NSS higher than 1
Status: RESOLVED FIXED
Product: ns-3
Classification: Unclassified
Component: wifi
ns-3.26
All All
: P3 normal
Assigned To: sebastien.deronne
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2017-05-01 15:34 UTC by sebastien.deronne
Modified: 2017-07-04 15:39 UTC (History)
2 users (show)

See Also:


Attachments
patch to fix (12.02 KB, patch)
2017-06-26 17:33 UTC, Tom Henderson
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description sebastien.deronne 2017-05-01 15:34:53 UTC
If Nss higher than 1 is configured in wifi-manager-example when using IdealWifiManager, only rates for Nss = 1 are selected.

This is because the same SNR threshold are obtained regardless the value of NSS, so once the highest SISO MCS is reached, the following condition is never entered anymore when NSS becomes higher than 1:
if (threshold > maxThreshold && threshold < station->m_lastSnrObserved)
Comment 1 sebastien.deronne 2017-05-15 12:48:20 UTC
Tom or Matias, can this be assigned to one of you?
Comment 2 Tom Henderson 2017-05-28 10:37:51 UTC
(In reply to sebastien.deronne from comment #1)
> Tom or Matias, can this be assigned to one of you?

I can take; may be related to 2385.
Comment 3 sebastien.deronne 2017-06-05 15:54:45 UTC
Tom, should this be moved to duplicate then?
Comment 4 Tom Henderson 2017-06-26 17:33:52 UTC
Created attachment 2878 [details]
patch to fix

I believe this patch fixes the issue (I tested many nss combinations by hand).  The overall code for ideal-wifi-manager.cc could be refactored a bit to reduce code duplication, but I did not take that step in this patch.
Comment 5 sebastien.deronne 2017-06-27 15:46:30 UTC
Thanks Tom, I will give a try.
We can still do some cleanup actions later on.
I also suggest to extend tests for nss>1 in our regression.
Comment 6 sebastien.deronne 2017-06-27 16:22:52 UTC
I did not try all combinations, but it seems the patch solves the reported issue, thanks Tom.
I will extend some more tests in the regression once the patch is pushed.
Comment 7 sebastien.deronne 2017-07-04 15:39:04 UTC
pushed in changeset 12952:8dbfaa3bc882