Refine channel error checking and allow multi-channel auto

This commit is contained in:
Mygod
2021-08-22 23:33:38 -04:00
parent e9081e67d7
commit 2856ad2080
4 changed files with 82 additions and 64 deletions

View File

@@ -226,7 +226,7 @@ class RepeaterManager(private val parent: TetheringFragment) : Manager(), Servic
return null
}
private suspend fun updateConfiguration(config: SoftApConfigurationCompat) {
val (band, channel) = config.requireSingleBand()
val (band, channel) = SoftApConfigurationCompat.requireSingleBand(config.channels)
if (RepeaterService.safeMode) {
RepeaterService.networkName = config.ssid
RepeaterService.deviceAddress = config.bssid