Signed-off-by: Jeroen Oudshoorn <oudshoorn.jeroen@gmail.com>

Signed-off-by: Jeroen Oudshoorn <oudshoorn.jeroen@gmail.com>
This commit is contained in:
Jeroen Oudshoorn
2023-09-01 10:07:46 +02:00
parent ed23c5db27
commit 6fb39b0861

View File

@ -37,6 +37,7 @@ reload_brcm() {
# starts mon0 # starts mon0
start_monitor_interface() { start_monitor_interface() {
rfkill unblock all rfkill unblock all
iw dev wlan0 set power_save off
ifconfig wlan0 up ifconfig wlan0 up
iw phy `iw dev wlan0 info | gawk '/wiphy/ {printf "phy" $2}'` interface add wlan0mon type monitor iw phy `iw dev wlan0 info | gawk '/wiphy/ {printf "phy" $2}'` interface add wlan0mon type monitor
ifconfig wlan0 down && ifconfig wlan0mon up ifconfig wlan0 down && ifconfig wlan0mon up
@ -44,7 +45,8 @@ start_monitor_interface() {
# stops mon0 # stops mon0
stop_monitor_interface() { stop_monitor_interface() {
airmon-ng stop wlan0 ifconfig wlan0mon down && iw dev wlan0mon del
ifconfig wlan0 up
} }
# returns 0 if the specificed network interface is up # returns 0 if the specificed network interface is up