Project

General

Profile

Issue #1801

Make Replicant be able to use external Wii dongles from the settings UI

Added by Denis 'GNUtoo' Carikli over 2 years ago. Updated about 4 hours ago.

Status:
Feedback
Priority:
Normal
Assignee:
Category:
Wi-Fi
Target version:
Start date:
02/03/2019
Due date:
% Done:

100%

Estimated time:
(Total: 0.00 h)
Resolution:
Device:

Description

Given that:
  • Android uses wpa_supplicant
  • Android probably talks to wpa_supplicant trough a control interface (ctrl_interface) in the wpa_supplicant configuration file.
  • wpa_supplicant can be started and controlled from shell scripts.
  • busybox can probably still be compiled for Android 6.0.
  • Busybox has a tiny version of udev called mdev, which can run scripts when a device is detected. It is probably very easy, with it, to run a script when an ath9k_htc compatible wifi card is detected.
  • As far as I understand, Android doesn't have a dev manager like udev, so using mdev would probably not conflict with other things.

It may be possible to integrate external wifi support well enough to make it transparent for the user once the wifi dongle is plugged in.

Denis.


Subtasks

Issue #1907: Merge patch to make default system WiFi GUI work with external donglesRejected

Actions

History

#1

Updated by Joonas Kylmälä about 2 years ago

This looks very useful: http://blog.linuxconsulting.ro/2010/04/porting-wifi-drivers-to-android.html. I already got one idea from that blog post: as the thing works like that you supply wpa_supplicant some wifi driver (in i9300/5 case it is currently NL80211) so let's make a driver that combines all usb wifi drivers to one. I will try to come with other ideas before I'm going to try make that kernel driver because a) I'm not good kernel coder and b) it might be be a bad way to implement this.

Relevant file for smdk4412 kernel: device/samsung/smdk4412-common/BoardCommonConfig.mk

#2

Updated by Fil Bergamo 8 months ago

  • Status changed from New to Feedback
  • Target version changed from Replicant 6.0 to Replicant 6.0 0004
  • % Done changed from 0 to 90

There is a patch pending, that enables the use of external Wifi dongles with the default system GUI:

https://lists.osuosl.org/pipermail/replicant/2018-December/001752.html

I personally tested the patch and it works at least on i9300.

#3

Updated by Denis 'GNUtoo' Carikli 7 months ago

  • Subject changed from Integrate RepWifi into Replicant to Make Replicant be able to use external Wii dongles from the settings UI
#4

Updated by Denis 'GNUtoo' Carikli 4 months ago

#1907 also has a link to the patch and to some information on that too.

#5

Updated by Kurtis Hanna 27 days ago

Fil Bergamo wrote:

There is a patch pending, that enables the use of external Wifi dongles with the default system GUI:

https://lists.osuosl.org/pipermail/replicant/2018-December/001752.html

I personally tested the patch and it works at least on i9300.

Here's some of the relevant responses to the patch:

https://lists.osuosl.org/pipermail/replicant/2019-March/001829.html
https://lists.osuosl.org/pipermail/replicant/2019-March/001829.html

Belgin said in the replicant irc channel that a response to these emails will be coming soon.

#6

Updated by Kurtis Hanna 8 days ago

Belgin's new patch for this is here and is in need of review: https://lists.osuosl.org/pipermail/replicant/2019-August/002100.html

I just tested it on my n7100 and WiFi worked as described.

#7

Updated by Kurtis Hanna 1 day ago

A review of this patch on the #replicant irc said, "it seems quite sensitive to the WiFi card being physically bumped, and recovery from this condition is rather slow and unreliable.

I'm not sure if maybe there's some kind of polling frequency that could be increased, in order to make recovery from a physically jostled wifi card happen quicker, but that might be a potential area of improvement for a follow-up patch.

I'm relatively confident that the connection dropped due to a physically-induced USB fault of some kind. To be clear, when this happened, the Android UI stopped permitting me to "enable" wifi for many seconds. So it's not the same issue as when a wifi network drops."

#8

Updated by Kurtis Hanna about 4 hours ago

A patch review was submitted to the email list here: https://lists.osuosl.org/pipermail/replicant/2019-September/002120.html

Also available in: Atom PDF