Commit Graph

56 Commits

Author SHA1 Message Date
Twinaphex
a83c328631 (Metal) Fix some build problems 2021-01-19 04:38:07 +01:00
David Guillen Fandos
ed7b3aa415 Add a proper WiFi menu, with Enable/Disable & Disconnect options
This also allows WiFi passwords to be remembered. The underlying
tool (connman) allows to store passswords (that's why it auto connects
whenever you boot a Lakka device), so we expose this so that the user
does not have to re-input the pass when connecting to a saved wifi.

Option to forget a password to come in a future PR, for now a password
is automatically forgotten if the Wifi connect operation fails (we assume
it fails due to password).

Changes the WiFi API to enable these features of course!
2020-12-09 20:20:48 +01:00
David Guillen Fandos
091f6e6354 Improving Wifi API and connman implementation
This sets the ground for more PRs to come. Clean up how scanning and listing
SSID works, and adds attributes to the newtworks.
Frontend will be able to know which networks are "remembered" and thus
require no password to re-connect.

For now scans are performed every 2 minutes or on demand if no networks found
(either for real or in the "cache").
2020-12-04 02:18:03 +01:00
David Guillen Fandos
2eb3b93a15 Fix fd leak in wifi status function 2020-12-03 16:38:34 +01:00
parport0
8b4e30073a (wifi drivers) Move driver info to userdata 2020-06-28 23:08:58 +03:00
twinaphex
2660182d52 Get rid of gfx_widgets_ready call inside
gfx_widgets_frame
2020-06-08 05:45:15 +02:00
twinaphex
376b62e8fa Cut down on more unnecessary strlens 2020-05-24 17:25:52 +02:00
twinaphex
ad1aa59ce1 Cleanup != NULL comparisons 2020-05-19 21:15:06 +02:00
twinaphex
8f65c2cf72 Settings updates 2020-03-06 03:10:55 +01:00
natinusala
f21412ab59 connmanctl: fix build 2020-02-23 12:02:11 +01:00
twinaphex
7c7d0f596a HAVE_MENU_WIDGETS now decoupled from HAVE_MENU 2020-02-17 21:28:42 +01:00
Tomas Kelemen (vudiq)
d5cd51644e connmanctl: display more chars from SSID 2020-02-17 15:57:16 +01:00
twinaphex
b00bf17153 Move menu_widgets to gfx/ and call it gfx_widgets 2020-02-17 01:54:07 +01:00
twinaphex
b229f267e4 Rename menu_widgets to gfx_widgets 2020-02-17 01:43:40 +01:00
twinaphex
789db436bb (conmanctl) Cleanups 2020-02-14 14:38:26 +01:00
twinaphex
a034909ae9 Cleanups 2020-01-30 16:35:59 +01:00
twinaphex
bbd1e6a6a5 Get rid of separate null midi driver file and display server file 2020-01-06 16:06:42 +01:00
twinaphex
cbe68cbf88 Turn the find_handle/find_ident functions static 2019-11-17 22:31:57 +01:00
Tomas Kelemen (vudiq)
7b4c4efd11 Wi-Fi Access Point in RetroArch Settings
Adds an option to start wireless access point directly from RetroArch
settings menu (Services submenu). This wireless access point can be then
used for local netplay. If not defined in a specific config file
(LAKKA_LOCALAP_PATH), the arbitrary values for SSID/PassKey of the
created access point are LakkaAccessPoint/RetroArch. The menu/option is
added only in case when compiling with HAVE_LAKKA.
2019-10-05 13:18:15 +02:00
twinaphex
20846796cd Cut down on some menu_widgets_ready calls 2019-08-15 13:12:15 +02:00
twinaphex
b62476da77 Revert "Turn wifi_driver_ctl into a static function"
This reverts commit 8a5ae0b6cf.
2019-06-18 22:18:11 +02:00
twinaphex
8a5ae0b6cf Turn wifi_driver_ctl into a static function 2019-06-18 22:14:34 +02:00
twinaphex
7bbd927946 Merge wifi_driver.c and retroarch.c 2019-06-17 19:28:28 +02:00
plaidman
c8d4aecf32 squelching benign error messages when invoking connman 2019-05-13 08:47:55 -04:00
twinaphex
712115ef9d (Wifi/Location/Camera) Get rid of 'own driver' mechanism 2019-02-27 17:02:33 +01:00
natinusala
c20ab3864d First version of menu widgets (gl only) 2019-02-06 20:48:24 +01:00
Twinaphex
fd11b205da Silence bunch of warnings 2018-06-21 07:52:01 +02:00
twinaphex
11f26ed549 Refactor verbosity code - try to avoid log calls if verbosity is not
set
2018-01-17 06:28:26 +01:00
gblues
6904101c44 Clean up trailing whitespace
== DETAILS

