Commit Graph

23 Commits

Author SHA1 Message Date
Willem Melching d898841e87 Change APN from settings (#22440)
* Change APN from settings

* subtext

* one function

* bring connection down and up

* fix adapter type

* trim input

* fix scrolling in scanning state

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2021-10-07 23:47:23 -07:00
sshane 6fad0055b4 UI: roaming toggle (#21750)
* roaming toggle

* clean up

* only tici

* fix order

* move to wifiManager

* should be working

* clean up

clean up

* use map icon

* move to advanced settings

* clean up

* temporarily change home-only

* keep setting for now

* set both to defaults in case ui doesn't start

* knownConnections stores conn names

* Revert "knownConnections stores conn names"

This reverts commit 4466a029a38f8c89876fad3c221e95e8fc572ded.

* save lteConnectionPath instead

* use the if statement

Co-authored-by: Comma Device <device@comma.ai>
2021-09-01 14:33:06 -07:00
sshane 1ada078857 networking: show correct strength for mesh networks (#21690)
* update seen network if higher strength

* keep in wifiManager

* more readable
2021-07-28 15:03:41 -07:00
sshane 905138054b networking: network type function (#21732)
* debug known connections

* print type

* on mobile if no wifi and a sim card

* clean up

* debug primary connection

* network type

* not specifying current suggests you can pass it a path

* debug

debug

Revert "debug"

This reverts commit fe4748aa4df77449e1887685aa958ae2b89b88d0.

hotspot check

This reverts commit 5d2fc5f3bba45c87af8322766e426e8adee64ead.

Revert "Revert "Revert "debug"""

This reverts commit 6115204d5013ae5d613add92c1dded7a8f5cadbc.

hotspot check

* fixes
2021-07-26 23:42:29 -07:00
sshane 0076dd3588 Update wifi setup design (#21604)
* wifi design draft

* ui draft 2

* draft

* updates

* fix spacing

* strength indicator

* font weight

* fix lock icon aspect ratio

* fix font weights

* new checkmark

* fix spacing

* was being applied to everything

* network handles its own padding

* fix spacing

* cleanup

* looks pretty good

* little more

* revert that

* scroll bar

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2021-07-15 17:41:01 -07:00
sshane cdc386d5bb networking: update on show (#21575)
* refresh on show event

* setup fix

* show scanning message if no networks nearby

* setup isn't ready in 1 second, use signal again

* clean up

* clean up

* Update selfdrive/ui/qt/offroad/networking.cc

* Update selfdrive/ui/qt/offroad/networking.cc

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2021-07-14 13:27:18 -07:00
sshane eb37e409ee networking: clean up refreshing (#21537) 2021-07-10 22:28:24 -07:00
sshane 648639787c Fix active AP (#21511)
* Revert "Qt logging through cloudlog (#21452)"

This reverts commit 54b6a9f121.

* set activeAp after scan so it's not blocking

* Revert "Revert "Qt logging through cloudlog (#21452)""

This reverts commit d9689a55057d53f7afe8e2ea28542eb80175a705.

* clean up

* move to another PR
2021-07-07 21:48:46 -07:00
Adeeb Shihadeh e773749f32 fix default tethering password 2021-07-06 19:33:08 -07:00
sshane f96b3cc597 Tethering: Edit password while enabled (#21457)
* restart tethering if password is edited

* fixes

* connect straight to WifiManager

* revert
2021-07-04 18:17:46 -07:00
sshane d2d1aaad08 Networking: use active AP signal (#21461)
* use active ap signal

* working
2021-07-02 13:30:42 -07:00
sshane 146973da7f Networking: populate tethering password (#21455)
* populate password from hotspot connection

move to setup()

populate tethering password

fix password editing

setup tethering when editing password or enabling

fix

* fixes

* last fix, don't activate when adding

* check before

* if not
2021-07-01 19:59:02 -07:00
sshane 07d3934996 Networking: refresh once in background (#21453)
clean up

move to setup()
2021-07-01 18:32:55 -07:00
sshane 4cdd26596e Networking: Use common header (#21456) 2021-07-01 15:33:51 -07:00
sshane 924e8d5c28 Wait for adapter to setup WifiManager (#21432)
* wait for adapter to initialize wifimanager

* clean up

* formatting

* don't try to use adapter when not available

* Revert "don't try to use adapter when not available"

This reverts commit 3887fc87ebfea2e8acc6b440b4c7a49b0feb1975.

* only tetheringEnabled for now

* request scan once adapter is up (prev behavior)

* populate introspection cache when we need it

populate introspection cache when we need it
2021-07-01 14:01:29 -07:00
sshane 01773c11f0 Quicker refreshing and use connection signals (#21408)
* Quicker refreshing and use connection signals

* Android remembers connections with incorrect passwords

* forget network on password incorrect

* knownConnections is already filled here
2021-06-28 13:26:24 -07:00
sshane cd5c931461 Support WPS with no security (#21372)
* Support WPA with no security

* clean up

* add logging
2021-06-23 14:53:11 -07:00
sshane a3a8fa9eac Scan for networks on UI init (#21310)
* refresh on UI init

* scan and wait for signal from networkmanager to update

* fixes incorrectPassword never triggering on known connections

* Update UI on connect state change

* pause timer on leaving networking

* no need to update adapter state on init

* uses AccessPoints signal

clean up

clean up

* Revert "uses AccessPoints signal"

This reverts commit 534219857a10dc200f979e1a66705ac13ca68698.

* perform non-blocking scan on first start only

* suggestions

* forgetNetwork already checks this

* Prevent double refresh on connect interaction and revert timer change

* Should fix nm is inactive error

* Revert "Should fix nm is inactive error"

This reverts commit 36a7ad098b713ae7e17cf1a8d717455ecdd29e2b.

* Fixup original timer code. could be cleaned up, but works

* use WifiManager's firstScan

* no more force!

* fix after rebase

fix after rebase

* scan for next update (seems clearer this way)

* see how responsive device is at scanning, PC is taking up to 15 seconds

* clean up and check ifVisible for scanning and UI updating

* explicitly define relationship since it's not called in Networking any more
2021-06-21 20:55:55 -07:00
sshane 290e9fb9f6 UI: forget button and security type icon (#21320)
* forget and security buttons first draft

* Text left margin closely matches other panels

* add lock label

* implement new icon

* actually add icon

rename

* smaller lock icon

smaller icon

* better
2021-06-18 21:14:26 -07:00
Dean Lee 2c6d27f482 Qt: cleanup includes (#21282)
* cleanup includes

* remove include <qtwidgets>

* more
2021-06-16 00:08:02 -07:00
ShaneSmiskol 305786f0da ui: remember previous connections (#21233)
* remember previous connections

* minor

* remove ssid_from_path

* abstract into function

* forgot one

* const

* add path_from_ssid function

* more clear what these do

* fix

* more clear

* structured binding test

* remove ssid_from_path

* fix name

* disconnect if connected

* let's just match the activate function in naming

* return if empty

* revert and clean up
2021-06-14 16:17:08 -07:00
Dean Lee ee46672d3c Passing arguments by reference (#21205) 2021-06-09 14:09:02 +02:00
Dean Lee 81491dc57f c++ cleanup: standardize file extensions to .cc and .h (#20800)
* c++ cleanup: standardize file extensions to .cc and .h

* cleanup files_common
2021-05-03 11:53:11 +02:00