#!/bin/sh
# Fix5G-MIPS.sh
# Edit the first two entries to reflect
# the original values in the CFE
# If it doesn't clear the stuck 5G after
# the reboot, follow up with a factory reset
nvram set regulation_domain=EU
nvram set regulation_domain_5G=EU
nvram set wl0_reg_mode=off
nvram set wl1_reg_mode=off
nvram unset pci/1/1/ccode
nvram unset pci/1/1/regrev
nvram unset pci/2/1/ccode
nvram unset pci/2/1/regrev
nvram unset wl0_country
nvram unset wl0_country_code
nvram unset wl0_country_rev
nvram unset wl1_country
nvram unset wl1_country_code
nvram unset wl1_country_rev
nvram unset wl_country
nvram unset wl_country_code
nvram unset wl_country_rev
nvram unset wl_reg_mode
nvram commit && reboot