@@ -64,8 +64,9 @@ public class MainHook implements IXposedHookLoadPackage {
64
64
public static final int CHANNEL_WIDTH_320MHZ = 11 ;
65
65
// channel: 149,153,157,161,165
66
66
// freq: 5745,5765,5785,5805,5825
67
- private static HashSet <Integer > AvailableChannelSet = new HashSet <>(Arrays .asList (149 , 153 , 157 , 161 , 165 ));
68
- private static HashSet <Integer > AvailableChannelFreqSet = new HashSet <>(Arrays .asList (5745 , 5765 , 5785 , 5805 , 5825 ));
67
+ private static HashSet <Integer > AvailableChannelSet_LOW = new HashSet <>(Arrays .asList (36 , 40 , 44 ));
68
+ private static HashSet <Integer > AvailableChannelSet_HIGH = new HashSet <>(Arrays .asList (149 , 153 , 157 , 161 , 165 ));
69
+ // private static HashSet<Integer> AvailableChannelFreqSet = new HashSet<>(Arrays.asList(5745, 5765, 5785, 5805, 5825));
69
70
70
71
static {
71
72
AddressMap .put (TETHERING_WIFI , WIFI_HOST_IFACE_ADDRESS );
@@ -187,14 +188,14 @@ protected void beforeHookedMethod(XC_MethodHook.MethodHookParam param) throws Th
187
188
// Log.e(TAG, "orig allowedAcsChannels5g " + allowedAcsChannels5g);
188
189
// Log.e(TAG, "orig maxChannelBandwidth " + maxChannelBandwidth);
189
190
190
- // config set 5G channel
191
+ // config has set 5G channel
191
192
if (channel5gIndex >= 0 ) {
192
193
int channel = channels .get (BAND_5GHZ );
193
194
194
195
// 5GHz + allowedAcsChannels5g.size == 0
195
196
if (channel == 0 && allowedAcsChannels5g .size () == 0 ) {
196
197
// 5G ACS channels
197
- param .args [21 ] = AvailableChannelSet ;
198
+ param .args [21 ] = AvailableChannelSet_HIGH ;
198
199
// max bandwidth
199
200
param .args [23 ] = CHANNEL_WIDTH_320MHZ ;
200
201
}
0 commit comments