Changes between Version 39 and Version 40 of expansion/gw16146


Ignore:
Timestamp:
01/04/2024 01:43:53 AM (11 months ago)
Author:
Tim Harvey
Comment:

updates for v1.5 of the nrc7292 driver

Legend:

Unmodified
Added
Removed
Modified
  • expansion/gw16146

    v39 v40  
    283283After several seconds due to the timing of firmware loading you should see a new wlan device under /sys/class/net. To find the correct wlan interface that is bound to the NRC7292 driver:
    284284{{{#!bash
    285 WLAN="$(for i in $(ls -d /sys/class/net/wlan* 2>/dev/null); do if [ "$(basename $(readlink $i/device))" == "nrc80211" ]; then basename $i; fi; done)"
     285LINK=nrc80211 # for older v1.3 of the nrc7292 driver
     286LINK=spi$BUSNO.0 # for newer v1.5 of the nrc7292 driver
     287WLAN="$(for i in $(ls -d /sys/class/net/wlan* 2>/dev/null); do if [ "$(basename $(readlink $i/device))" == "$LINK" ]; then basename $i; fi; done)"
    286288echo $WLAN
    287289# wlan0
     
    439441 d. obtain the wlan device that is bound to the driver (note it takes several seconds after loading the driver module for the device to get registered due to firmware loading and timing) (Note that we save this in the WLAN env variable which will be used below)
    440442{{{#!bash
    441 WLAN="$(for i in $(ls -d /sys/class/net/wlan* 2>/dev/null); do if [ "$(basename $(readlink $i/device))" == "nrc80211" ]; then basename $i; fi; done)"
     443LINK=nrc80211 # for older v1.3 of the nrc7292 driver
     444LINK=spi$BUSNO.0 # for newer v1.5 of the nrc7292 driver
     445WLAN="$(for i in $(ls -d /sys/class/net/wlan* 2>/dev/null); do if [ "$(basename $(readlink $i/device))" == "$LINK" ]; then basename $i; fi; done)"
    442446echo $WLAN
    443447# wlan0