[MAGISK][MOD] Pixel 2 WiFi Mod

MrPhilo

Senior Member
Dec 12, 2010
2,016
646
183
Sheffield
Thank you for this.

The Wifi Bonding, is it only for 2.4Ghz? I have another Magisk Module that runs both the 2.4Ghz and 5Ghz at 40Mhz. Might uninstall it as it does the same thing.
 

shadowstep

Forum Moderator
Staff member
Jun 6, 2014
4,292
8,105
263
30
Ambala
Thank you for this.

The Wifi Bonding, is it only for 2.4Ghz? I have another Magisk Module that runs both the 2.4Ghz and 5Ghz at 40Mhz. Might uninstall it as it does the same thing.
5GHz channel bonding is enabled by default in the stock Pixel 2 wifi configuration file. The mod, additionally, enables 2.4GHz channel bonding as well.

In other words, by default, the stock Pixel 2 wifi configuration file has the following:
Code:
gChannelBondingMode5GHz=1
gChannelBondingMode24GHz=[B][COLOR="Red"]0[/COLOR][/B]
The modded file by @RogerF81 enabled the 2.4GHz channel bonding as well:
Code:
gChannelBondingMode5GHz=1
gChannelBondingMode24GHz=[B][COLOR="Red"]1[/COLOR][/B]
 
  • Like
Reactions: RogerF81

RogerF81

Senior Member
Oct 14, 2015
1,936
1,388
143
Mannheim
5GHz channel bonding is enabled by default in the stock Pixel 2 wifi configuration file. The mod, additionally, enables 2.4GHz channel bonding as well.

In other words, by default, the stock Pixel 2 wifi configuration file has the following:
Code:
gChannelBondingMode5GHz=1
gChannelBondingMode24GHz=[B][COLOR="Red"]0[/COLOR][/B]
The modded file by @RogerF81 enabled the 2.4GHz channel bonding as well:
Code:
gChannelBondingMode5GHz=1
gChannelBondingMode24GHz=[B][COLOR="Red"]1[/COLOR][/B]
Exactly :)
 

RogerF81

Senior Member
Oct 14, 2015
1,936
1,388
143
Mannheim
Update!

So I have a new updated for my modded version!

Changelog from v1 to v2:
  • Changed gMaxConcurrentActiveSessions from 3 to 2
  • Enable GreenAp
  • Enable TCP Segmentation Offload
  • Disable gEnableFlowSteering - as 0 is the 'default' value, although Google has set it it to 1...
  • Set gScanAgingTime from 30 to 20
 

Attachments

shadowstep

Forum Moderator
Staff member
Jun 6, 2014
4,292
8,105
263
30
Ambala
Update!

So I have a new updated for my modded version!

Changelog from v1 to v2:
  • Changed gMaxConcurrentActiveSessions from 3 to 2
  • Enable GreenAp
  • Enable TCP Segmentation Offload
  • Disable gEnableFlowSteering - as 0 is the 'default' value, although Google has set it it to 1...
  • Set gScanAgingTime from 30 to 20
Thanks for the update! Already replaced the config file manually via root explorer, rebooted and haven't noticed with any issues with WiFi yet. :good:
 

MrPhilo

Senior Member
Dec 12, 2010
2,016
646
183
Sheffield
Update!

So I have a new updated for my modded version!

Changelog from v1 to v2:
Changed gMaxConcurrentActiveSessions from 3 to 2
Enable GreenAp
Enable TCP Segmentation Offload
Disable gEnableFlowSteering - as 0 is the 'default' value, although Google has set it it to 1...
Set gScanAgingTime from 30 to 20
Can you possible do this for Nougat?
 
  • Like
Reactions: BruceLetto

shadowstep

Forum Moderator
Staff member
Jun 6, 2014
4,292
8,105
263
30
Ambala
@RogerF81 I just figured that even though I have been using your modded config file, the changes have pretty much been irrelevant for me. I use Flash Kernel and while going through the kernel's source, I found out that @nathanchance ships Pixel 2's stock Wi-Fi config file along with the kernel which auto binds itself to the system at the post-fs stage during boot (assuming that the bind mount fires in time, of course). Therefore, even though I've been replacing the stock config file with your modded config file at /system/vendor/etc/wifi, the system has been pretty much been using the stock file that ships with the kernel. :p

As a workaround, I've now replaced the config file that @nathanchance ships with his kernel with your modded config file, so that instead of the Pixel 2's stock config file, the kernel binds your modded config file for me during the post-fs stage. I'll be running that setup for a while, and if anything comes up (even though highly unlikely), I'll give you a heads up. :)
 

RogerF81

Senior Member
Oct 14, 2015
1,936
1,388
143
Mannheim
I used Pixel2Oreo_WiFi_MOD_v2
Hmm ok, I only could advice you to try the stock version then. If this doesn't work either, then this mod isn't compatible for you.

@RogerF81 I just figured that even though I have been using your modded config file, the changes have pretty much been irrelevant for me. I use Flash Kernel and while going through the kernel's source, I found out that @nathanchance ships Pixel 2's stock Wi-Fi config file along with the kernel which auto binds itself to the system at the post-fs stage during boot (assuming that the bind mount fires in time, of course). Therefore, even though I've been replacing the stock config file with your modded config file at /system/vendor/etc/wifi, the system has been pretty much been using the stock file that ships with the kernel. :p

As a workaround, I've now replaced the config file that @nathanchance ships with his kernel with your modded config file, so that instead of the Pixel 2's stock config file, the kernel binds your modded config file for me during the post-fs stage. I'll be running that setup for a while, and if anything comes up (even though highly unlikely), I'll give you a heads up. :)
Yeah I read this in nathan's thread as well. Thanks for the heads-up though! :)
 
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone