  }
  
  void AdvancedNetworking::toggleTethering(bool enabled) {
    wifi->setTetheringEnabled(enabled);
  }
  
  // WifiUI functions
  
  WifiUI::WifiUI(QWidget *parent, WifiManager* wifi) : QWidget(parent), wifi(wifi) {
    main_layout = new QVBoxLayout(this);
 
</s> remove   ToggleControl *tetheringToggle = new ToggleControl("Enable Tethering", "", "", wifi->isTetheringEnabled());
 </s> add   tetheringToggle = new ToggleControl("Enable Tethering", "", "", wifi->isTetheringEnabled());
  tetheringToggle->setEnabled(false);
  }
  
  void AdvancedNetworking::toggleTethering(bool enabled) {
    wifi->setTetheringEnabled(enabled);
  tetheringToggle->setEnabled(false);
  }
  
  // WifiUI functions
  
  WifiUI::WifiUI(QWidget *parent, WifiManager* wifi) : QWidget(parent), wifi(wifi) {
    main_layout = new QVBoxLayout(this);
keep keep keep add keep keep keep keep keep keep
 networking: disable tethering toggle while connecting (#21785)

* disable until connected

* disabling takes longest

* try enabling on refresh

* clean up 
selfdrive/ui/qt/offroad/networking.cc