Lines Matching refs:bandwidth_auto_switch
557 priv->ieee80211->bandwidth_auto_switch.threshold_20Mhzto40Mhz = BW_AUTO_SWITCH_LOW_HIGH;
558 priv->ieee80211->bandwidth_auto_switch.threshold_40Mhzto20Mhz = BW_AUTO_SWITCH_HIGH_LOW;
559 priv->ieee80211->bandwidth_auto_switch.bforced_tx20Mhz = false;
560 priv->ieee80211->bandwidth_auto_switch.bautoswitch_enable = false;
569 if(priv->CurrentChannelBW == HT_CHANNEL_WIDTH_20 ||!priv->ieee80211->bandwidth_auto_switch.bautoswitch_enable){
572 if(priv->ieee80211->bandwidth_auto_switch.bforced_tx20Mhz == false){//If send packets in 40 Mhz in 20/40
573 if(priv->undecorated_smoothed_pwdb <= priv->ieee80211->bandwidth_auto_switch.threshold_40Mhzto20Mhz)
574 priv->ieee80211->bandwidth_auto_switch.bforced_tx20Mhz = true;
576 if(priv->undecorated_smoothed_pwdb >= priv->ieee80211->bandwidth_auto_switch.threshold_20Mhzto40Mhz)
577 priv->ieee80211->bandwidth_auto_switch.bforced_tx20Mhz = false;