Skip to content

Instantly share code, notes, and snippets.

@lucabelluccini
Last active February 11, 2024 17:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lucabelluccini/83ce22ed872c80190bfd2b0f4087f39d to your computer and use it in GitHub Desktop.
Save lucabelluccini/83ce22ed872c80190bfd2b0f4087f39d to your computer and use it in GitHub Desktop.
Nexus 7 2012 (ASUS, Grouper/Tilapia) might not be able to connect to wifi due to IGTK / Protected Management Frames

Overview

Nexus 7 2012 (ASUS, Grouper/Tilapia) might not be able to connect to wifi due to IGTK / Protected Management Frames. Thanks to the author of https://xdaforums.com/t/guide-rooting-nexus-7-2012-lollipop-5-simple-steps.3968405/

Errors / Symptom

Using adb logcat you'll find the following error each time you attempt to connect.

 ...: WPA: Failed to configure IGTK to the driver
 ...: RSN: Failed to configure IGTK

The connection will not be established, but there will be no error or warning.

Cause

According to several blogs online, the problem seems to be related to PMF or “Protected Management Frames”. Sources:

Checking the WPA Supplicant settings on the device, pmf is enabled (1)

Workaround

The procedure will require unlocking the bootloader.

  1. Download Android SDK platform tools, we'll need adb and fastboot.
  2. Download TWRP img, depending on the device you own: Wi-Fi grouper / 3G tilapia
  3. Boot into the bootloader by holding Power + Vol Down for about 10 secs
  4. Connect your device using a usb cable to your computer
  5. Execute this step only if it shows LOCK STATE - LOCKED. WARNING: the device will be factory reset! Run fastboot oem unlock
  6. Run fastboot boot path/to/twrp-recover.img to run TWRP without installing it
  7. Go in Mount and enable System
  8. Go in Advanced then Terminal. Then use busybox vi <FILE> to patch:
    • /data/misc/wifi/wpa_supplicant.conf setting pmf=0
    • /system/etc/wifi/wpa_supplicant.conf setting pmf=0
    • /system/build.prop setting ro.setupwizard.wifi_required=false (avoids mandatory wifi connection on initial setup)

Might be useful, but not mandatory for the workaround

  • Magisk for root access (latest version compatible with Android < 6): 25.2. Use adb push /path/to/Magisk-v25.2.apk /sdcard/magisk.zip then adb shell twrp install /sdcard/magisk.zip to install when using TWRP
  • F-Droid (latest version compatible with Android < 6): org.fdroid.fdroid_1015056.apk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment