<hurricos>
Internal photos if you'd like to take them. I am wondering what type of NOR is used, and the FCC page still has confidentiality for internal photos (https://fccid.io/SWX-U6LITE)
<hurricos>
If it's an 8-pin or 16-pin SOIC it is very likely that the fastest exploit will be to simply be to reflash U-Boot. Since it's an MT7621AT I don't believe it has any sort of on-chip bootloader like Qualcomm's IPQ series.
<hurricos>
The same is true of all new Ubiquiti Nanostation Locos -- you need to reflash using a Pomona 16-pin clip.
<hurricos>
I do see newer 256Mb SPI NOR coming in the 16-pin form factor which is promising.
<hurricos>
But seriously. A MT7915 in an affordable device with PoE capability is an absolute dream.
nlowe has quit [Quit: Leaving]
<hurricos>
I did not read the compatible closely enough. It is a mx25l25635f which is a 16-pin clippable chip. Great!
black_ant has quit [Ping timeout: 256 seconds]
Tost has quit [Ping timeout: 260 seconds]
danitool has quit [Quit: Cubum autem in duos cubos, aut quadratoquadratum in duos quadratoquadratos]
dorf_ has joined #openwrt-devel
dorf has quit [Remote host closed the connection]
Tapper has quit [Ping timeout: 240 seconds]
dwmw2_gone has quit [Ping timeout: 260 seconds]
hbug___ has joined #openwrt-devel
dwmw2_gone has joined #openwrt-devel
hbug__ has quit [Ping timeout: 240 seconds]
victhor has quit [Remote host closed the connection]
Misanthr- has joined #openwrt-devel
Misanthropos has quit [Ping timeout: 272 seconds]
Misanthr- is now known as Misanthropos
dorf_ has quit [Remote host closed the connection]
hbug___ has quit [Remote host closed the connection]
hbug___ has joined #openwrt-devel
Misanthropos has quit [Ping timeout: 260 seconds]
dangole has quit [Ping timeout: 272 seconds]
Misanthropos has joined #openwrt-devel
tobleminer-tSYS has quit [Quit: AS4242423214]
tobleminer-tSYS has joined #openwrt-devel
dwmw2_gone has quit [Ping timeout: 260 seconds]
dwmw2_gone has joined #openwrt-devel
goliath has quit [Quit: SIGSEGV]
kontaxis_ has joined #openwrt-devel
kontaxis_ is now known as kontaxis
kontaxis has quit [Client Quit]
kontaxis has joined #openwrt-devel
kontaxis has quit [Quit: leaving]
kontaxis has joined #openwrt-devel
black_ant has joined #openwrt-devel
black_ant has quit [Changing host]
black_ant has joined #openwrt-devel
rsalvaterra1 has joined #openwrt-devel
rsalvaterra has quit [Ping timeout: 265 seconds]
black_ant has quit [Quit: simplicity does not kill]
gch98121332894 has quit [Read error: Connection reset by peer]
gch98121332894 has joined #openwrt-devel
lmore377_ has quit [Remote host closed the connection]
lmore377 has joined #openwrt-devel
black_ant has joined #openwrt-devel
black_ant has joined #openwrt-devel
black_ant has quit [Changing host]
gch981213328949 has joined #openwrt-devel
gch98121332894 has quit [Ping timeout: 240 seconds]
gch981213328949 is now known as gch98121332894
dwmw2_gone has quit [Ping timeout: 260 seconds]
dwmw2_gone has joined #openwrt-devel
Tapper has joined #openwrt-devel
dedeckeh has joined #openwrt-devel
rmilecki has joined #openwrt-devel
valku has quit [Quit: valku]
aliceussr has joined #openwrt-devel
opal has quit [Remote host closed the connection]
opal has joined #openwrt-devel
nitroshift has joined #openwrt-devel
dwmw2_gone has quit [Ping timeout: 260 seconds]
<aliceussr>
Hello, comrades! Please help me! My script not work in cron job. Who help me? My script for cron job is: https://pastebin.com/wFbjE3rP
dwmw2_gone has joined #openwrt-devel
nitroshift has quit [Remote host closed the connection]
Tapper has quit [Ping timeout: 256 seconds]
nitroshift has joined #openwrt-devel
<russell-->
aliceussr: what happens with you run the script by hand?
<russell-->
normal script debugging technique would be to sprinkle "echo <string>" commands to get an idea where it's going wrong
<aliceussr>
russell--: It works manually!
<aliceussr>
russell--: I know it. But there is no cron debugging option in OpenWRT!
<aliceussr>
russell--: This debug not work for me.
<aliceussr>
russell--: I use right environment from OpenWRT system in crontab and my script.
poljar1 has quit [Remote host closed the connection]
poljar1 has joined #openwrt-devel
<aliceussr>
Hello, comrades! Please help me! My script not work in cron job. Who help me? My script for cron job is: https://pastebin.com/wFbjE3rP
Tapper has quit [Ping timeout: 256 seconds]
Borromini has joined #openwrt-devel
Tapper has joined #openwrt-devel
dwmw2_gone has quit [Ping timeout: 260 seconds]
dwmw2_gone has joined #openwrt-devel
dwmw2_gone has quit [Ping timeout: 260 seconds]
eduardas has joined #openwrt-devel
dwmw2_gone has joined #openwrt-devel
rsalvaterra1 has quit [Quit: Leaving.]
rsalvaterra has joined #openwrt-devel
ivanich has joined #openwrt-devel
Tapper has quit [Ping timeout: 240 seconds]
<aliceussr>
Hello, comrades! Please help me! My script not work in cron job. Who help me? My script for cron job is: https://pastebin.cowFbjE3rP
<aliceussr>
Hello, comrades! Please help me! My script not work in cron job. Who help me? My script for cron job is: https://pastebin.com/wFbjE3rP
<SwedeMike>
aliceussr: stop spamming the same repeated line.
dwmw2_gone has quit [Ping timeout: 260 seconds]
<hgl>
Currently, fw3 seems to translate a WAN port forwarding rule as something like this: -i pppoe-wan --dport 123 -j DNAT --to-destination <LAN ip>. This has the undesired effect of also doing DNAT for a roadwarrior's internet connections, if a VPN server happens to run on the router. I tried specifying an external ip for the WAN zone in the port forward rule, but found out the ip was recorded statically. It stops working once WAN ip changes.
<SwedeMike>
aliceussr: "does not work" isn't a fault description.
Strykar has quit [Quit: /quit]
<hgl>
Any way to ask fw3 to resolve the WAN ip? It already does so for reflection rules.
dwmw2_gone has joined #openwrt-devel
Strykar has joined #openwrt-devel
Strykar has quit [Excess Flood]
<Borromini>
i have a question about the board_name variable. octeon target still uses 'codenames' like 'er' for EdgeRouter, 'erlite' for EdgeRouter Lite. However, EdgeRouter 4 (a more recent addition) is a readable 'edgerouter-4'. Is there a specific reason to use the er/erlite ones? can I replace them with edgerouter/edgerouter-lite?
Strykar has joined #openwrt-devel
<mangix>
Borromini: probably
<mangix>
there aren't many octeon devices so not much development
<Borromini>
mangix: yeah, i read that
Tapper has joined #openwrt-devel
<Borromini>
at first sight though it looks more like loose ends (and less conventions at the time when the boards got added)
<aliceussr>
SwedeMike: I cannot with debug cron task in OpenWRT.
<Borromini>
mangix: e.g. board_name is prefixed with vendor almost everywhere now (e.g. ubnt,edgerouter-4) but octeon has very few of those. Just the new Itus stuff and the EdgeRouter 4, which got added recently
<SwedeMike>
aliceussr: 08:34 < russell--> normal script debugging technique would be to sprinkle "echo <string>" commands to get an idea where it's going wrong
<mangix>
Borromini: yeah. the other stuff wasn't added recently :)
<mangix>
propose a PR if it bothers yuou
<mangix>
*you
<Borromini>
mangix: working on it, was testing the waters :)
<aliceussr>
SwedeMike: What information do you need? My environment variables are set correctly, all files are present.
ivanich has quit [Ping timeout: 246 seconds]
<Borromini>
testing on my edgerouter lite :)
<SwedeMike>
aliceussr: I am trying to help you help yourself. I put in "echo "something" >> /tmp/mydebugfile.txt and try to figure out where it's going wrong.
Tost has joined #openwrt-devel
<aliceussr>
SwedeMike: Where to insert it?
<Borromini>
aliceussr: at any point where you are performing an action
<Borromini>
'doing $this now'
<Borromini>
then see how far it gets
<aliceussr>
Borromini: My script in the console manually works fine. It doesn't work only in cron! My script work in cron Linux, not work only in OpenWRT!
<Borromini>
openwrt is ash, make sure it's POSIX compliant
<SwedeMike>
aliceussr: start by adding a ">> /tmp/cronlog.txt 2>&1" at the end of the crontab line, and see what the output is
<karlp>
I mean, you try and run bash, do you have bash installed at least?
ivanich has joined #openwrt-devel
<aliceussr>
SwedeMike: 29 12 * * * /root/develop.sh >> /sd/backup/site/backup.log I have this line in crontab - it`s not work!
<karlp>
does it work from the command line _on openwrt_ ?
<karlp>
ie, do you have bash actually installed in your openwrt system?
<SwedeMike>
aliceussr: "doesn't work" is not a fault report. You have to provide more information than saying "it doesn't work"
<aliceussr>
karlp: I've tried both bash and sh and ash. The result is the same: manually script works in cron does not work!
<karlp>
ok, I'm done :)
<aliceussr>
Yes it works from the command line in OpenWRT, but doesn't work in cron OpenWRT 07.19.5.
<aliceussr>
SwedeMike: Go to Mommy, Troll!
<aliceussr>
I, here, think what kind of idiots do you develop firmware for some devices and then they upload their junk to your official repositories!
<SwedeMike>
me too, he just wrote some weird shit to me in #openwrt after I called him out for spamming the same line there whilst we were helping him here.
<aliceussr>
Go to your fagots!
<rsalvaterra>
…
<aliceussr>
*HOSPITAL*
<aliceussr>
If you could help, you would ask technical questions about my working environment in OpenWRT and find out other technical details. And so, you are trolls and fagots, not apostates!
<hgl>
i tend to treat this as a sign that the community is now pretty big.
Tapper has quit [Ping timeout: 264 seconds]
<rsalvaterra>
The price of popularity? :P
<aliceussr>
Hello, comrades! Please help me! My script not work in cron job. Who help me? My script for cron job is: https://pastebin.com/wFbjE3rP
<hgl>
yeah, also true for all kinds of issue trackers :)
gch981213328940 has joined #openwrt-devel
dwmw2_gone has quit [Ping timeout: 260 seconds]
gch98121332894 has quit [Ping timeout: 264 seconds]
gch981213328940 is now known as gch98121332894
dwmw2_gone has joined #openwrt-devel
<russell-->
lol
Tapper has joined #openwrt-devel
<Borromini>
who has ops in this channel...
<aliceussr>
.!..
<jow>
aliceussr: your script cannot work because the interpreter line is wrong
<jow>
"#!/bin/bash /etc/rc.common" will execute /etc/rc.common and nothing else
<jow>
since your script declares none of the prcoedures (start(), boot() etc.) expected by rc.common, it'll end up doing nothing
<jow>
the reason why it work when running manually is because you likely invoked it as "sh /root/develop.sh" and not simply "/root/develop.sh"
xes_ has joined #openwrt-devel
<jow>
apart from that, there's no /bin/bash on openwrt by default
<jow>
so you might want to change it to "#!/bin/sh"
xes has quit [Ping timeout: 264 seconds]
<aliceussr>
jow: I have bash in my OpenWRT. And script work right by hands. Not work only in cron OpenWRT.
<jow>
how do you invoke it exactly when you test it by hand?
<jow>
as "bash /root/develop.sh" or as "/root/develop.sh" ?
<aliceussr>
jow: I try change to "#!/bin/sh", is result: work hands, not work in cron!
<jow>
you added it to /var/spool/crontabs/root ?
<jow>
correction, /etc/crontabs/root
<aliceussr>
jow: /root/develop.sh
victhor has joined #openwrt-devel
<jow>
did you restart crond after adding the cron entry to /etc/crontabs/root or at least reboot once?
<jow>
by defualt, cron is not started if no cron entries exist, to save resources
<jow>
also is cron even attempting to execute your script? check "logread | grep crond"
<jow>
should print lines such as "Fri Jan 8 09:55:00 2021 cron.err crond[2813]: USER root pid 26817 cmd /root/develop.sh"
<aliceussr>
jow: /etc/crontabs/root - cron run this job, not run script!
<aliceussr>
It`s not work in OpenWRT 19.07.5
<aliceussr>
I'm not an idiot, I reloaded everything.
<jow>
the cron entry is supposed to run daily at 13:07
<jow>
how did you test that it does not work?
<jow>
so you mean it didn't run yesterday?
<aliceussr>
pidof crond 7870
<aliceussr>
jow: In `logread | grep crond` not shows a line like /root/develop.sh
<aliceussr>
jow: My time is 13.23 Moscow (UTC +3) not 10:06:35!
<russell-->
fwiw, my cronjobs run fine
<aliceussr>
jow: Ask the OpenWRT developers this question: why their web gui (luci) time does not match the time when using the data (System) command?
<russell-->
uci show system.@system[0].timezone
<aliceussr>
russell--: .!..
<aliceussr>
I will try changing the time to UTC 0.
Tapper has quit [Ping timeout: 240 seconds]
<aliceussr>
jow: Big sorry! In Web Luci i have time UTC 0, i change it`s to Moscow time.
<russell-->
for testing you might want to use something like this so it fires more often: */5 * * * *
<aliceussr>
jow: Please wait, i testing.
MichaelOF has joined #openwrt-devel
<jow>
aliceussr: sorry, I had a phone call
<jow>
what russell-- said
<jow>
also in the line you quoted "07 13 * * * /root/develop.sh > >/tmp/debug.log 2>&1"
<jow>
there's a small syntax error
<jow>
it should be ">>" not "> >"
MichaelOF has quit [Client Quit]
Tapper has joined #openwrt-devel
<aliceussr>
jow: Fri Jan 8 13:37:00 2021 cron.info crond[8299]: USER root pid 8307 cmd /root/develop.sh > /tmp/debug.log 2>&1
<jow>
that looks good, so at least it attempts to run your script
<jow>
anything in /tmp/debug.log ?
<aliceussr>
jow: Problem solved! Probles is complex. Big thanks for you! It is a pity that I can not send you tinctures of Russian moonshine on oak bark - better than brandy!
<aliceussr>
jow: Yes! I known!
gch981213328945 has joined #openwrt-devel
<aliceussr>
My script is already working, I can see it: the archives are downloading! Hurrah!
gch98121332894 has quit [Ping timeout: 264 seconds]
gch981213328945 is now known as gch98121332894
<russell-->
aliceussr: i credit the insults for getting results
<aliceussr>
jow: The problem was complex: i change crontab file (add SHELL, PATH, MAIL), i change to "#! /Bin/sh" in script and add PATH to my script.
<aliceussr>
jow: You here? I have new small problem with run script in cron: can you please tell me how to increase its execution time? The script was interrupted and the files were not fully downloaded.
gch981213328940 has joined #openwrt-devel
gch98121332894 has quit [Ping timeout: 256 seconds]
gch981213328940 is now known as gch98121332894
<aliceussr>
Who here? I have new small problem with run script in cron: can you please tell me how to increase its execution time? The script was interrupted and the files were not fully downloaded.
<lynxis>
aliceussr: the script runs until it's done. the interruption must come from somewhere else. but be careful if you're script is running long (e.g. 5minutes) and you execute it every minute. so it will stack up.
csrf has joined #openwrt-devel
Borromini has quit [Ping timeout: 256 seconds]
gch98121332894 has quit [Quit: Ping timeout (120 seconds)]
gch98121332894 has joined #openwrt-devel
dwmw2_gone has quit [Ping timeout: 260 seconds]
<aliceussr>
lynxis: Thanks for the information. I think I found a solution to my problem using the timeout program from coreutils.
dwmw2_gone has joined #openwrt-devel
<aliceussr>
lynxis: I have a very slow download speed from the Internet, so my script takes a very long time.
<lynxis>
aliceussr: you could try `lock` to protect the script from running multiple times and also add a timeout to ensure it doesn't run too long. hope that helps
gch981213328940 has joined #openwrt-devel
gch98121332894 has quit [Read error: Connection reset by peer]
gch981213328940 is now known as gch98121332894
<Tapper>
Calling people Faggats should get you band!
Borromini has joined #openwrt-devel
<rmilecki>
hey guys, I wanted to start working on a new target
<rmilecki>
it won't be completely working yet
<rmilecki>
so I'll like to add it a and just comment out "BuildTarget" call
<rmilecki>
i hope it's OK?
Borromini has quit [Ping timeout: 256 seconds]
eduardas has quit [Ping timeout: 256 seconds]
eduardas has joined #openwrt-devel
dwmw2_gone has quit [Ping timeout: 260 seconds]
<lynxis>
rmilecki: can't you mark it as broken?
<rmilecki>
lynxis: can i? how?
<rmilecki>
lynxis: i thought only devices can have BROKEN := y
gch98121332894 has quit [Ping timeout: 240 seconds]
gch981213328947 is now known as gch98121332894
gromero has joined #openwrt-devel
adrianschmutzler has quit [Quit: ~ Trillian - www.trillian.im ~]
SpaceRat has quit [Quit: Domino .gx.]
gromero has quit [Client Quit]
gromero has joined #openwrt-devel
Acinonyx has quit [Ping timeout: 264 seconds]
Acinonyx_ has joined #openwrt-devel
aliceussr has quit [Ping timeout: 246 seconds]
MichaelOF has joined #openwrt-devel
<ynezz>
rmilecki: BTW if you add new device to the tree it's recommended (or rather required) to add information about this device in the commit message (hardware details, flashing details) so it can then be added by the documentation folks to openwrt.org/toh automagically
SpaceRat has joined #openwrt-devel
grift has joined #openwrt-devel
Tapper has quit [Ping timeout: 265 seconds]
Tapper has joined #openwrt-devel
shibboleth has joined #openwrt-devel
<shibboleth>
dangole, ping
<rmilecki>
ynezz: ah, more work, duplicating info from the .dts file ;)
<shibboleth>
seems psk2 works better than gcmp(-foo) with re to iwinfo
<dangole>
shibboleth: 'gcmp' has never been a valid option for 'encryption'. 'psk2+gcmp' should have worked with robimarko's patch before i made gcmp the default cipher on 11ad
<shibboleth>
nope, then it fails completely
<shibboleth>
at least two days ago, lemme retry
<shibboleth>
ok, now it works, but it failed completely before the reverted patches
<dangole>
shibboleth: what was changed now after the revert and committed again was unrelated to 11ad. Ansuel fixed some stuff in the channel analysis stuff in iwinfo which wasn't safe otherwise.
<shibboleth>
right, i've failed to bring up the ap with psk2+gcmp as late as wednesday, lemme look into what changed
<dangole>
shibboleth: but even more before, i also didn't understand fully how it was supposed to work with gcmp, hence i made it the default for 11ad and remote-tried with lynxis' pair of mikrotik devices
decke has quit [Quit: Leaving.]
gromero has quit [Quit: WeeChat 2.9]
gromero has joined #openwrt-devel
<shibboleth>
he has the wap60g?
<shibboleth>
txpowerlist would have been ridiculous had it been n/ac :)
<shibboleth>
40 dBm (10000 mW) <--- yeah, let's put that in the living-room :P
Misanthropos has quit [Ping timeout: 264 seconds]
<lynxis>
shibboleth: 2 wap60 v2, 3 wap60 v1. a friend also has wap60v3. i think wap60v2 has the newer chip (wil64xx?). unsure what v3 has
<shibboleth>
iirc that's the x3 and v2
<shibboleth>
been following the forum thread, the wap60g (especially the x3) would have made a *sweet* radar if the fw could be unlocked
blb4393 has joined #openwrt-devel
<shibboleth>
still, quite useful as a high-bw link. same goes for the lhgg60ad over distance
<lynxis>
shibboleth: a friend of mine has the 6 hap60g in production. he would like to replace routeros with openwrt.
<shibboleth>
would've been something wrong with him otherwise :)
<SpaceRat>
How many minutes does one hour have?
<SpaceRat>
I'm just asking because my Linksys shows this interface uptime:
<lynxis>
shibboleth: would be great if someone can take a look onto the borad files and decrpytion. i looked into the forum thread but would like to take a newer board file and decode it myself with the attached script. validating the seed woudl be great
<lynxis>
also the wil62xx drivers some work. ibss and 4addr need more investigation if both are possible. it looks promising. also high latency on "idle" links needs to be fixed. mikrotik did a patch which fixed that in recent build.
<shibboleth>
this used to happen for me sporadically until master as of last week or so
<jow>
nope, not helping
<shibboleth>
now i get some "variable not set"-something and i have to manually ifconfig wlanx down
<jow>
./mac80211.sh mac80211 setup radio0 {"config":{"channel":"1",...} is timing out
<jow>
the wireless handler is unable to reconfigure netifd
<shibboleth>
well, disable all the radios in config/wireless, run wifi
<shibboleth>
then ifconfig, are any of the wlan ifaces still up?
<shibboleth>
if so, ifconfig down
<shibboleth>
then restart wpad
<shibboleth>
and reenable the radios/ifaces, wifi
<shibboleth>
you could try wpad stop, start, ofc
<shibboleth>
is wpa_supplicant running?
<jow>
Fri Jan 8 16:56:37 2021 daemon.notice netifd: radio1 (8938): WARNING: Variable 'data' does not exist or is not an array/object
<shibboleth>
yup
<jow>
now stuff is not running because the ubus calls that instruct netifd to configure the radios are timing out
<shibboleth>
logread | grep crash
<shibboleth>
something about wpad?
<jow>
no
<jow>
wpad is never started
<shibboleth>
ok, and is /usr/sbin/wpa_supplicant running?
<shibboleth>
jow: for me the wpad restart used to work
<shibboleth>
until i figured it out i had to powercycle/reset to get back up
<shibboleth>
could be unrelated
<shibboleth>
i was getting some could not connect to something, something, wpa, crashes 79 times
<jow>
hostapd and supplicant both start, then eventually terminate
<shibboleth>
lynxis, with how the 11ad drivers require gcmp
<jow>
definitely some netifd bug apparently
<jow>
starting hostapd manually with the generated config makes things working instantly
<jow>
starting wpa_supplicant... boom kernel oops
<figgyc>
who's the maintainer for adding new devices to ramips? or should i just send it to the openwrt-devel mailing list. tried looking in some makefiles and couldnt find anything
<stintel>
there are no target maintainers anymore
<stintel>
just send to openwrt-devel
<jow>
dangole: found the reason for the broken LuCI signal reporting :)
<jow>
and mac80211-hwsim started working just fine ootb after qemu-system-x86-64 rebooted due to the kernel oops
dwmw2_gone has quit [Ping timeout: 260 seconds]
<jow>
to not delve into another yak shaving session I'll simply pretend that I didn't see those issues
dwmw2_gone has joined #openwrt-devel
Borromini has joined #openwrt-devel
Tapper has quit [Ping timeout: 240 seconds]
Tapper has joined #openwrt-devel
aliceussr has joined #openwrt-devel
aliceussr has left #openwrt-devel [#openwrt-devel]
<enyc>
jow: fun =)
gch981213328945 has joined #openwrt-devel
gch98121332894 has quit [Ping timeout: 260 seconds]
gromero has quit [Quit: WeeChat 2.9]
Ivan__83 has quit [Remote host closed the connection]
Tost has quit [Ping timeout: 256 seconds]
eduardas has quit [Quit: Konversation terminated!]
<dangole>
jow: nice you found it. i was getting desperate. i had no idea that rpcd-mod-luci is dlopen'ing iwinfo.so...
<dangole>
jow: to reproduce the issue you stated above, all i need to do is build for x86/64 with hwsim enabled and boot that with qemu?
<jow>
yep
<jow>
once I learned that mac80211-hwsim can do actual associations I started to really like it
<jow>
make phy0 an ap and phy1 a sta
<jow>
or do ap-sta on the first phy
<dangole>
jow: that's what i usually do for testing hostapd/wpa_supplicant before moving to real hardware :)
<jow>
regarding dlopen: yeah, its kind of a hack since I was too lazy building the C code to chain async calls to iwinfo via ubus within the luci rpcd plugin
aliceussr has joined #openwrt-devel
<jow>
but that would be the cleanest way
aliceussr has left #openwrt-devel ["Leaving."]
<jow>
basically there's a luci-rpc/getWirelessDevices call which is a proxy for network.wireless/status
<jow>
it returns the original network.wireless/status data but adds iwinfo details to each radio and network section
<dangole>
jow: regarding hwsim wpad crashing: you selected wpad-basic-wolfssl, i assume?
<jow>
I booted a snapshot off the website and opkg-installed mac80211-hwsim and wpad
<dangole>
dangole: ok, lemme do exactly that then
<jow>
that didn't really work well until the system crashed due to a reboot
<jow>
erm rebooted due to a crash
<jow>
afterwards everything just worked
<jow>
wI did restart netifd (/etc/init.d/network restart) after the opkg install stuff, theoretically that should be enough
<jow>
but apparently stuff was still in a wonky state
<jow>
mac80211.sh was stuck in "ubus wait_for hostapd" / "ubus wait_for wpa_supplicant"
<dangole>
jow: i see. i usually build with hwsim included from the start, maybe adding wifi phy dynamically didn't go well
<jow>
as if netifd failed to start the processes
<jow>
oh yes, I also did "wifi config" after opkg install to populate /etc/config/wireless
<dangole>
jow: maybe some ieee80211 hotplug handler making a mess, i'll see it in a minute
dwmw2_gone has quit [Quit: Coyote finally caught me]
<dangole>
jow: which changes did you make to /etc/config/wireless after running `wifi config`? because i did all that now and it worked. i obviously also had to put the station interface into another network, so i added that to /etc/config/network as well (with proto 'none').
<jow>
flipped disabled to 0, ecnryption to psk2, key to 98765432
<jow>
but maybe it was just a fluke. I mena if its working properly after a reboot then that is good enough for me
<jow>
opkg install sequence was opkg install mac80211 (acidentally) - thatp ulled iw-full hsotapd-common, cfg80211 etc.
<jow>
then opkg install mac80211-hwsim
<jow>
little bit of playing around
<jow>
eventually opkg install wpad
dwmw2_gone has joined #openwrt-devel
<rr123>
chrome remembers all my username/password on other sites, but not luci(master branch), is this because, luci's login is totally client-side-js-generated?
aliceussr has joined #openwrt-devel
aliceussr has left #openwrt-devel ["Leaving."]
<jow>
rr123: good question. In my case browsers insist on putting the login password into the wifi psk config field
<jow>
I think at some point we introduced hidden dummy password fields which are prefilled by the browser to not populate the actual config fields with garbage
<jow>
that probably has a negative effect on the login form though
<rr123>
i actually like the way to not let browser to remember certain site's password by design(so I don't need tell chrome), in this case i don't want my kid to get access to the router when i leave my computer without locking it
<rr123>
so he can never mess around with openwrt at mid-night for gaming, for example.
<rr123>
there is no way to hide passwowrd/wifi-psk-key/802.1x key as either the OS or the browser happily remember them so a walk-by can easily reveal them, nobody can remember lock up their screen all the time these days
<rr123>
so i want sites providing those no-autofill, no-autocomplete, always-input-password js-driven login form
<dangole>
rr123: some people use ubikey and such, and when they pull or remove it, that locks the session.
gch9812133289455 has joined #openwrt-devel
gch981213328945 has quit [Read error: Connection reset by peer]
gch9812133289455 is now known as gch981213328945
<rr123>
dangole: these days all are in the house, and i have more than 10 devices running, the only way to secure login is to make sure the browser won't remember my password is to make sure certain sites's form can never be remembered by design, like what luci does now(please don't fix that :) )
<rr123>
after certain time, the session times out, and you must relogin, and chrome/firefox can never remember your password, is what I want, i actually want to design the same login scheme to my site but i'm still learning js these days
<dangole>
rr123: in firefox it still offers to auto-generate and remember all password fields (login, password-change form, wifi key, ...) just checked
blb4393 has quit [Quit: ChatZilla 0.9.93 [Waterfox 56.3/MOZ_BUILDID]]
<rr123>
my firefox does not auto remember luci password, just the username part
<dangole>
rr123: and on the android device (also firefix) i'm quite thankful i don't need to type a long password to check whats happening on the router (eg. restart uqmi interface while driving the car...)
<dangole>
rr123: obviously, on Android other ways of permanently authenticating the browser/webapp are thinkable. i'm not into that at all, but i imagine it can be useful for some people.
<rr123>
dangole: agree for cellphones, then you can add a 'remember me' button to turn that on/off
<jow>
rr123: for luci we use an additional <input type="password"> before the actual password
<jow>
and hide that with CSS
<jow>
browser are smart enough to ignore fields with "display:none" but not yet smart enought to detect off-screen rendered fields (position absolute; left: -10000px)
<jow>
it's an uphill battle though
<rr123>
that's a nice trick, let's study that code
<rr123>
chrome will remember the form whenever it detect type password
<rr123>
i was thinking about use a type-text input and to let JS to hidden the alphanumerics(****) but that's too much
<rr123>
basically the js converts all inputs for this fake password input field to *****
<rr123>
the browser has no interest in remembering as it detects no password input type
<rr123>
jow: where is the left -10000px? could not find it in the css
adrianschmutzler has joined #openwrt-devel
<adrianschmutzler>
Borromini: are the changes introduced by the realtek macros safe?
<dangole>
jow: now that we are already breaking things, what about "iwinfo: add BSS load element to scan result"? would also be nice to have...
gch9812133289451 has joined #openwrt-devel
gch981213328945 has quit [Read error: Connection reset by peer]
gch9812133289451 is now known as gch981213328945
gch9812133289450 has joined #openwrt-devel
gch981213328945 has quit [Read error: Connection reset by peer]
gch9812133289450 is now known as gch981213328945
<karlp>
rr123: jow : is there any reason you could not just leave it to users to decide whether they want to remember passwords or not?
<karlp>
I mena, we _want_ to let that happen right? we're not trying to actively prevent it?
<rr123>
that's what 'remember me' button under password normally did
<rr123>
but these days the browser will store them anyways unless you exclusively disallow it, which many people won't bother
<karlp>
I still realllllllly want that to be left ot users, not have luci decide "we'r egoing to fight you to tyr and prevent you from ever saving the password"
<rr123>
i agree, as long as it can be selected, in my case, i don't want to certain sites including luci ever be stored by browser
gch9812133289453 has joined #openwrt-devel
gch981213328945 has quit [Ping timeout: 264 seconds]
gch9812133289453 is now known as gch981213328945
Ivan__83 has joined #openwrt-devel
gch981213328945 has quit [Read error: Connection reset by peer]
gch9812133289457 has joined #openwrt-devel
swex has quit [Quit: swex]
gch981213328945 has joined #openwrt-devel
linzst has joined #openwrt-devel
gch9812133289457 has quit [Ping timeout: 240 seconds]
shibboleth has joined #openwrt-devel
opal has quit [Ping timeout: 240 seconds]
opal has joined #openwrt-devel
Strykar has quit [Excess Flood]
opal has quit [Remote host closed the connection]
Strykar has joined #openwrt-devel
opal has joined #openwrt-devel
Borromini has joined #openwrt-devel
Borromini has left #openwrt-devel [#openwrt-devel]
samantaz has joined #openwrt-devel
black_ant has quit [Ping timeout: 260 seconds]
linzst has quit [Quit: Leaving]
<jow>
karlp: I too, but not if the consequence is bug reports about the browser resetting the wifi psk on every save operation because it sees a password field and incorrectly autocompletes nonensense then "leafing it to the users" is no choice
<jow>
*leaving
<jow>
once browsers start adhering to their own specs again (autocomplete=off, autocomplete=new-password and all the other funny non-features) then the workarounds could be dropped
gch9812133289458 has joined #openwrt-devel
gch981213328945 has quit [Read error: Connection reset by peer]
gch9812133289458 is now known as gch981213328945
ivanich has quit [Quit: Konversation terminated!]
dwmw2_gone has quit [Ping timeout: 240 seconds]
dedeckeh has quit [Remote host closed the connection]
dwmw2_gone has joined #openwrt-devel
rmilecki has quit [Ping timeout: 265 seconds]
opal has quit [Remote host closed the connection]
opal has joined #openwrt-devel
hbug___ has quit [Remote host closed the connection]