]> git.baikalelectronics.ru Git - kernel.git/commit
rtl8180: make *IFS and CW tunable by mac80211, and set them in the proper place
authorAndrea Merello <andrea.merello@gmail.com>
Sat, 15 Mar 2014 17:29:37 +0000 (18:29 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 17 Mar 2014 17:44:15 +0000 (13:44 -0400)
commit0b77b2a8075ac3883e15290d2b87bf47ff512150
tree3507b4e91cd8cff81932a047c86eec6d482a1921
parent9b0d9d49a57f714c232c808c76ba801dd8b2a523
rtl8180: make *IFS and CW tunable by mac80211, and set them in the proper place

SLOT, SIFS, DIFS, EIFS, CW and ACK-timeout registers are set in an
RF-code callback and their values are fixed.

This patch moves this off the rf-code, and introduce two new functions
that calculate these values depending by slot time and CW values
requested by mac80211.

This seems to improve performances on my setup.

Currently the ack and slot time values could be stored in a local
variable, but this patch stores it in the driver "priv" structure
because it will be useful for rtl8187se support that will be added
(hopefully) soon.

Signed-off-by: Andrea Merello <andrea.merello@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/rtl818x/rtl8180/dev.c
drivers/net/wireless/rtl818x/rtl8180/rtl8180.h
drivers/net/wireless/rtl818x/rtl8180/rtl8225.c