Skip to content

Commit

Permalink
Remove test code
Browse files Browse the repository at this point in the history
Signed-off-by: angela <[email protected]>
  • Loading branch information
angela-d committed Feb 17, 2021
1 parent 9b4eaf3 commit ef22181
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions channel-watch
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,6 @@ then
then
# redundant loop; merge with CHAN at some point
declare -a DETAILED=($(nmcli -f ssid,bssid,chan,bars dev wifi list | awk -v CHANNEL="$CHANNEL" -v ME="$ME" '$1 != ME && $3 == CHANNEL'))
# declare -a DETAILED=($(nmcli -f ssid,bssid,chan,bars dev wifi list | awk -v CHANNEL=$CHANNEL '$3 == CHANNEL'))

for NEIGHBOR in "${DETAILED[@]}"
do
Expand All @@ -109,8 +108,7 @@ then
# get the router manufacturer
BSSID=$(macsearch "$BSSID")
BARS="$(printf "%s" "$NEIGHBOR" | awk '{ print $4 }')"
# [[ $INTERNAL_CONN == "yes" ]] && AP_NAME=$(apsearch $BSSID) || AP_NAME=""
[[ $INTERNAL_CONN == "yes" ]] && AP_NAME="$(apsearch '55:51:11:22:23:33')\\n" || AP_NAME=""
[[ "$INTERNAL_CONN" == "yes" ]] && AP_NAME=$(apsearch "$BSSID") || AP_NAME=""

BSSID_DETAIL+="\\n$BARS $SSID - $BSSID\\n$AP_NAME"
done
Expand Down

0 comments on commit ef22181

Please sign in to comment.