    QPushButton* btn = static_cast<QPushButton*>(button);
    Network n = wifi->seen_networks[connectButtons->id(btn)];
    emit connectToNetwork(n);
  }
  
  void WifiUI::prevPage() {
    page--;
    refresh();
  }
  
  void WifiUI::nextPage() {
    page++;
    refresh();
  }
 
</s> remove 

  // Setup buttons for pagination
  QHBoxLayout *prev_next_buttons = new QHBoxLayout;

  QPushButton* prev = new QPushButton("Previous");
  prev->setEnabled(page);
  QObject::connect(prev, SIGNAL(released()), this, SLOT(prevPage()));
  prev_next_buttons->addWidget(prev);

  QPushButton* next = new QPushButton("Next");
  next->setEnabled(wifi->seen_networks.size() > (page + 1) * networks_per_page);
  QObject::connect(next, SIGNAL(released()), this, SLOT(nextPage()));
  prev_next_buttons->addWidget(next);

  vlayout->addLayout(prev_next_buttons, 2);
 </s> add  </s> remove   void prevPage();
  void nextPage();
 </s> add   void handleButton(QAbstractButton* m_button); </s> remove   void handleButton(QAbstractButton* m_button);
 </s> add  </s> remove   int page;
 </s> add 
    QPushButton* btn = static_cast<QPushButton*>(button);
    Network n = wifi->seen_networks[connectButtons->id(btn)];
    emit connectToNetwork(n);
  }










keep keep keep keep replace replace replace replace replace replace replace replace replace replace
 cleanup tici networking + remove pagination (#20528)

* remove wifi pagination

* cleanup

* little more cleanup

* fix tethering button

Co-authored-by: Comma Device <device@comma.ai> 
selfdrive/ui/qt/offroad/networking.cc