Skip to content

Commit

Permalink
package/wifibroadcast: add driver_txpower_override support & regd unl…
Browse files Browse the repository at this point in the history
…ock for rtl8812eu
  • Loading branch information
libc0607 committed Apr 4, 2024
1 parent c97eff0 commit fc59cdd
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions general/package/wifibroadcast/files/wifibroadcast
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ detect_wifi_card() {
;;

"0bda:a81a")
driver="realtek"
modprobe 8812eu
driver="realtek_8812eu"
modprobe 8812eu rtw_regd_src=1 rtw_tx_pwr_by_rate=0 rtw_tx_pwr_lmt_enable=0
;;

"0cf3:9271" | "040d:3801")
Expand Down Expand Up @@ -90,6 +90,10 @@ load_interface() {
if [ ${driver} = "realtek" ]; then
ifconfig ${wlan} up
iwconfig ${wlan} mode monitor
elif [ ${driver} = "realtek_8812eu" ]; then
ifconfig ${wlan} up
iwconfig ${wlan} mode monitor
iw dev ${wlan} set txpower fixed $(echo "${driver_txpower_override}*50"|bc)
elif [ ${driver} = "atheros" ]; then
iwconfig ${wlan} mode monitor
ifconfig ${wlan} up
Expand Down

0 comments on commit fc59cdd

Please sign in to comment.