Skip to content

Commit

Permalink
bcm43xx-utils: Fix WIFI availablily check for SPEAR-MX8
Browse files Browse the repository at this point in the history
For now assume WIFI is always available on SPEAR-MX8.
The test will be tuned once we can read SPEAR-MX8 EEPROM from Linux.
  • Loading branch information
Felix Radensky committed Oct 3, 2019
1 parent f486635 commit 2f60e52
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,11 @@ wifi_down()
# Return true if SOM has WIFI module assembled
wifi_is_available()
{
# For now assume WIFI is available on SPEAR-MX8
if grep -q SPEAR-MX8 /sys/devices/soc0/machine
return 0
fi

# Read SOM options EEPROM field
opt=$(i2cget -f -y 0x0 0x52 0x20)

Expand Down

0 comments on commit 2f60e52

Please sign in to comment.