Closed
Bug 787552
Opened 12 years ago
Closed 12 years ago
B2G Wifi: Add APIs to get the MAC address and current IP address
Categories
(Core :: DOM: Device Interfaces, defect)
Tracking
()
People
(Reporter: mrbkap, Assigned: mrbkap)
References
Details
(Whiteboard: [LOE:S])
Attachments
(1 file)
Kaze asked the other day for APIs to get the MAC address and the current IP address if we're connected. We'll need:
interface nsIDOMWifiManager {
readonly attribute DOMString macAddress;
};
interface nsIDOMMozWifiConnectionInfoEvent {
readonly attribute DOMString ipAddress;
};
Assignee | ||
Comment 1•12 years ago
|
||
I think Kaze told me that these were P2s for him.
blocking-basecamp: + → ?
Comment 2•12 years ago
|
||
I confirm I could live without knowing the MAC address of my device. Nice to have, though.
Assignee | ||
Comment 4•12 years ago
|
||
This seems to do the trick.
Assignee: nobody → mrbkap
Status: NEW → ASSIGNED
Attachment #662710 -
Flags: review?
Attachment #662710 -
Flags: feedback?(kaze)
Assignee | ||
Updated•12 years ago
|
Attachment #662710 -
Flags: review? → review?(vchang)
Comment 5•12 years ago
|
||
Comment on attachment 662710 [details] [diff] [review]
Proposed fix
Review of attachment 662710 [details] [diff] [review]:
-----------------------------------------------------------------
::: dom/wifi/WifiWorker.js
@@ +1501,4 @@
> WifiManager.enabled = true;
> self._updateWifiSetting(true);
> WifiManager.getMacAddress(function (mac) {
> + self.macAddress = mac;
Do we need the mac address information when wifi is disabled during device start-up ?
Android also doesn't show mac address in this case ?
Attachment #662710 -
Flags: review?(vchang) → review+
Assignee | ||
Comment 6•12 years ago
|
||
(In reply to Vincent Chang from comment #5)
> Do we need the mac address information when wifi is disabled during device
> start-up ?
> Android also doesn't show mac address in this case ?
Good questions! Android shows the MAC address as "not available" until wifi is turned on (and then it remembers it afterwards). So, I think the current behavior should be OK.
Comment 7•12 years ago
|
||
The front-end is ready… and waiting: https://github.com/mozilla-b2g/gaia/pull/5267
Asking for check-in.
Keywords: checkin-needed
Assignee | ||
Comment 8•12 years ago
|
||
Comment on attachment 662710 [details] [diff] [review]
Proposed fix
(inferring the f+ from kaze's comment)
https://hg.mozilla.org/integration/mozilla-inbound/rev/c4f422d91514
Attachment #662710 -
Flags: feedback?(kaze)
Attachment #662710 -
Flags: feedback+
Attachment #662710 -
Flags: checkin+
Updated•12 years ago
|
Keywords: checkin-needed
Comment 9•12 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Flags: in-testsuite?
Resolution: --- → FIXED
Target Milestone: --- → mozilla18
You need to log in
before you can comment on or make changes to this bug.
Description
•