Skip to content
Snippets Groups Projects
Commit d56ffa5a authored by Janusz Dziedzic's avatar Janusz Dziedzic
Browse files

brcm63xx: mac80211.sh add up/down logs

parent 2599814d
No related branches found
No related tags found
1 merge request!331brcm63xx: mac80211.sh add up/down logs
......@@ -1286,6 +1286,8 @@ mac80211_setup_vif() {
return
}
logger -t mac80211 "mac80211_setup_vif $mode $ifname"
set_default vif_txpower "$txpower"
#[ -z "$vif_txpower" ] || iw dev "$ifname" set txpower fixed "${vif_txpower%%.*}00"
......@@ -1348,6 +1350,7 @@ mac80211_interface_cleanup() {
local phy="$1"
for wdev in $(list_phy_interfaces "$phy"); do
logger -t mac80211 "mac80211_interface_cleanup $wdev"
ip link set dev "$wdev" down 2>/dev/null
iw dev "$wdev" del
......@@ -1398,6 +1401,8 @@ drv_mac80211_setup() {
return 1
}
logger -t mac8011 "mac80211_setup $phy"
phyidx=$(echo "$phy" | sed 's/\(phy\)\([0-9]*\)/\2/g')
phyiface=$(iw dev | grep phy#${phyidx} -A1 | grep Interface | cut -d' ' -f2 | cut -d. -f1)
......@@ -1510,6 +1515,7 @@ drv_mac80211_setup() {
for_each_interface "sta" mac80211_prepare_vif
[ -n "$hostapd_ctrl" ] && {
logger -t mac80211 "start hostapd for radio $phy"
/usr/sbin/hostapd -s -P /var/run/wifi-$phy.pid -B "$hostapd_conf_file"
ret="$?"
cnt=0
......@@ -1591,6 +1597,7 @@ drv_mac80211_teardown() {
json_get_vars phy
json_select ..
logger -t mac80211 "mac80211_teadown $phy"
mac80211_interface_cleanup "$phy"
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment