Attempt to support 60GHz on Android 11 on select OEMs
This commit is contained in:
@@ -67,12 +67,10 @@ class WifiApDialogFragment : AlertDialogFragment<WifiApDialogFragment.Arg, WifiA
|
|||||||
private val softApOptions by lazy {
|
private val softApOptions by lazy {
|
||||||
when (Build.VERSION.SDK_INT) {
|
when (Build.VERSION.SDK_INT) {
|
||||||
in 30..Int.MAX_VALUE -> {
|
in 30..Int.MAX_VALUE -> {
|
||||||
val channels6G = channels5G +
|
genAutoOptions(SoftApConfigurationCompat.BAND_ANY_31) +
|
||||||
(1..233).map { ChannelOption(SoftApConfigurationCompat.BAND_6GHZ, it) }
|
channels5G +
|
||||||
if (Build.VERSION.SDK_INT >= 31) {
|
(1..233).map { ChannelOption(SoftApConfigurationCompat.BAND_6GHZ, it) } +
|
||||||
genAutoOptions(SoftApConfigurationCompat.BAND_ANY_31) +
|
(1..6).map { ChannelOption(SoftApConfigurationCompat.BAND_60GHZ, it) }
|
||||||
channels6G + (1..6).map { ChannelOption(SoftApConfigurationCompat.BAND_60GHZ, it) }
|
|
||||||
} else genAutoOptions(SoftApConfigurationCompat.BAND_ANY_30) + channels6G
|
|
||||||
}
|
}
|
||||||
in 28 until 30 -> p2pSafeOptions
|
in 28 until 30 -> p2pSafeOptions
|
||||||
else -> listOf(ChannelOption(SoftApConfigurationCompat.BAND_2GHZ),
|
else -> listOf(ChannelOption(SoftApConfigurationCompat.BAND_2GHZ),
|
||||||
|
|||||||
Reference in New Issue
Block a user