Lines Matching refs:bandwidth_auto_switch
565 priv->ieee80211->bandwidth_auto_switch.threshold_20Mhzto40Mhz = BW_AUTO_SWITCH_LOW_HIGH;
566 priv->ieee80211->bandwidth_auto_switch.threshold_40Mhzto20Mhz = BW_AUTO_SWITCH_HIGH_LOW;
567 priv->ieee80211->bandwidth_auto_switch.bforced_tx20Mhz = false;
568 priv->ieee80211->bandwidth_auto_switch.bautoswitch_enable = false;
577 if(priv->CurrentChannelBW == HT_CHANNEL_WIDTH_20 ||!priv->ieee80211->bandwidth_auto_switch.bautoswitch_enable){
580 if(priv->ieee80211->bandwidth_auto_switch.bforced_tx20Mhz == false){//If send packets in 40 Mhz in 20/40
581 if(priv->undecorated_smoothed_pwdb <= priv->ieee80211->bandwidth_auto_switch.threshold_40Mhzto20Mhz)
582 priv->ieee80211->bandwidth_auto_switch.bforced_tx20Mhz = true;
584 if(priv->undecorated_smoothed_pwdb >= priv->ieee80211->bandwidth_auto_switch.threshold_20Mhzto40Mhz)
585 priv->ieee80211->bandwidth_auto_switch.bforced_tx20Mhz = false;