Really simple code cleanup, because my editor flags trailing whitespaces
and it's pretty annoying.
2017-12-12 00:24:18 -08:00
twinaphex
42ebe7a7ad Merge runloop.c and retroarch.c 2017-05-11 09:11:46 +02:00
twinaphex
f0c2d786ae Update arrays struct 2017-04-28 22:59:13 +02:00
twinaphex
ed53be7c81 Move all bool settings 2017-04-28 14:11:34 +02:00
Twinaphex
b7b3b2cb5f Try to prevent truckload of warnings on iOS 2017-02-26 10:33:03 +01:00
twinaphex
96c8ca5a09 Header update #1 2017-01-22 13:40:32 +01:00
twinaphex
77e5cdbfde Revert "Rename runloop_msg_queue_push to video_driver_msg_queue_push"
This reverts commit ad7386913c.
2016-12-22 23:36:11 +01:00
twinaphex
ad7386913c Rename runloop_msg_queue_push to video_driver_msg_queue_push
and move code to video_driver.c
2016-12-22 13:15:02 +01:00
Jean-André Santoni
9f09dd0f06 Fix connmanctl build 2016-12-22 11:48:56 +01:00
twinaphex
4b9571140f Remove two runloop.h includes 2016-12-02 16:07:33 +01:00
Jean-André Santoni
99ab41be4a Don't use structs in global_t. Also simplifies the async wifi code. 2016-11-30 01:21:21 +01:00
H. İbrahim Güngör
d884e97576 wifi: fix parsing of connmanctl output
Also follow the coding style.
2016-11-22 16:04:53 +03:00
H. İbrahim Güngör
2641c1214c lakka: consider the identifiers in connmanctl services output 2016-11-22 10:26:02 +03:00
H. İbrahim Güngör
9ec8781a2a wifi: fix parsing of connmanctl output
`connmanctl services` output is something like this:

```
Δ connmanctl services
    NetMASTER Uydunet-N4832 wifi_742f68cd1f13_4e65744d415354455220557964756e65742d4e34383332_managed_psk
    DIRECT-Dn-Android_d703 wifi_742f68cd1f13_4449524543542d446e2d416e64726f69645f64373033_managed_psk
    PS4-8E777390BB63     wifi_742f68cd1f13_5053342d384537373733393042423633_managed_psk
```

So, instead of assuming the SSID length, just split the lines by space
character, and treat the last item as the unique id.

Updates libretro/Lakka#538
2016-11-21 23:39:09 +03:00
Jean-André Santoni
6cc14a4fb9 Add missing copyright mention on some files 2016-10-27 18:17:43 +02:00
Jean-André Santoni
9445046b5f Improve status reporting in the connman wifi driver 2016-09-27 16:45:37 +02:00
Jean-André Santoni
eee9e5047b Connman: enable wifi before scanning, and restart connman after generating the settings file 2016-09-24 00:41:30 +02:00
Jean-André Santoni
d3878d5a92 Connman driver: this should allow connecting protected networks 2016-09-23 19:50:18 +02:00
Jean-André Santoni
4734cb2640 WiFi: ask for passphrase 2016-09-23 13:16:27 +02:00
twinaphex
c9e10c821e Cleanups 2016-09-23 01:38:19 +02:00
Jean-André Santoni
714db40fa0 Allow connecting wifi networks 2016-09-22 22:27:58 +02:00
Jean-André Santoni
cd0ec01928 Display which wifi network we're connected to 2016-09-22 22:27:54 +02:00