Skip to content

Commit

Permalink
Adjusting Wireless Management Mode Settings
Browse files Browse the repository at this point in the history
  • Loading branch information
ophub committed Jan 28, 2022
1 parent 4e15a1a commit 2645fd4
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion make
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,6 @@ EOF
# Add wireless master mode
wireless_mac80211="lib/netifd/wireless/mac80211.sh"
[ -f "${wireless_mac80211}" ] && {
sed -i "s|ip link |ipconfig link |g" ${wireless_mac80211}
sed -i "s|iw |ipconfig |g" ${wireless_mac80211}
}

Expand Down

3 comments on commit 2645fd4

@zakeru46
Copy link

@zakeru46 zakeru46 commented on 2645fd4 Jan 28, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why are you delete line 424? are you replacing all ipconfig with iw? there are some lines that should call ip commands rather than iw after looking closely ytd.

@ophub
Copy link
Owner Author

@ophub ophub commented on 2645fd4 Jan 28, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why are you delete line 424? are you replacing all ipconfig with iw? there are some lines that should call ip commands rather than iw after looking closely ytd.

Do you have any modification plan, you can share

@zakeru46
Copy link

@zakeru46 zakeru46 commented on 2645fd4 Jan 28, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unfortunately i'm not well versed with sed commands. is that line you deleted searching text contain ipconfig link with exact match then replacing with ip link? if that case, then it's correct imo. because i manually modified my script like that, except i'm using text editor directly in my router. also, before i manually modified, i tried replacing the script with mainline openwrt, resulting radio couldn't turn on at all. digging bit deeper, i notice that netifd, wifi or mac80211 (/lib/netifd/wireless/mac80211.sh, i dont remember exactly which file it is, but definitely one of them) calls a mac80211.sh with 2kb file-size inside /lib/netifd/. quick look inside that file appears it contain method mapping mac80211 device (unstandard/workaround with path? i'm not sure tho).

Please sign in to comment.