libera/#maemo-leste/ Saturday, 2021-07-17

freemangordon1Wizzup: yeah, no chanlog there08:02
stano_droid4: messages wlcore: Association completed.11:30
stano_omap-mcbsp 40124000.mcbsp: CLKS: could not clk-get() prcm_fck11:30
stano_oh it eventually connected, nvm11:31
stano_greets - (droid4) is the battery-charging indicator always showing charging for anyone else?13:21
Wizzuplooks like the wl1251 did get some fixes since our kernel, but none seem to relate13:32
stano_now it stopped always showing charging 0_o13:36
stano_maybe because i'm in a long compile13:37
WizzupPali: ping14:07
PaliWizzup: pong14:07
Wizzuplooking at the scan problem in wl1251, where on nl80211 the wpa_supplicant scan requests get EINVAL, PaulFertser from #linux-wireless suggested to add wl->hw->wiphy->max_scan_ie_len to wl125114:08
WizzupI am looking at wlcore and it does set that, but it has a constant like htis: #define WL1271_CMD_TEMPL_MAX_SIZE  51214:08
Wizzupany idea where I could find the max command template length for wl1251?14:08
PaliI have no idea what this template length is14:09
Wizzup(looking at wlcore for an other driver that seems very similar)14:09
Wizzupme neither :)14:09
Palianyway, in past when I debugged wl1251 kernel driver I was looking into TI SDK driver for wl1251, so maybe it would be again14:10
Wizzupok14:10
Paliwl1251 is marked as "TI WiLink 4.0"14:11
Palisomewhere on internet was TI driver for this WiLink 414:11
PaliI will try to find it14:12
Wizzupbtw, this change makes wl80211 scanning work properly:14:19
Wizzupit's probably not a correct fix:14:19
Wizzup        wl->hw->wiphy->max_scan_ssids = 1;14:19
Wizzup+       wl->hw->wiphy->max_scan_ie_len = 512;14:19
Wizzup        wl->hw->wiphy->bands[NL80211_BAND_2GHZ] = &wl1251_band_2ghz;14:19
Wizzupheh I wrote wl80211 , that should be nl8021114:20
Wizzupfreemangordon: I think that the hidden ap scan via connui doesn't work because of some perms problems14:33
Wizzup   string "Rejected send message, 2 matched rules; type="method_call", sender=":1.28" (uid=1000 pid=2714 comm="/usr/bin/osso-connectivity-ui-conndlgs            ") interface="fi.w1.wpa_supplicant1.Interface" member="Scan" error name="(unset)" requested_reply="0" destination="fi.w1.wpa_supplicant1" (uid=0 pid=2791 comm="/sbin/wpa_supplicant -s -P /run/wpa_supplicant.wla")"14:33
Wizzupfreemangordon: after I added user to the policy, it works !14:35
Wizzupfreemangordon: did you change /etc/dbus-1/system.d/wpa_supplicant.conf at all for conndlgs ?14:42
Wizzupparazyd: should user be group netdev?14:42
WizzupI think it should be14:43
Wizzupdebian says:14:43
Wizzupnetdev: Members of this group can manage network interfaces through the network manager and wicd.14:43
Wizzupnetdev would allow user to issue dbus calls to wpa_supplicant14:45
parazydI thought wpa_supplicant uses wheel for control interface14:47
PaliWizzup: here is "original" TI SDK driver for wl1251: https://android.googlesource.com/platform/system/wlan/ti/+/refs/heads/master14:52
Paliheader files in this driver contains documentation of RPC commands supported by wl1251 firmware14:53
Paliand IIRC it is the only public documentation for wl1251 firmware14:53
Wizzupparazyd: this is about dbus14:54
Wizzupparazyd: and it is visible in /etc/dbus-1/system.d/wpa_supplicant.conf14:54
WizzupPali: ty14:54
PaliWiLink 4 = wl1251; WiLink 6 = wl27114:54
WizzupPali: I think I've actually gotten a "proper" fix now, but will compare with that driver :)14:54
Pali6 = wl127114:55
parazydWizzup: Then I guess we should14:55
Paliand these firmware shares lot of common commands14:55
parazydWizzup: Please make a ticket if you don't want to do it now (it's in hildon-base)14:55
Wizzupparazyd: I don't mind modifying the groups now14:55
Wizzuplet me test it14:55
parazydhttps://github.com/maemo-leste/hildon-base/blob/master/debian/postinst14:56
Wizzupparazyd: yeah have it open already :)14:56
parazydNote that it currently doesn't do anything if the user exists14:56
parazydSo you'll need an additional stance14:56
Wizzuphm14:56
parazydgpasswd -a || true14:56
parazydWill work14:56
Wizzupis there a reason not to just always go passwd ?14:57
parazydNot really14:57
parazydI just didn't want to modify existing user14:57
Wizzupany reason not to do it now?14:57
parazydNo14:57
parazydJust do it only for _appending_ groups14:57
Wizzupok14:57
Wizzupyeah, check14:57
Wizzupparazyd: I am not going to add || true14:58
Wizzupsince:14:58
Wizzup# gpasswd -a merlijn wheel14:58
WizzupAdding user merlijn to group wheel14:58
Wizzup# echo $?14:58
Wizzup014:58
Wizzup(I was already in wheel)14:58
parazydAh alright14:59
parazydWasn't sure that's the case14:59
parazyd(returning 0)15:00
Palihere is that firmware API / RPC documentation file: https://android.googlesource.com/platform/system/wlan/ti/+/refs/heads/master/sta_dk_4_0_4_32/common/src/hal/FirmwareApi/public_infoele.h15:00
Paliseems that their firmware RPC API shares some structures with old TI ACX100/110 wifi chips15:03
sicelonice info @Pali15:04
PaliWizzup, freemangordon: maybe you can write some reply to n900 u-boot email?15:05
WizzupPali: I am not sure what to reply, I don't think I can do it now or any time soon, but maybe we can find some timeline where we can agree it is doable by one of us15:06
Wizzupparazyd: pushed to hildon-base and building for maemo/beowulf-devel15:09
parazydAwesome15:09
uvosnice work Wizzup @ wl125115:13
Wizzupuvos: it was mostly someone else guiding me, but yeah15:14
uvosto me sitting on the sidelines mabye setting wl->hw->wiphy->max_scan_ie_len to some random value thats ignored later looks a bit wierd15:14
uvosmaybe i would be better wlcore manged this case better somehow15:15
Wizzups/wlcore/wl125115:15
Wizzup/15:15
uvosbut idk15:15
uvosok15:15
Wizzupas I understand it, the EINVAL doesn't even come from wl1251, it comes from layer before it15:15
uvoswlcore15:15
uvosno?15:15
WizzupI don't think so, it's not loaded on n90015:15
WizzupI think wl1251 is standalone, whereas on d4 the wlcore and others are loaded15:16
Wizzupiiuc15:16
uvoswl1251 isent a wlcore dirver15:16
uvosok15:16
Wizzupwlcore *does* set this value15:16
uvostil15:16
uvosok15:16
uvosWizzup: so everything should work now? and we are using the command interface of wpa now, not dbus?15:21
uvosif so ill go around testing the current code on the divices i have15:22
WizzupI need to build fixed kernel and push out some stuff to -devel15:22
Wizzupso maybe wait just a bit15:22
uvosok when you do ill try xt875/wl1271, n900 wl1251 and d4's wl1285c15:23
uvosparticulary i assume no one has tried the new code on wl1271 at all...15:23
Wizzupwhat 'new code'?15:24
uvosall changes since the start of you working on hidden aps15:24
WizzupI tested on the d4, not the bionic15:24
uvosright15:24
Wizzupuvos: if you want to test, now on -devel you can test wifi for the devices that are not the n90015:31
Wizzupwell, wait, no15:32
Wizzupuvos: yeah, wait, I need to revert back to libwpa_client once this n900 kernel builds15:34
freemangordonWizzup: yes, I changed the policy, but IIRC we agreed that 'user' will be netdev member17:16
Wizzupfreemangordon: ok, that didn't happen yet, but I did it now17:16
Wizzupfreemangordon: on n900 hidden ap stuff works fine now :)17:17
freemangordongreat!17:17
freemangordonwext?17:17
Wizzupnl8021117:17
freemangordonor you fixed the driver17:17
freemangordonnice17:17
siceloyay17:17
stano_does this fix losing wifi and all access points disappearing on droid4?17:41
stano_is there a script to restart wifi driver without rebooting?17:41
Wizzupuvos: I think early next week I'd like to toy a bit with one of the tablets, or the droid 3, see how far I can come, anything you can recommend?17:58
WizzupI know tony was working on display driver for one of them17:58
uvosWizzup: the d3 might be easier as the only real problem it should have judging by a breif look at its bord source and teardown images is bootstraping the thing, as it shares the pannel and everything else with the bionic18:00
uvosWizzup: the tablets (all of them) have a dsi->lvds bridge chip that isent working for unkown reasons, tony was/is working on that.18:00
freemangordonWizzup: https://github.com/maemo-leste/osso-abook/commit/d524b942918420044348923264229db762e82031 :)18:01
Wizzupfreemangordon: amazing, great :)18:02
Wizzupuvos: d3 sounds like fun18:04
uvosright so for d3 i would to look around on xda for the safestrap files and install that, then modify a bionic dts so the memory map ends lower, force cmdline to something and then use mkbootimg to build a boot.img for it and try and boot that18:05
uvosif that fails you have to diff the board src for android 2.3 between targa and solana18:06
uvossince solana never got 4.0 or 4.118:06
uvosif it works you can build kexec.ko for the soloana kernel and then clown boot should be a possibility18:07
Wizzupok18:09
parazydWhat's solana?18:18
parazyd(Because https://solana.com/ :p )18:19
uvosthe droid 3's codename18:19
parazydah18:20
uvoslooks like Hashcode (main mapphone los dev) had solana booting the newest motorola kernel see mapphone_solana_phablet_defconfig in the los kernel and the memory map is just 512 MB starting at 0x8000000018:29
Wizzupuvos: looks like this mirror is still avail https://mega.nz/folder/dJ4TSbrC#s5zdH-HtDCITKg2xoYS_qQ18:58
uvosWizzup: any luck with that?21:59
Wizzupuvos: no, didn't do much beyond finding the files yet23:22
WizzupI might need to root it first23:26
Wizzupthere is also https://docs.google.com/document/d/1suBx1DH7jWmHeM0mDerIStodDSgVAeQXxSkaLPlBAAw/edit#23:27
stano_ppsspp was working. now it not working. :/ http://0x0.st/-VXd.mp423:45
stano_must continue fighting, like hero23:46
Wizzupuvos: latest libicd-network-wpasupplicant is now in -devel23:54
uvosWizzup: great23:59
uvosbit late to test now but will try on monday23:59
uvosyes you must root first to install safestrap23:59

Generated by irclog2html.py 2.17.0 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!