Posted: Tue Jun 07, 2022 14:00 Post subject: how do i connect to a specific bssid(mac) using client mode?
my connection keeps reseting every 5 minutes as its not connecting to the main router, i have found few scripts over the internet but my router does not have "save custom script"
Joined: 08 May 2018 Posts: 14242 Location: Texas, USA
Posted: Tue Jun 07, 2022 15:16 Post subject:
@ho1Aetoo: Not present on 4MB flash devices. My guess is devices with < 8MB flash space don't have save custom and devices without a USB port don't have save usb features. I was trying to find blatant specific proof of this, but didn't find anything glaring at me. Many of the device configs are not updated in the public repositories.
If I recall right, the script(s) you mention require a cron job or something to keep things persistent. I don't think you can use MAC filtering on wireless to accomplish your goal. The only options are MAC filtering or trying to use the script in startup or firewall, but I have my doubts about either option working for you. _________________ "Life is but a fleeting moment, a vapor that vanishes quickly; All is vanity"
Contribute To DD-WRT Pogo - A minimal level of ability is expected and needed... DD-WRT Releases 2023 (PolitePol)
DD-WRT Releases 2023 (RSS Everything)
----------------------
Linux User #377467 counter.li.org / linuxcounter.net
no idea why this should be missing, the scripts in the command tab are stored in nvram and written to /tmp (RAM) at startup
So actually no question of flash memory
but maybe it is really stripped because it saves a few lines of code
Joined: 08 May 2018 Posts: 14242 Location: Texas, USA
Posted: Tue Jun 07, 2022 16:07 Post subject:
I didn't see any conditional compile ifdef or ifndef lines that stuck out in any of the associated files for the webUI, but github's UX/UI is sh*t compared to notepad++ or codelite to spot these things. _________________ "Life is but a fleeting moment, a vapor that vanishes quickly; All is vanity"
Contribute To DD-WRT Pogo - A minimal level of ability is expected and needed... DD-WRT Releases 2023 (PolitePol)
DD-WRT Releases 2023 (RSS Everything)
----------------------
Linux User #377467 counter.li.org / linuxcounter.net
first i blocked the router mac address on the AP's routers that i dont want it to connect to, then i added this code in Administrators > command, and saved as startup (this will reconnect till it finds internet access)
Code:
Sleep 60
while AP connected {
ping -c 1 8.8.8.8
if successful then break/quit
else
connect to next AP
Sleep 30
};
Joined: 24 Feb 2013 Posts: 1634 Location: Belgrade
Posted: Wed Jun 08, 2022 9:13 Post subject:
I am not sure if I understand you correct but you can do it from gui... On you ddwrt client router firstly set wifi pass (matching your "AP" router)... then in the bottom of the wifi info page (ddwrt client router) click "scan" button... select SSID you want to connect to and click "join"... if the password is correct you will get "successfully conected" note and will be transfered to wifi page where you can select "client" mode...
if connection keeps droping usually signal strenght is the problem... about scripts... you don't need them... ddwrt has watchdog/keep alive feature... it checks if there is connection loss and restarts unit or whatsoever...
No you can't, because it only stores the SSID but not the MAC.
This means that if you have multiple APs with the same SSID, it will connect to one AP but not the one you selected.
for this you have to enter the BSSID into the WPA supplicant
this could also work, theoretically this looks every 30sec if the BSSID entry is present
Code:
#!/bin/ash
while :
do
if grep -q bssid /tmp/wlan1_wpa_supplicant.conf;
then
sleep 30
else
sed -i $'/network={/a bssid=00:11:22:33:44:55' /tmp/wlan1_wpa_supplicant.conf
kill -HUP $(pidof "wpa_supplicant")
sleep 30
fi
done
In which custom config?
There is none...
Everything I have in the wireless security "custom config" definitely does not end up in the wpa_supplicant also no BSSID
this would be the easiest and a function that many have already requested