Commit 8930b050 authored by Eyal Shapira's avatar Eyal Shapira Committed by Emmanuel Grumbach

iwlwifi: mvm: rs: fix search cycle rules

We should explore all possible columns when searching to be
as resilient as possible to changing conditions. This fixes
for example a scenario where even after a sudden creation of
rssi difference between the 2 antennas we would keep doing MIMO
at a low rate instead of switching to SISO at a higher rate using
the better antenna which was the optimal configuration.
Signed-off-by: default avatarEyal Shapira <eyalx.shapira@intel.com>
Signed-off-by: default avatarEmmanuel Grumbach <emmanuel.grumbach@intel.com>
parent 833df4a8
...@@ -211,9 +211,9 @@ static const struct rs_tx_column rs_tx_columns[] = { ...@@ -211,9 +211,9 @@ static const struct rs_tx_column rs_tx_columns[] = {
.next_columns = { .next_columns = {
RS_COLUMN_LEGACY_ANT_B, RS_COLUMN_LEGACY_ANT_B,
RS_COLUMN_SISO_ANT_A, RS_COLUMN_SISO_ANT_A,
RS_COLUMN_SISO_ANT_B,
RS_COLUMN_MIMO2, RS_COLUMN_MIMO2,
RS_COLUMN_INVALID, RS_COLUMN_MIMO2_SGI,
RS_COLUMN_INVALID,
}, },
}, },
[RS_COLUMN_LEGACY_ANT_B] = { [RS_COLUMN_LEGACY_ANT_B] = {
...@@ -221,10 +221,10 @@ static const struct rs_tx_column rs_tx_columns[] = { ...@@ -221,10 +221,10 @@ static const struct rs_tx_column rs_tx_columns[] = {
.ant = ANT_B, .ant = ANT_B,
.next_columns = { .next_columns = {
RS_COLUMN_LEGACY_ANT_A, RS_COLUMN_LEGACY_ANT_A,
RS_COLUMN_SISO_ANT_A,
RS_COLUMN_SISO_ANT_B, RS_COLUMN_SISO_ANT_B,
RS_COLUMN_MIMO2, RS_COLUMN_MIMO2,
RS_COLUMN_INVALID, RS_COLUMN_MIMO2_SGI,
RS_COLUMN_INVALID,
}, },
}, },
[RS_COLUMN_SISO_ANT_A] = { [RS_COLUMN_SISO_ANT_A] = {
...@@ -234,8 +234,8 @@ static const struct rs_tx_column rs_tx_columns[] = { ...@@ -234,8 +234,8 @@ static const struct rs_tx_column rs_tx_columns[] = {
RS_COLUMN_SISO_ANT_B, RS_COLUMN_SISO_ANT_B,
RS_COLUMN_MIMO2, RS_COLUMN_MIMO2,
RS_COLUMN_SISO_ANT_A_SGI, RS_COLUMN_SISO_ANT_A_SGI,
RS_COLUMN_INVALID, RS_COLUMN_SISO_ANT_B_SGI,
RS_COLUMN_INVALID, RS_COLUMN_MIMO2_SGI,
}, },
.checks = { .checks = {
rs_siso_allow, rs_siso_allow,
...@@ -248,8 +248,8 @@ static const struct rs_tx_column rs_tx_columns[] = { ...@@ -248,8 +248,8 @@ static const struct rs_tx_column rs_tx_columns[] = {
RS_COLUMN_SISO_ANT_A, RS_COLUMN_SISO_ANT_A,
RS_COLUMN_MIMO2, RS_COLUMN_MIMO2,
RS_COLUMN_SISO_ANT_B_SGI, RS_COLUMN_SISO_ANT_B_SGI,
RS_COLUMN_INVALID, RS_COLUMN_SISO_ANT_A_SGI,
RS_COLUMN_INVALID, RS_COLUMN_MIMO2_SGI,
}, },
.checks = { .checks = {
rs_siso_allow, rs_siso_allow,
...@@ -263,8 +263,8 @@ static const struct rs_tx_column rs_tx_columns[] = { ...@@ -263,8 +263,8 @@ static const struct rs_tx_column rs_tx_columns[] = {
RS_COLUMN_SISO_ANT_B_SGI, RS_COLUMN_SISO_ANT_B_SGI,
RS_COLUMN_MIMO2_SGI, RS_COLUMN_MIMO2_SGI,
RS_COLUMN_SISO_ANT_A, RS_COLUMN_SISO_ANT_A,
RS_COLUMN_INVALID, RS_COLUMN_SISO_ANT_B,
RS_COLUMN_INVALID, RS_COLUMN_MIMO2,
}, },
.checks = { .checks = {
rs_siso_allow, rs_siso_allow,
...@@ -279,8 +279,8 @@ static const struct rs_tx_column rs_tx_columns[] = { ...@@ -279,8 +279,8 @@ static const struct rs_tx_column rs_tx_columns[] = {
RS_COLUMN_SISO_ANT_A_SGI, RS_COLUMN_SISO_ANT_A_SGI,
RS_COLUMN_MIMO2_SGI, RS_COLUMN_MIMO2_SGI,
RS_COLUMN_SISO_ANT_B, RS_COLUMN_SISO_ANT_B,
RS_COLUMN_INVALID, RS_COLUMN_SISO_ANT_A,
RS_COLUMN_INVALID, RS_COLUMN_MIMO2,
}, },
.checks = { .checks = {
rs_siso_allow, rs_siso_allow,
...@@ -292,10 +292,10 @@ static const struct rs_tx_column rs_tx_columns[] = { ...@@ -292,10 +292,10 @@ static const struct rs_tx_column rs_tx_columns[] = {
.ant = ANT_AB, .ant = ANT_AB,
.next_columns = { .next_columns = {
RS_COLUMN_SISO_ANT_A, RS_COLUMN_SISO_ANT_A,
RS_COLUMN_SISO_ANT_B,
RS_COLUMN_SISO_ANT_A_SGI,
RS_COLUMN_SISO_ANT_B_SGI,
RS_COLUMN_MIMO2_SGI, RS_COLUMN_MIMO2_SGI,
RS_COLUMN_INVALID,
RS_COLUMN_INVALID,
RS_COLUMN_INVALID,
}, },
.checks = { .checks = {
rs_mimo_allow, rs_mimo_allow,
...@@ -307,10 +307,10 @@ static const struct rs_tx_column rs_tx_columns[] = { ...@@ -307,10 +307,10 @@ static const struct rs_tx_column rs_tx_columns[] = {
.sgi = true, .sgi = true,
.next_columns = { .next_columns = {
RS_COLUMN_SISO_ANT_A_SGI, RS_COLUMN_SISO_ANT_A_SGI,
RS_COLUMN_SISO_ANT_B_SGI,
RS_COLUMN_SISO_ANT_A,
RS_COLUMN_SISO_ANT_B,
RS_COLUMN_MIMO2, RS_COLUMN_MIMO2,
RS_COLUMN_INVALID,
RS_COLUMN_INVALID,
RS_COLUMN_INVALID,
}, },
.checks = { .checks = {
rs_mimo_allow, rs_mimo_allow,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment