This script will change the TX value of your Alfa Card
Some still seem to be struggling with the Alfa (RTL8187) Card
This is part of my network connect script but thought you might find it useful
put this code in a whatever.sh file
chmod +x
change the tx value to whatever you want ( I AM NOT RESPONSIBLE IF YOU BREAK YOUR CARD!!!! I don't set it above 30 myself)
run script
Max TX Value with this script is 30!
Code:#!/bin/bash set -x # (C)opyright 2010 Scamentology # This Script changes the TX Power for the Alfa Wireless card txpower_up="yes" # Raises TX Power for alfa Adapters txpower_value="30" # Value to raise alfa adapter to interface="$(airmon-ng | grep "RTL8187" | awk '{print $1}')" # "eth0" "wlan0" "wlan1" #__ Nothing To Change Below This Line _____________________________________________________________ #__ TX Power Increase for Alfa ____________________________________________________________________ if [ ! $interface ] ; then echo "Alfa Card Not Found" ; /usr/bin/notify-send "Alfa Card Not Found" ; exit 0 ; fi ifconfig $interface down ifconfig $interface up sleep 3 if [ $txpower_up == "yes" ] ; then alfa="$(airmon-ng | grep "RTL8187" | awk '{print $1}')" if [ "$alfa" == "$interface" ] ; then tx_status="$(iwconfig $interface | grep "Tx-Power" | awk '{print $4}')" if [ "$tx_status" == "Not-Associated" ] ; then tx_status="$(iwconfig $interface | grep "Tx-Power" | awk '{print $5}')" ; fi if [ "$tx_status" == "Tx-Power=$txpower_value" ] ; then /usr/bin/notify-send "$tx_status" else iw reg set BO iwconfig $interface TxPower $txpower_value tx_status="$(iwconfig $interface | grep "Tx-Power" | awk '{print $4}')" if [ "$tx_status" == "Not-Associated" ] ; then tx_status="$(iwconfig $interface | grep "Tx-Power" | awk '{print $5}')" ; fi if [ "$tx_status" == "Tx-Power=$txpower_value" ] ; then /usr/bin/notify-send "$tx_status" fi fi fi fi exit 0



