[Bug 276562] iwlwifi: connection issues and causes reboot
- In reply to: bugzilla-noreply_a_freebsd.org: "[Bug 276562] iwlwifi: connection issues and causes reboot"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 08 Feb 2024 15:03:28 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=276562 Cheng Cui <cc@FreeBSD.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |cc@FreeBSD.org --- Comment #9 from Cheng Cui <cc@FreeBSD.org> --- (In reply to Chris Hutchinson from comment #8) Hi Chris, I used the following script to workaround the `service netif restart` panic. Hope you will find help. #!/bin/sh NUM_INPUT=$# display_usage() { echo "This script only supports two input arguments." echo -e "\nUsage:\n$0 <mode> <channel>\n" } # check whether user had supplied -h or --help. If yes display usage if [ "$1" = "help" -o "$1" = "-h" ]; then display_usage exit 0 fi # if other than two arguments supplied, display usage if [ $NUM_INPUT -ne 2 ]; then display_usage exit 1 fi MOD=$1 CHN=$2 echo "working on bring up the wlan0 and testing 802.$MOD channel $CHN" kldunload if_iwlwifi && sleep 1 kldload if_iwlwifi && sleep 1 if [ "$MOD" = "11b" -o "$MOD" = "11g" ]; then wpa_passphrase "SSID" "****" > /etc/wpa_supplicant.conf ifconfig wlan0 create wlandev iwlwifi0 regdomain fcc country US ssid SSID mode $MOD channel $CHN elif [ "$MOD" = "11a" ]; then wpa_passphrase "SSID" "****" > /etc/wpa_supplicant.conf ifconfig wlan0 create wlandev iwlwifi0 regdomain fcc country US ssid SSID mode $MOD channel $CHN fi sleep 1 ifconfig wlan0 up && sleep 1 ifconfig wlan0 scan && sleep 1 wpa_supplicant -B -i wlan0 -c /etc/wpa_supplicant.conf && sleep 2 dhclient wlan0 && sleep 2 echo "test done!" -- You are receiving this mail because: You are the assignee for the bug.