• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!

[OFFICIAL] LineageOS 18.1 for the Nexus 7 (2013, Wi-Fi) - Repartition Only (flox)

Search This thread

osm0sis

Senior Recognized Developer / Contributor
Mar 14, 2012
14,813
33,482
Halifax
GT-i9250
Nexus 7 (2013)
Anybody have any tricks/ideas/leads for getting WPA3-Personal and WPA2-PSK/WPA3-SAE Mixed Mode working on this old thing?

My Nexus 7 2013 was the only actively in-use device on my 5 GHz network that couldn't at least handle Mixed Mode, so I dropped it down to my 2.4 GHz hidden SSID which I left at WPA2-PSK for legacy devices.

@npjohnson Here are relevant logcat and dmesg from trying to connect to a valid WPA2-PSK/WPA3-SAE Mixed Mode network (i.e. all my other current devices work, including my wife's finicky old MacBook Pro) in case it helps fix:

logcat:
Code:
D/WifiNl80211Manager(  574): Scan result ready event
D/WifiNative(  574): Scan result ready event
W/wificond(  404): Copy constructor is only used for unit tests
W/wificond(  404): Failed to get NL80211_ATTR_EXT_FEATURES
W/wificond(  404): Copy constructor is only used for unit tests
W/wificond(  404): Failed to get NL80211_ATTR_EXT_FEATURES
W/wificond(  404): Copy constructor is only used for unit tests
W/wificond(  404): Failed to get NL80211_ATTR_EXT_FEATURES
W/wificond(  404): Copy constructor is only used for unit tests
W/wificond(  404): Failed to get NL80211_ATTR_EXT_FEATURES
D/WifiClientModeImpl(  574): CMD_START_CONNECT  my state DisconnectedState nid=2 roam=false
W/LastMileLogger(  574): Failed to open free_buffer pseudo-file: /sys/kernel/debug/tracing/instances/wifi/free_buffer: open failed: ENOENT (No such file or directory)
W/LastMileLogger(  574): Failed to arm fail-safe.
I/WifiClientModeImpl(  574): Connecting with [*redacted*] as the mac address
E/wificond(  404): Received error messsage: Operation not supported on transport endpoint
E/wificond(  404): NL80211_CMD_ABORT_SCAN failed
W/wificond(  404): Abort scan failed
D/SupplicantStaIfaceHal(  574): connectToNetwork "[*redacted*]"WPA_PSK
D/SupplicantStaIfaceHal(  574): Network is already saved, will not trigger remove and add operation.
I/WifiService(  574): connect uid=10156
D/WifiConfigManager(  574): Enable disabled network: "[*redacted*]" num=0
E/WifiPermissionsUtil(  574): isDeviceOwner: packageName is null, returning false
D/WifiConfigStore(  574): Writing to stores completed in 14 ms.
D/WifiClientModeImpl(  574): connectToUserSelectNetwork netId 2, uid 10156, forceReconnect = false
I/WifiClientModeImpl(  574): connectToUserSelectNetwork already connecting/connected=2
D/WifiNl80211Manager(  574): Scan result ready event
I/wpa_supplicant(  813): wlan0: Trying to associate with SSID '[*redacted*]'
D/WifiNative(  574): Scan result ready event
I/wpa_supplicant(  813): wlan0: Association request to the driver failed
E/wlan    (    0): [813:E :HDD] wlan_hdd_set_akm_suite: Unsupported key mgmt type 1027078
E/wlan    (    0): [813:E :HDD] wlan_hdd_cfg80211_set_privacy: failed to set akm suite
E/wlan    (    0): [813:E :HDD] wlan_hdd_cfg80211_connect: failed to set security params
D/WifiClientModeImpl(  574): CMD_START_CONNECT  my state DisconnectedState nid=2 roam=false
W/LastMileLogger(  574): Failed to open free_buffer pseudo-file: /sys/kernel/debug/tracing/instances/wifi/free_buffer: open failed: ENOENT (No such file or directory)
W/LastMileLogger(  574): Failed to arm fail-safe.

dmesg:
Code:
[57628.922302] wlan: [404:E :HDD] wlan_hdd_get_station_stats: SME timeout while retrieving statistics
[57629.684722] cfg80211: Calling CRDA to update world regulatory domain
[57629.685150] ieee80211 phy0: info: cfg80211 reg_notifier callback for country 00
[57629.685180] ieee80211 phy0: country: WS set by driver
[57629.685180] cfg80211: World regulatory domain updated:
[57629.685241] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
[57629.685363] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[57629.685455] cfg80211:   (2457000 KHz - 2482000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[57629.685577] cfg80211:   (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
[57629.685638] cfg80211:   (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[57629.685729] cfg80211:   (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[57629.686096] ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[57630.045806] wlan: [796:E :SME] csrNeighborRoamIndicateDisconnect: 3742: Disconnect indication on session 0 in state 2
[57630.046020] wlan: [796:E :TL ]  ----> CRegion 0, hRSSI -47, Alpha 5
[57630.046203] wlan: [796:E :TL ]  ----> CRegion 0, hRSSI -47, Alpha 5
[57630.046661] wlan: [796:E :HDD] hdd_tdlsStatusUpdate: DEL_ALL_TDLS_PEER_IND staIdx 0 00:00:00:00:00:00 
[57630.046661] 
[57630.047668] wlan: [796:E :PE ] limDeactivateAndChangeTimer: 1438: Deactivated probe after hb timer
[57630.047790] wlan: [796:E :PE ] limSendDisassocCnf: 3511: FT Preauth Session (de760000,0) Cleanup
[57630.059570] wlan: disconnected
[57630.059661] wlan(0) 00:00:00:00:00:00 Standalone
[57630.068084] wlan: [813:E :HDD] wlan_hdd_set_akm_suite: Unsupported key mgmt type 1027078
[57630.068267] wlan: [813:E :HDD] wlan_hdd_cfg80211_set_privacy: failed to set akm suite
[57630.068359] wlan: [813:E :HDD] wlan_hdd_cfg80211_connect: failed to set security params
[57630.134124] wlan: [813:E :HDD] wlan_hdd_set_akm_suite: Unsupported key mgmt type 1027078
[57630.134216] wlan: [813:E :HDD] wlan_hdd_cfg80211_set_privacy: failed to set akm suite
[57630.134338] wlan: [813:E :HDD] wlan_hdd_cfg80211_connect: failed to set security params

Can confirm the same issue on 20210920 stock Lineage kernel as well.
 
Last edited:

npjohnson

Recognized Developer
@npjohnson, any chance of adding any other tweaks from the EX Kernel base like GPU OC, etc.? The list from @kiraryu's last unofficial EX build (P.S. @kiraryu, where is the source hosted? And new security patches would be nice..) are as follows:

Code:
Flox kernel Changelog(2021/09/14):
Based on ElementalX-N7 kernel 3.4.113
Update to 2019-07-05 Kernel security patch level
Fix wifi driver to scan the hidden SSID
Remove BFQ I/O Scheduler,it causes kernel panic.
Set CFQ I/O Scheduler to Default when Magisk 23 is installed
Disable s2w by default when Magisk 23 is installed
Enable zram by default when Magisk 23 is installed
Fix wlan: RX Low resource when download large files
Disable 802.11d to prevents 5ghz wifi change to wrong crda country based on AP.
Update ext4 fs driver
Update fuse fs driver
Update msm crypto driver
Update sdcardfs fs driver from kernel 4.4
Fix install app with obb file on google play.
prima: add FragAttacks WiFi vulnerabilities patch
Disable Qualcomm Crypto accelerator to fix battery drain.

Also would you be able to add the Nexus Qualcomm Preview/Beta GPU firmware blobs?

I've kept them archived here: https://androidfilehost.com/?w=files&flid=312875

They have V145 firmware instead of the stock V127, and the last stable one for deb/flo from my (years of) testing was Adreno-Nexus7-MMB29Q from adreno_nexus_feb2016. After that they went buggy on N7, and of course Qualcomm ended up closing the Preview program before pushing any updated drivers to Google. The feb2016/MMB29Q N7 firmware is solid and increase benchmarks quite nicely last time I checked, for what that's worth, and made things smoother on all ROMs I've tried, including your current flox. 🤞


> Update to 2019-07-05 Kernel security patch level

Not sure what this means, if it's kernel ASB stuff, please push to gerrit, would love to merge it.

> Fix wifi driver to scan the hidden SSID

Point me at the commit

> Remove BFQ I/O Scheduler,it causes kernel panic.

Uhhh, what?

> Set CFQ I/O Scheduler to Default when Magisk 23 is installed

I mean, eh, schedulers can help but not sure which is better here

> Disable s2w by default when Magisk 23 is installed

No, this won't be enabled.

> Enable zram by default when Magisk 23 is installed

Push it to gerrit

> Fix wlan: RX Low resource when download large files
> Disable 802.11d to prevents 5ghz wifi change to wrong crda country based on AP.
> prima: add FragAttacks WiFi vulnerabilities patch
Show me the commits?

> Update ext4 fs driver
> Update fuse fs driver
> Update msm crypto driver
> Update sdcardfs fs driver from kernel 4.4
Probably not...

> Disable Qualcomm Crypto accelerator to fix battery drain.

Explain this one?

> Preview blobs - sorry, probably not - if we have a different device we want to kang from we /can/ but I'd want to see good reason to do so for sure.
 
  • Like
Reactions: ssauger and osm0sis

osm0sis

Senior Recognized Developer / Contributor
Mar 14, 2012
14,813
33,482
Halifax
GT-i9250
Nexus 7 (2013)
For all those commit questions we'll need @kiraryu to explain and/or link to the source. EX's GPU OC would be nice, should be in @flar2's original flo kernel source.

As for the V145 GPU blobs they came direct from Qualcomm to improve the N7 '13 just they never got around to release to stable before cancelling the preview program. They're well tested and the preview release I mentioned has been found to be the last one which was stable over long-term use. I can grab some benchmarks with/without for you if you like, what bench app is preferred nowadays on older hardware like this?
 
Last edited:

kiraryu

Senior Member
Sep 13, 2017
56
65
Anybody have any tricks/ideas/leads for getting WPA3-Personal and WPA2-PSK/WPA3-SAE Mixed Mode working on this old thing?

My Nexus 7 2013 was the only actively in-use device on my 5 GHz network that couldn't at least handle Mixed Mode, so I dropped it down to my 2.4 GHz hidden SSID which I left at WPA2-PSK for legacy devices.
You can try delete "/data/vendor/wifi/wpa/wpa_supplicant.conf",
and change "pmf=1" to "pmf=0" at "/vendor/etc/wifi/wpa_supplicant.conf" ,then reboot the device.
 
  • Like
Reactions: osm0sis

npjohnson

Recognized Developer
@npjohnson Here are relevant logcat and dmesg from trying to connect to a valid WPA2-PSK/WPA3-SAE Mixed Mode network (i.e. all my other current devices work, including my wife's finicky old MacBook Pro) in case it helps fix:

logcat:
Code:
D/WifiNl80211Manager(  574): Scan result ready event
D/WifiNative(  574): Scan result ready event
W/wificond(  404): Copy constructor is only used for unit tests
W/wificond(  404): Failed to get NL80211_ATTR_EXT_FEATURES
W/wificond(  404): Copy constructor is only used for unit tests
W/wificond(  404): Failed to get NL80211_ATTR_EXT_FEATURES
W/wificond(  404): Copy constructor is only used for unit tests
W/wificond(  404): Failed to get NL80211_ATTR_EXT_FEATURES
W/wificond(  404): Copy constructor is only used for unit tests
W/wificond(  404): Failed to get NL80211_ATTR_EXT_FEATURES
D/WifiClientModeImpl(  574): CMD_START_CONNECT  my state DisconnectedState nid=2 roam=false
W/LastMileLogger(  574): Failed to open free_buffer pseudo-file: /sys/kernel/debug/tracing/instances/wifi/free_buffer: open failed: ENOENT (No such file or directory)
W/LastMileLogger(  574): Failed to arm fail-safe.
I/WifiClientModeImpl(  574): Connecting with [*redacted*] as the mac address
E/wificond(  404): Received error messsage: Operation not supported on transport endpoint
E/wificond(  404): NL80211_CMD_ABORT_SCAN failed
W/wificond(  404): Abort scan failed
D/SupplicantStaIfaceHal(  574): connectToNetwork "[*redacted*]"WPA_PSK
D/SupplicantStaIfaceHal(  574): Network is already saved, will not trigger remove and add operation.
I/WifiService(  574): connect uid=10156
D/WifiConfigManager(  574): Enable disabled network: "[*redacted*]" num=0
E/WifiPermissionsUtil(  574): isDeviceOwner: packageName is null, returning false
D/WifiConfigStore(  574): Writing to stores completed in 14 ms.
D/WifiClientModeImpl(  574): connectToUserSelectNetwork netId 2, uid 10156, forceReconnect = false
I/WifiClientModeImpl(  574): connectToUserSelectNetwork already connecting/connected=2
D/WifiNl80211Manager(  574): Scan result ready event
I/wpa_supplicant(  813): wlan0: Trying to associate with SSID '[*redacted*]'
D/WifiNative(  574): Scan result ready event
I/wpa_supplicant(  813): wlan0: Association request to the driver failed
E/wlan    (    0): [813:E :HDD] wlan_hdd_set_akm_suite: Unsupported key mgmt type 1027078
E/wlan    (    0): [813:E :HDD] wlan_hdd_cfg80211_set_privacy: failed to set akm suite
E/wlan    (    0): [813:E :HDD] wlan_hdd_cfg80211_connect: failed to set security params
D/WifiClientModeImpl(  574): CMD_START_CONNECT  my state DisconnectedState nid=2 roam=false
W/LastMileLogger(  574): Failed to open free_buffer pseudo-file: /sys/kernel/debug/tracing/instances/wifi/free_buffer: open failed: ENOENT (No such file or directory)
W/LastMileLogger(  574): Failed to arm fail-safe.

dmesg:
Code:
[57628.922302] wlan: [404:E :HDD] wlan_hdd_get_station_stats: SME timeout while retrieving statistics
[57629.684722] cfg80211: Calling CRDA to update world regulatory domain
[57629.685150] ieee80211 phy0: info: cfg80211 reg_notifier callback for country 00
[57629.685180] ieee80211 phy0: country: WS set by driver
[57629.685180] cfg80211: World regulatory domain updated:
[57629.685241] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
[57629.685363] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[57629.685455] cfg80211:   (2457000 KHz - 2482000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[57629.685577] cfg80211:   (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
[57629.685638] cfg80211:   (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[57629.685729] cfg80211:   (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[57629.686096] ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[57630.045806] wlan: [796:E :SME] csrNeighborRoamIndicateDisconnect: 3742: Disconnect indication on session 0 in state 2
[57630.046020] wlan: [796:E :TL ]  ----> CRegion 0, hRSSI -47, Alpha 5
[57630.046203] wlan: [796:E :TL ]  ----> CRegion 0, hRSSI -47, Alpha 5
[57630.046661] wlan: [796:E :HDD] hdd_tdlsStatusUpdate: DEL_ALL_TDLS_PEER_IND staIdx 0 00:00:00:00:00:00
[57630.046661]
[57630.047668] wlan: [796:E :PE ] limDeactivateAndChangeTimer: 1438: Deactivated probe after hb timer
[57630.047790] wlan: [796:E :PE ] limSendDisassocCnf: 3511: FT Preauth Session (de760000,0) Cleanup
[57630.059570] wlan: disconnected
[57630.059661] wlan(0) 00:00:00:00:00:00 Standalone
[57630.068084] wlan: [813:E :HDD] wlan_hdd_set_akm_suite: Unsupported key mgmt type 1027078
[57630.068267] wlan: [813:E :HDD] wlan_hdd_cfg80211_set_privacy: failed to set akm suite
[57630.068359] wlan: [813:E :HDD] wlan_hdd_cfg80211_connect: failed to set security params
[57630.134124] wlan: [813:E :HDD] wlan_hdd_set_akm_suite: Unsupported key mgmt type 1027078
[57630.134216] wlan: [813:E :HDD] wlan_hdd_cfg80211_set_privacy: failed to set akm suite
[57630.134338] wlan: [813:E :HDD] wlan_hdd_cfg80211_connect: failed to set security params

Can confirm the same issue on 20210920 stock Lineage kernel as well.
Try reverting this by hand https://review.lineageos.org/c/LineageOS/android_device_asus_flox/+/296493

If this works pls let me know.
 
Last edited:
  • Like
Reactions: ssauger and osm0sis

osm0sis

Senior Recognized Developer / Contributor
Mar 14, 2012
14,813
33,482
Halifax
GT-i9250
Nexus 7 (2013)

osm0sis

Senior Recognized Developer / Contributor
Mar 14, 2012
14,813
33,482
Halifax
GT-i9250
Nexus 7 (2013)
Today I tried it can connect to WPA2/WPA3-Personal mixed mode without any changes on wpa_supplicant.conf.
Your router seems using WPA2-PSK with pmf/ieee80211w on WPA2/WPA3-Personal mixed mode.
I made it as legacy-forgiving as possible in OpenWrt, 802.11w optional for example, since my old desktop card couldn't handle it:
 

Attachments

  • Screenshot_20210929-131739.jpg
    Screenshot_20210929-131739.jpg
    545 KB · Views: 32

Wasuhz

Senior Member
Mar 20, 2013
829
152
Are there alternative mirror download links? I'm showing 3 days for the download Have been trying for a couple of days. Have stopped and restarted many times

Edit: Not sure why my provider or host is throttling download, but switched to vpn and downloaded fast. Nevermind
 
  • Like
Reactions: MastNi

npjohnson

Recognized Developer
Are there alternative mirror download links? I'm showing 3 days for the download Have been trying for a couple of days. Have stopped and restarted many times

Edit: Not sure why my provider or host is throttling download, but switched to vpn and downloaded fast. Nevermind
something's definitely up with your connection throttling wise - we have worldwide mirrors.
 

BLewis4050

Member
Apr 18, 2014
40
13
I installed the recent 2021.10.11 build, and most apps and such are working fine, but I'm not getting sensor data. Anyone have similar experience?
I came across several posts suggesting a possible link to the use of Magisk. So I reinstalled the Lineage OS ROM and OpenGAPPS without Magisk -- and the sensors came back!
Next I added Magisk after the fact, and the sensors remain working!
 

frankusb

Senior Member
Mar 8, 2011
286
156
I came across several posts suggesting a possible link to the use of Magisk. So I reinstalled the Lineage OS ROM and OpenGAPPS without Magisk -- and the sensors came back!
Next I added Magisk after the fact, and the sensors remain working!
FWIW, I lost some sensors and I've never installed Magisk. My problem was resolved by reseating the cable that connects the sensors to the motherboard. There is a youtube video that shows how to do this.
 

WhiteWidows

Senior Member
Jul 27, 2009
835
240
Is the nexus 7 only able to enable 2.4ghz hotspot? Seems it unable to be changed in the hotspot settings to 5ghz (greyed out). Or is it just because of this rom? Only asking as I'm using it with Headunit Reloaded to run android auto.
 

Top Liked Posts