diff --git a/package/network/config/wifi-scripts/files-ucode/lib/netifd/wireless/mac80211.sh b/package/network/config/wifi-scripts/files-ucode/lib/netifd/wireless/mac80211.sh index d278f89518d..96cd0d0fc37 100755 --- a/package/network/config/wifi-scripts/files-ucode/lib/netifd/wireless/mac80211.sh +++ b/package/network/config/wifi-scripts/files-ucode/lib/netifd/wireless/mac80211.sh @@ -198,9 +198,9 @@ function setup_phy(phy, config, data) { system(`iw phy ${phy} set txpower ${config.txpower}`); if (config.frag) - system(`iw phy ${phy} set frag ${frag}`); + system(`iw phy ${phy} set frag ${config.frag}`); if (config.rts) - system(`iw phy ${phy} set rts ${rts}`); + system(`iw phy ${phy} set rts ${config.rts}`); } function iw_htmode(config) {