Changes between Version 39 and Version 40 of expansion/gw16146
- Timestamp:
- 01/04/2024 01:43:53 AM (11 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
expansion/gw16146
v39 v40 283 283 After 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: 284 284 {{{#!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)" 285 LINK=nrc80211 # for older v1.3 of the nrc7292 driver 286 LINK=spi$BUSNO.0 # for newer v1.5 of the nrc7292 driver 287 WLAN="$(for i in $(ls -d /sys/class/net/wlan* 2>/dev/null); do if [ "$(basename $(readlink $i/device))" == "$LINK" ]; then basename $i; fi; done)" 286 288 echo $WLAN 287 289 # wlan0 … … 439 441 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) 440 442 {{{#!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)" 443 LINK=nrc80211 # for older v1.3 of the nrc7292 driver 444 LINK=spi$BUSNO.0 # for newer v1.5 of the nrc7292 driver 445 WLAN="$(for i in $(ls -d /sys/class/net/wlan* 2>/dev/null); do if [ "$(basename $(readlink $i/device))" == "$LINK" ]; then basename $i; fi; done)" 442 446 echo $WLAN 443 447 # wlan0