nexmonster / nexmon_csi

Channel State Information for Raspberry Pi. Use the pi-5.10.92 branch.
https://github.com/nexmonster/nexmon_csi/tree/pi-5.10.92
60 stars 26 forks source link

I can't use wifi after firmware patch #42

Closed sangeun-jo closed 1 year ago

sangeun-jo commented 1 year ago

I can caputre CSI but I cant use wifi. Is it normal?
If I want to use wifi again, should I format SD card?

zeroby0 commented 1 year ago

Yes it's normal. Use ethernet to access it instead.

Formatting the card will work, but if you installed using https://github.com/nexmonster/nexmon_csi_bin, downloading https://github.com/nexmonster/nexmon_csi_bin/blob/main/uninstall.sh and running it will also restore original firmware.

All you really need to do is

sangeun-jo commented 1 year ago

I need wifi for transfering captured data wirelessly. I don't want to install and uninstall firmware per each task. Any other way to reuse wifi more simply? I want to reuse wifi immediately after turn off monitor mode without rebooting or reinstalling.

I didn't understand that part on your install.sh script.

setStatus "Removing wpasupplicant"
apt remove wpasupplicant -y
echo "denyinterfaces wlan0" >> /etc/dhcpcd.conf

I think pkill wpa_supplicant is enough before installing firmware. Please give advice if I miss something.

zeroby0 commented 1 year ago

Copying the original firmware, running depmod, installing and enabling wpa_supplicant should immediately restore wifi functionality without needing a restart.

I haven't experimented with just pkill ing wpa_supplicant instead of uninstalling it. If it works for you, please let us know.

sangeun-jo commented 1 year ago

I recoverd wifi.

cp "$PWD/original/brcmfmac43455-sdio.bin" "/lib/firmware/brcm/brcmfmac43455-sdio.bin" //It was really needed
cp "$PWD/original/brcmfmac.ko" "$(modinfo brcmfmac -n)"
depmod -a
apt install -y wpasupplicant
systemctl enable --now wpa_supplicant