Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ath9k: Maintain monotonicity of PER while going across different phy

Monotonicity of packet error rate should be kept when moving
from one phy to another (legacy to ht, ht single stream to dual,
etc). Current code skips updating per for other phys.

Signed-off-by: Vasanthakumar Thiagarajan <vasanth@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>

authored by

Vasanthakumar Thiagarajan and committed by
John W. Linville
3fc0fbf4 42e88560

-3
-3
drivers/net/wireless/ath/ath9k/rc.c
··· 1041 1041 /* Monotonicity is kept only for rates below the current rate. */ 1042 1042 if (ath_rc_priv->per[tx_rate] < last_per) { 1043 1043 for (rate = tx_rate - 1; rate >= 0; rate--) { 1044 - if (rate_table->info[rate].phy != 1045 - rate_table->info[tx_rate].phy) 1046 - break; 1047 1044 1048 1045 if (ath_rc_priv->per[rate] > 1049 1046 ath_rc_priv->per[rate+1]) {