Closed Bug 1230037 Opened 9 years ago Closed 6 years ago

[meta][OTA] [Wi-Fi] Separate Gecko and Gonk layers in Wi-Fi module

Categories

(Firefox OS Graveyard :: Wifi, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX
2.6 S10 - 3/25

People

(Reporter: ethan, Unassigned)

References

Details

User Story

As a developer, I want a WiFi daemon to serve as the interface in between Gecko and lower level hardware access, so that Gecko can work more independently. (Hence, it provides the flexibility to deploy Gecko to work for various android-based Gonk versions, and easier to be ported for non-android platform, regarding WiFi functionality).

Attachments

(1 file)

This bug is used to track the plan to refactor Wi-Fi module for the OTA project.
Blocks: OTA
Attached image Wi-Fi Stack in FxOS.png
The architecture of Wi-Fi module in FxOS.

Currently, Wi-Fi module in Gecko directly uses libhardware_legacy.so and libnetutils.so. The rough idea is to add an abstraction layer/interface to remove dynamic library dependencies from Gecko layer.
Depends on: 1233622
Basically, we would create a daemon for WiFi and move all dependencies into this daemon, for example, the libhardware_legacy.so will link to this deamon instead of gecko. This daemon would be called 'wifid'. The wifid would be responsible for following things:
  - Load/Unload wifi driver.
  - Start/Stop wpa_supplicant.
  - Bridge commands to wpa_supplicant from gecko.
  - Bridge messages to gecko from wpa_supplicant.
And the IPC between gecko and wifid will be achieved through UNIX domain socket.
The wifid should handle WiFi tethering as well. In other words, it has to bridge messages between gecko and hostapd.
Depends on: 1236433
No longer depends on: 1233622
User Story: (updated)
Assignee: nobody → tihuang
Right now, I am working on the WiFi daemon. And the estimated time of finishing Wifi daemon would be the end of Feb. After that, I will spend two more weeks for rewriting the WifiUtils of Gecko. Thus, The ETA of this bug should be at the middle of March.
Hi Michael,
We need a empty repository in b2g for this Wifi daemon. And its name should be 'platform_system_wifid'. Should I open a bug for creating this repository or you could help us to create one from here? Thanks.
Flags: needinfo?(mwu)
(In reply to Tim Huang[:timhuang] from comment #4)
> Right now, I am working on the WiFi daemon. And the estimated time of
> finishing Wifi daemon would be the end of Feb. After that, I will spend two
> more weeks for rewriting the WifiUtils of Gecko. Thus, The ETA of this bug
> should be at the middle of March.

Thanks Tim for your estimation.
Set target milestone according to it.
Status: NEW → ASSIGNED
Target Milestone: --- → 2.6 S10 - 3/25
Change this bug into a meta bug for separating Gecko and Gonk layers in Wi-Fi module.
Summary: [OTA] [Wi-Fi] Separate Gecko and Gonk layers in Wi-Fi module → [meta][OTA] [Wi-Fi] Separate Gecko and Gonk layers in Wi-Fi module
Depends on: 1242875
Depends on: 1242878
Depends on: 1242881
Because I have been shifted into other project, so I left the assigner into nobody. Any one get interested on this bug, feel free to take it.
Assignee: tihuang → nobody
Status: ASSIGNED → NEW
Flags: needinfo?(mwu)
Firefox OS is not being worked on
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: