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/
Using adb logcat
you'll find the following error each time you attempt to connect.
...: WPA: Failed to configure IGTK to the driver