Lines Matching refs:bandwidth_auto_switch
512 priv->ieee80211->bandwidth_auto_switch.threshold_20Mhzto40Mhz = BW_AUTO_SWITCH_LOW_HIGH;
513 priv->ieee80211->bandwidth_auto_switch.threshold_40Mhzto20Mhz = BW_AUTO_SWITCH_HIGH_LOW;
514 priv->ieee80211->bandwidth_auto_switch.bforced_tx20Mhz = false;
515 priv->ieee80211->bandwidth_auto_switch.bautoswitch_enable = false;
524 if(priv->CurrentChannelBW == HT_CHANNEL_WIDTH_20 ||!priv->ieee80211->bandwidth_auto_switch.bautoswitch_enable){
527 if(priv->ieee80211->bandwidth_auto_switch.bforced_tx20Mhz == false){//If send packets in 40 Mhz in 20/40
528 if(priv->undecorated_smoothed_pwdb <= priv->ieee80211->bandwidth_auto_switch.threshold_40Mhzto20Mhz)
529 priv->ieee80211->bandwidth_auto_switch.bforced_tx20Mhz = true;
531 if(priv->undecorated_smoothed_pwdb >= priv->ieee80211->bandwidth_auto_switch.threshold_20Mhzto40Mhz)
532 priv->ieee80211->bandwidth_auto_switch.bforced_tx20Mhz = false;