GUI: Scan SSID/BSSID improvement - #236
Conversation
wellloaded
commented
Mar 1, 2026
- basic+virtual: New SSID Scan function
- basic+virtual: New BSSID scan function
- basic+virtual: Rearranged options and adjusted indent
- basic+virtual: Hiding for certain Wireless Modes e.g. where Auto is required this is now hidden
- basic+virtual: New Shared Key [Random] option allowing different password length
- basic+virtual: Introduced some special characters in the [Random] generated password
- basic+virtual: WDS - renamed “Automatic” to “Open” and “Link With...” to “Restricted”
- virtual: Hide tabs whose interface is not enabled under Overview
- virtual: Added SSID name to the tabs
- virtual: Added frequencies (e.g. / 2.4 GHz) to virtual interfaces and tab names
- virtual: Added for Wireless Client to get/display/set the WANx bridge mapping of reference
- virtual: Removed for Wireless Client any reference to LANx under bridge
- virtual: Renamed "Enable interface" to simply "Enable"
- virtual: Security parameters are now fully hidden if Security = Disabled (like the basic network does)
|
|
Oh, one more: please do not use eval() when calling nvram until it's really necessary. |
b968cff to
e3dc89a
Compare
Let me check on this as soon as I have a couple of spare hours. |
- basic+virtual: New SSID Scan function - basic+virtual: New BSSID scan function - basic+virtual: Rearranged options and adjusted indent - basic+virtual: Hiding for certain Wireless Modes e.g. where Auto is required - basic+virtual: New Shared Key [Random] option allowing different password length - basic+virtual: Introduced some special characters in the [Random] generated password - basic+virtual: WDS - renamed Automatic to Open and Link With... to Restricted - virtual: Hide tabs whose interface is not enabled under Overview - virtual: Added SSID name to the tabs - virtual: Added frequencies (e.g. / 2.4 GHz) to virtual interfaces and tab names - virtual: Added for Wireless Client to get/display/set the WANx bridge mapping - virtual: Removed for Wireless Client any reference to LANx under bridge - virtual: Renamed Enable interface to simply Enable - virtual: Security parameters are now fully hidden if Security = Disabled - Fix: Random key generation now respects selected length - Fix: Clear option works correctly (clears field and error state) - Fix: Clear option added to basic-network dropdowns - Fix: Replaced eval() with bracket notation for nvram access in basic-network
|
@pedro0311 thanks for the testing/feedback.
|
|
BTW this is not a "heavy" change as such, and I believe a very useful one to have. I would push it down all the way to MIPS R1 |
|
@wellloaded Please limit the scope of your commits to one purpose. This advertises two different changes, Scanning and Password changes which are not related to each other. They shouldn't be in a single commit. Also many many changes not even related to either of these things. Please for all that is holy limit your changes to that one specific purpose. I'm looking at basic-network.asp and knowing this is going to be nightmare to merge downstream. All over the code base Why are these being left in for a pull request? This was done as well in advanced-vlan.asp which Pedro had to clean up later. These combined with all the random formatting changes are a nightmare for me to merge, and they have no place to be there. All these non-related changing muddy up the water when trying to use tools like git blame. You lose context when trying to see when and why a particular line of code was changed. I even like how the vlan page looks now, but I did not like how it got there. |
|
@lancethepants : please wait for my merge, I'll simplify it a bit. |
|
@wellloaded So these non-existent variables need to be added to nvram first, set the default value to "" in defaults.c, and only then use them in scripts, otherwise they won't even be even saved to nvram. All their uses in scripts and functions must be surrounded by "RTNPLUS-BEGIN/RTNPLUS-END". Unless I don't understand something here? |
|
@wellloaded : please note that I have already spent 3 weeks working on this commit, including creating a universal version of advanced-wlanvifs.asp that will allow the same commit to be applied to all branches. |
That page was on overhaul I guess that's why, but I get your point, and thanks for the feedback.
The VLAN page redesign was complex due to accumulated code modifications that broke the original logic. I'm referring to decades of external contributions. The marks (REMOVE-BEGIN/END) on overview, VLAN, and virtual wireless pages are intentional and not leftovers. They enable mount --bind for testing without full compilation. They auto-remove post-compilation or when conditions aren't met, as browsers can't parse raw markup. |
This PR, like the VLAN and Wireless Survery is also from few months ago. I'll have to work out what I did that, but in general I would not expect this commit to require new variables at all. The core logic of the page is to do the same things, hopefully better, with the same resources we have. |
You use this: It won't work because there is no |
|
P.S. Please start with my version of the patch, as it is adapted to the latest changes in advanced-wlanvifs.asp. |
|
Just uploaded updated version of 236.patch. |
|
OK, I need to split this PR/commit down into:
Unfortunately, the SSID/BSSID part doesn't work. I wanted to set up 'wireless client' using the VLAN page on my RT-N12U - see the inconsistencies in network <-> vlans - also on VLAN I should not be able to select WPA2 (only) in this mode for this router, only as it is on network - WPA/WPA2. |
It works here in local (on my RT-AC1900P) when you say it doesn't work what exactly? |
|
Password part added: 361e451
I can't test anything with the original patch, because all I have is js errors in console on RT-N12U because of lack of RTNPLUS-BEGIN/END stuff. |
|
Updated patch once more. |
|
@pedro0311 where can I find the latest version of this? I can have a look to finish it off after your latest modifications. |
|
The last one is still there: https://freshtomato.org/downloads/freshtomato-arm/2026/2026.1/TESTS/236.patch |



