Closed Bug 1116434 Opened 11 years ago Closed 11 years ago

(gonk-L-Wifi) WiFi hotspot L porting

Categories

(Firefox OS Graveyard :: Wifi, defect)

All
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(feature-b2g:2.2+, firefox36 wontfix, firefox37 wontfix, firefox38 fixed, b2g-v2.2 fixed, b2g-master fixed)

VERIFIED FIXED
2.2 S4 (23jan)
feature-b2g 2.2+
Tracking Status
firefox36 --- wontfix
firefox37 --- wontfix
firefox38 --- fixed
b2g-v2.2 --- fixed
b2g-master --- fixed

People

(Reporter: hcheng, Assigned: jessica)

References

Details

Attachments

(1 file, 4 obsolete files)

No description provided.
Blocks: gonk-L
Depends on: gonk-L-Wifi
After wifi porting is done, wifi hotspot functionality should be verified.
Jessica is working on this.
Assignee: nobody → jjong
Depends on: 1116458
No longer depends on: gonk-L-Wifi
Wifi hotspot should be mandatory function. Nominate it for feature 2.2+
feature-b2g: --- → 2.2?
feature-b2g: 2.2? → 2.2+
Target Milestone: --- → 2.2 S4 (23jan)
Blocks: gonk-L-Wifi
Status: NEW → ASSIGNED
This is how the routing table looks like when tethering is enabled: root@mako:/ # ip rule 0: from all lookup local 10000: from all fwmark 0xc0000/0xd0000 lookup legacy_system 13000: from all fwmark 0x10063/0x1ffff lookup local_network 13000: from all fwmark 0x10064/0x1ffff lookup rmnet_usb0 14000: from all oif rmnet_usb0 lookup rmnet_usb0 14000: from all oif wlan0 lookup local_network 15000: from all fwmark 0x0/0x10000 lookup legacy_system 16000: from all fwmark 0x0/0x10000 lookup legacy_network 17000: from all fwmark 0x0/0x10000 lookup local_network 18000: from all iif wlan0 lookup rmnet_usb0 19000: from all fwmark 0x64/0x1ffff lookup rmnet_usb0 22000: from all fwmark 0x0/0xffff lookup rmnet_usb0 23000: from all fwmark 0x0/0xffff uidrange 0-0 lookup main 32000: from all unreachable We can see that there are "iif -> oif" rules for tethering. The iif rule is created "nat enable" command is sent to netd. For the oif rule, we have to add the tethering interface to the local network and then add the corresponding route into local_network table. Also, netid fwmark is passed to dnsmasq to use for DNS queries. I'll provide a patch once bug 1104664 is ready.
Attachment #8546373 - Attachment is obsolete: true
(In reply to Henry Chang [:henry] from comment #6) > Created attachment 8546491 [details] [diff] [review] > Bug1116434.patch (based on Bug 1104664) I'll upload the final patch and ask for review once bug 1104664 is landed.
Blocks: 1121834
Attached patch patch, v1. (obsolete) — Splinter Review
Attachment #8546491 - Attachment is obsolete: true
Attached patch patch, v2. (obsolete) — Splinter Review
remove unused variable.
Attachment #8550046 - Attachment is obsolete: true
Comment on attachment 8550062 [details] [diff] [review] patch, v2. Edgar, may I have your review on this? Thanks!
Attachment #8550062 - Flags: review?(echen)
Comment on attachment 8550062 [details] [diff] [review] patch, v2. Review of attachment 8550062 [details] [diff] [review]: ----------------------------------------------------------------- Looks good, thank you. ::: dom/system/gonk/NetworkUtils.cpp @@ +742,5 @@ > doCommand(command, aChain, aCallback); > } > > +void NetworkUtils::addInterfaceToLocalNetwork(CommandChain* aChain, > + CommandCallback aCallback, Nit: Indention
Attachment #8550062 - Flags: review?(echen) → review+
- correct indention (see comment 11) Thanks Edgar!
Attachment #8550062 - Attachment is obsolete: true
Attachment #8551615 - Flags: review+
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Comment on attachment 8551615 [details] [diff] [review] final patch. r=echen NOTE: Please see https://wiki.mozilla.org/Release_Management/B2G_Landing to better understand the B2G approval process and landings. [Approval Request Comment] Bug caused by (feature/regressing bug #): Wifi/USB hotspot L porting User impact if declined: Wifi and USB hotspot will not work Testing completed: Yes Risk to taking this patch (and alternatives if risky): No String or UUID changes made by this patch: No
Attachment #8551615 - Flags: approval-mozilla-b2g37?
Attachment #8551615 - Flags: approval-mozilla-b2g37? → approval-mozilla-b2g37+
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: