qca / open-ath9k-htc-firmware

The firmware for QCA AR7010/AR9271 802.11n USB NICs
Other
430 stars 182 forks source link

CCA Threshold #148

Open jeter1112 opened 6 years ago

jeter1112 commented 6 years ago

Hi, I wanted to change the CCA threshold of ar9271. I modified the ar9002_phy.h.

_#define AR_PHY_CCA_NOM_VAL_9271_2GHZ -20

define AR_PHY_CCA_MIN_GOOD_VAL_9271_2GHZ -27

define AR_PHY_CCA_MAX_GOOD_VAL_92712GHZ -16

However, it seems nothing to happen. I want to know how to change CCA threshold correctly.

erikarn commented 6 years ago

Hi,

Thats for NF calibration. There's a separate CCA register which programs in the noise floor value. It's done in the PHY init path.

-adrian

On Fri, 27 Jul 2018 at 07:10, jeter notifications@github.com wrote:

Hi, I wanted to change the CCA threshold of ar9271. I modified the ar9002_phy.h.

#define AR_PHY_CCA_NOM_VAL_9271_2GHZ -20 #define AR_PHY_CCA_MIN_GOOD_VAL_9271_2GHZ -27 #define AR_PHY_CCA_MAX_GOOD_VAL_9271_2GHZ -16

However, it seems nothing to happen. I want to know how to change CCA threshold correctly.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/qca/open-ath9k-htc-firmware/issues/148, or mute the thread https://github.com/notifications/unsubscribe-auth/ABGl7TZJxiHvsIPglQcnjNi_ugHMK094ks5uKx9ygaJpZM4VjkPB .

jeter1112 commented 6 years ago

Which register represents CCA register?

rodizio1 commented 5 years ago

@jeter1112 Not sure if it's still relevant for you, but here is a patch that allows for changing the threshold via module parameter: https://github.com/bortek/EZ-WifiBroadcast/blob/develop/kernel/linux-4.9.28-ath9k_htc-misc.patch