Commit Graph

419 Commits

Author SHA1 Message Date
Thomas Zimmermann
290d899d1e Bug 928362: Support ad-hoc mode for Wifi, r=vchang, r=mrbkap
This patch adds support for Wifi networks that run in ad-hoc
mode. The network attributes 'frequency' and 'mode' are required
by wpa_supplicant to connect to an ad-hoc network.

'Frequency' is just the frequency of the channel in use. 'Mode'
is the network's mode, with 0 being infrastructure mode, 1 being
IBSS mode (aka ad-hoc mode), and 2 being access-point mode.

If ad-hoc mode is not supported on your device, you can set the
environment property 'ro.moz.wifi.ibss_supported' to false to
disable it in Gecko.
2014-10-20 14:22:47 +02:00
Henry Chang
e353fdacc1 Bug 1049460 - Change wpa_supplicant mux/demux method on KK to enable wifi direct. r=vchang
--HG--
extra : rebase_source : 0633f2b2999d9aca03543463164b3de83b67f4f5
2014-10-08 15:18:35 +08:00
Chuck Lee
6e937ddf57 Bug 1079173 - Check existence of netId instead of check it's value. r=hchang 2014-10-13 10:05:33 +08:00
Chuck Lee
cbc63a944b Bug 1073342 - Remove non-necessary thread in WifiCertService. r=vchang 2014-10-02 19:43:48 +08:00
Chuck Lee
fb1a797d61 Bug 1078113 - Use Cu.cloneInfo() to wrap returned values. r=bzbarsky r=vchang 2014-10-07 18:06:03 +08:00
Bobby Holley
edc0482e21 Bug 1065185 - Create a content Array rather than a chrome Array in _convertWifiNetworks. r=chucklee 2014-10-03 10:05:51 +02:00
Bobby Holley
06a2906a38 Bug 1065185 - Stop using Promise.jsm over SpecialPowers in marionette tests. r=bz 2014-10-03 10:05:50 +02:00
Henry Chang
1106be318f Bug 1038531 - Unify NetworkWorker. r=fabrice r=mrbkap 2014-08-18 11:02:56 +08:00
Kai-Zhen Li
70e042f9d8 Bug 1068468 - Truncate ssid if its length of encoded to utf8 is longer than 32. r=chulee
--HG--
extra : amend_source : 7f41d7bf31c3152e75934731d36aead919371baa
2014-09-26 17:41:19 +08:00
Ehsan Akhgari
080e94906d Bug 1072701 - Build some Firefox OS specific DOM code in unified mode; r=baku
--HG--
extra : rebase_source : 4a8812c18341c9851fb3265e1f8e6c77a95911c5
2014-09-25 10:10:42 -04:00
Mike Habicher
03a030b03e Bug 1053966 - move mozsettings-changed Observer info from aSubject to aData, r=bz,qDot 2014-09-16 13:15:16 -04:00
Chuck Lee
a7003009f4 Bug 1050678 - Provide network info for state change event. r=hchang 2014-09-17 15:08:18 +08:00
Ryan VanderMeulen
4ddd261546 Backed out changeset ed586ca080c0 (bug 1053966) for the same Mnw permafails it was backed out for previously. 2014-09-16 16:54:25 -04:00
Mike Habicher
a4981f12d6 Bug 1053966 - move mozsettings-changed Observer info from aSubject to aData, r=bz,qDot 2014-09-16 13:15:16 -04:00
Chris Peterson
b3b77faddd Bug 1063962 - Replace jschar typedef with C++11 char16_t type. r=jandem 2014-07-21 21:43:21 -07:00
Kyle Machulis
91ef20c261 Bug 1015518 - Update users of settings observer 'message' field to use boolean; r=gene a=2.1 2014-08-27 21:01:31 -07:00
Kyle Machulis
41a4e59da7 Bug 900551 - Make marionette webapi tests use transaction events for settings; r=edgar r=hchang r=dlee 2014-08-27 21:01:30 -07:00
Ryan VanderMeulen
a3c8179253 Merge b2g-inbound to m-c. a=merge 2014-08-29 15:26:40 -04:00
Chuck Lee
fd34220848 Bug 1055380 - Cast network configs into correct data type. r=hchang 2014-08-29 11:18:02 +08:00
Kyle Machulis
d83f17e7d0 Bug 846200 - Update Marionette JS WebAPI Tests to use new settings-api permissions; r=echou r=echen
--HG--
extra : rebase_source : 36a9f3e055a2ff7bcf624e9ef7f8f1e4619de6da
2014-08-27 21:01:29 -07:00
Kai-Zhen Li
bbe613d439 Bug 1059702 - Use wifi.tethering.interface for wifi AP if it does exist. r=vchang 2014-08-28 18:34:38 +08:00
Ryan VanderMeulen
b392753c94 Backed out 11 changesets (bug 1059079, bug 1015518, bug 900551, bug 846200) for Gaia UI test failures on a CLOSED TREE.
Backed out changeset d85b4e48b3b4 (bug 1015518)
Backed out changeset 663b73ba69ec (bug 1015518)
Backed out changeset 5cf1cb5fa022 (bug 900551)
Backed out changeset b953dd5bfdaa (bug 900551)
Backed out changeset a2b6d7c84100 (bug 900551)
Backed out changeset ceb79fe83d15 (bug 900551)
Backed out changeset f6acf344fbf0 (bug 900551)
Backed out changeset fa269ea53937 (bug 846200)
Backed out changeset b89c84a850f9 (bug 846200)
Backed out changeset b7a7dfbe4e3f (bug 846200)
Backed out changeset c6f54d821c11 (bug 1059079)
2014-08-28 12:49:49 -04:00
Ryan VanderMeulen
0e22acf2f0 Backed out changeset 52b00288469c (bug 1015518) for Gaia UI test perma-fails.
CLOSED TREE

--HG--
extra : amend_source : f14efe30e300b626cffa22066c28a0fbda42a80b
2014-08-28 12:44:39 -04:00
Kyle Machulis
cf0f5d6d8d Bug 1015518 - Update users of settings observer 'message' field to use boolean; r=gene 2014-08-27 21:01:31 -07:00
Kyle Machulis
90a78b5c88 Bug 900551 - Make marionette webapi tests use transaction events for settings; r=edgar r=hchang r=dlee 2014-08-27 21:01:30 -07:00
Kyle Machulis
d511ae9336 Bug 846200 - Update Marionette JS WebAPI Tests to use new settings-api permissions; r=echou r=echen 2014-08-27 21:01:29 -07:00
Nicholas Nethercote
0d6350111c Bug 1051106 - Remove a useless waitForScan() call. r=vchang.
--HG--
extra : rebase_source : fab1721336cd1c9878b7f8259524d73ea9fcebfe
2014-08-20 18:36:59 -07:00
Chuck Lee
89e5b88b70 Bug 1051660 - 0002. Test case for Wifi Enable API. r=hchang 2014-08-18 15:10:27 +08:00
Chuck Lee
ebc687e577 Bug 1051660 - 0001. Fix minor bugs in API implementation. r=hchang 2014-08-18 15:10:24 +08:00
Henry Chang
cb3bffd6e5 Bug 1033983 - Bypass the UTF conversion of null char if it's not the last one. r=chucklee 2014-08-14 16:32:42 +08:00
Chuck Lee
65a637c1ec Bug 979739 - Fix netmask string format error and use netHelper. r=vchang 2014-08-13 15:30:01 +08:00
Bobby Holley
7c7704aa07 Bug 1052052 - Hoist Auto*JSContext into nsContentUtils and kill nsCxPusher.{cpp,h}. r=gabor 2014-08-14 18:47:15 -07:00
Ryan VanderMeulen
7c3098f03b Backed out changesets 5b1a3161f614, 17a9673ed782, and a9b8c346d295 (bug 1052052) for B2G non-unified bustage. 2014-08-14 17:23:10 -04:00
Bobby Holley
e5da39b71b Bug 1052052 - Hoist Auto*JSContext into nsContentUtils and kill nsCxPusher.{cpp,h}. r=gabor 2014-08-14 12:54:34 -07:00
Dimi Lee
80c690d47a Bug 936367 - Support wifi hotspot enable API. r=vchang, r=ptheriault, sr=mrbkap 2014-08-11 17:13:25 +08:00
Chuck Lee
8855b9da2d Bug 1047294 - Fix potential Javascript Error. r=vchang 2014-08-07 18:00:23 +08:00
Chuck Lee
88877c4e89 Bug 930355 - 0002. Implement wifi enable API. r=vchang 2014-08-07 17:19:31 +08:00
Henry Chang
01a14e211a Bug 1046116 - Do not disable network on receiving 'CTRL-EVENT-ASSOC-REJECT'. r=vchang
We would disable one network after receiving 'CTRL-EVENT-ASSOC-REJECT'
a couple of times but never re-enable it again. Remove this rule until
we have a sophisticated re-enable policy.
2014-08-05 16:33:40 +08:00
Kyle Huey
f368c02a45 Bug 1046000: Shut down the wifi services. r=vchang
--HG--
extra : rebase_source : 121fb986ff42e414713f4ff8bab151289e9746f4
2014-07-30 19:31:18 -07:00
Jessica Jong
f9e440a5de Bug 990458 - Part 4: WifiP2pManager changes to support updateNetworkInterface(). r=vchang 2014-07-29 16:44:29 +08:00
Jessica Jong
dcd879628f Bug 990458 - Part 3: WifiWorker changes to support updateNetworkInterface(). r=vchang 2014-07-29 16:44:27 +08:00
Chuck Lee
865e35d94c Bug 1039220 - Fix judgement rule for valid property. r=hchang 2014-07-16 18:06:13 +08:00
Vincent Chang
5394348251 Bug 1034489 - [FirefoxOS_v1.4][Shark]Close WIFI while obtaining IP from AP and WIFI button can't be tapped for long. r=chulee 2014-07-16 16:10:21 +08:00
Vincent Chang
33b5b9f27b Bug 1037301 - [Wifi] Close station info update timer when we disable the hotspot. r=hchang 2014-07-11 11:45:55 +08:00
Nicholas Nethercote
bfb6ffa85c Bug 1037302 - Avoid excess string creation in WifiCommand.jsm's getConnectionInfoICS(). r=hchang.
This changes the code to use search() and indexOf() to find the boundaries of
the relevant values, and substring() to extract them. This reduces the number
of strings created on each invocation by 8x.

The patch changes the behaviour if a key appears more than once. With the old
code the last occurrence would be used. With the new code the first one is
used. Hopefully this doesn't matter.
2014-07-13 22:05:27 -07:00
Henry Chang
7b5203e5f4 Bug 1022460 - Add wifi tethering test cases. r=vyang 2014-07-01 18:47:13 +08:00
Chuck Lee
99d55e5af6 Bug 1033948 - 0002. Change API naming in DOM. r=vchang 2014-07-04 14:37:55 +08:00
Harsh Pathak
fffec87019 Bug 643041 - Merge nsIX509Cert2 and nsIX509Cert3 into nsIX509Cert, and merge nsIX509CertDB2 into nsIX509CertDB. r=keeler
--HG--
extra : rebase_source : 5283c637e45dbee9f741d56cda54fdef1afce16e
2014-07-03 22:09:24 -07:00
Chuck Lee
be6032106e Bug 1030591 - Send connectionInfoUpdate while IP change. r=vchang 2014-06-27 17:26:31 +08:00
Chuck Lee
5da8c247c6 Bug 1028044 - Use auth instead of autheap in phase2 settings. r=vchang 2014-06-24 17:41:38 +08:00
Chris Peterson
1f3a2dcf13 Bug 1024322 - Replace calls to MOZ_ASSUME_UNREACHABLE that have crept back into dom. r=smaug 2014-06-20 22:42:45 -07:00
Jim Blandy
4d6a633bba Bug 914753: Make Emacs file variable header lines correct, or at least consistent. DONTBUILD r=ehsan
The -*- file variable lines -*- establish per-file settings that Emacs will
pick up. This patch makes the following changes to those lines (and touches
nothing else):

 - Never set the buffer's mode.

   Years ago, Emacs did not have a good JavaScript mode, so it made sense
   to use Java or C++ mode in .js files. However, Emacs has had js-mode for
   years now; it's perfectly serviceable, and is available and enabled by
   default in all major Emacs packagings.

   Selecting a mode in the -*- file variable line -*- is almost always the
   wrong thing to do anyway. It overrides Emacs's default choice, which is
   (now) reasonable; and even worse, it overrides settings the user might
   have made in their '.emacs' file for that file extension. It's only
   useful when there's something specific about that particular file that
   makes a particular mode appropriate.

 - Correctly propagate settings that establish the correct indentation
   level for this file: c-basic-offset and js2-basic-offset should be
   js-indent-level. Whatever value they're given should be preserved;
   different parts of our tree use different indentation styles.

 - We don't use tabs in Mozilla JS code. Always set indent-tabs-mode: nil.
   Remove tab-width: settings, at least in files that don't contain tab
   characters.

 - Remove js2-mode settings that belong in the user's .emacs file, like
   js2-skip-preprocessor-directives.
2014-06-24 22:12:07 -07:00
Chuck Lee
dcd8787ac8 Bug 1023115 - Add retry count for EAP connection error. r=vchang 2014-06-20 10:37:43 +08:00
Henry Chang
3633b99d46 Bug 1015901 - Add test cases for "update_config=1". f=vyang, r=vchang 2014-06-04 17:07:05 +08:00
Chuck Lee
7533578bfa Bug 1020866 - Add IEEE8021X to WPA-EAP config. r=vchang 2014-06-13 12:00:10 +08:00
Nathan Froyd
ed5104fd64 Bug 1025139 - use the correct symbol for CERT_AddTempCertToPerm in WifiCertService.cpp; r=bz 2014-06-13 14:16:13 -04:00
Vincent Chang
f3cdcd7940 Bug 1009725 - [B2G][Flame][Settings]Wi-Fi toggle button intermittently non-responsive when selected. r=chulee 2014-06-11 16:37:28 +08:00
Olli Pettay
2672babef6 Bug 1023280 - Rename dictionary.ToObject to ToObjectInternal, r=bz 2014-06-11 22:38:55 +03:00
Vicamo Yang
45bd978b7c Bug 1023148 - Use WebIDL codegen to implement RIL & WiFi events. r=smaug 2014-06-11 09:23:34 +08:00
Vincent Chang
b66f1d41b8 Bug 1014924 - [B2G][Tarako][Geolocation] WifiWorker scan fails With wifi off, and geolocation stops. r=chulee 2014-06-04 18:08:51 +08:00
Chuck Lee
995c55284b Bug 775499 - 0002. Handle subject match setting. r=vchang 2014-05-19 14:41:08 +08:00
Henry Chang
df38aa2241 Bug 997090 - Add wifi test case. r=vchang, f=vyang 2014-05-16 10:50:37 +08:00
Chuck Lee
2bd6e14d75 Bug 790056 - Remove WPA-EAP filter. r=vchang 2014-05-27 14:31:09 +08:00
Vincent Chang
3187452580 Bug 774582 part2 - Unable to know if there is a user connected to Wifi tethering network. r=mrbkap 2014-05-29 13:50:57 +08:00
Vincent Chang
c481388ef8 Bug 774582 - Unable to know if there is a user connected to Wifi tethering network. r=mrbkap 2014-01-22 16:37:40 +08:00
Chuck Lee
66cb94c53d Bug 1002314 - 0002. Provide WiFi capability info. r=mrbkap, r=vchang 2014-05-19 10:29:21 +08:00
Vincent Chang
c4cc0c31a6 Bug 1005775 - [Wifi] [Follow up of Bug 999388]Refactor wifi when send terminate command to wpa_supplicant. r=chulee 2014-05-06 13:40:07 +08:00
Ehsan Akhgari
958ae15e31 Bug 994964 - Make DOM XPIDL interfaces non-scriptable, and add shim Components.interfaces entries for them; r=bzbarsky,bholley 2014-05-08 16:45:36 -04:00
Chuck Lee
eafd27d9d1 Bug 745468 - 0002. Support WPA-EAP connection state. r=vchang, r=mrbkap 2014-04-25 18:41:26 +08:00
Chuck Lee
9cc1761dc3 Bug 745468 - 0001. Support WPA-EAP configure parameters. r=vchang, r=mrbkap 2014-04-30 19:58:54 +08:00
Henry Chang
1e6c8f331c Bug 998892 - Append "interface=XXX" to the WPS PBC/PIN supplicant command only for JB. r=vchang 2014-05-06 15:04:16 +08:00
Chuck Lee
747319f74d Bug 917175 - 0002. Backend. r=mrbkap,briansmith 2014-04-30 19:58:49 +08:00
Chuck Lee
5a0a80a300 Bug 917175 - 0003. DOM API implementation. r=mrbkap 2014-04-28 15:50:11 +08:00
Chuck Lee
8a0dfe7e9e Bug 917175 - 0001. WebIDL change. r=mrbkap 2014-04-15 17:17:40 +08:00
Chuck Lee
8f200f985d Bug 917176 - 0002. DOM API implementation. r=mrbkap, r=briansmith 2014-04-30 19:58:45 +08:00
Chuck Lee
4abc837b90 Bug 917102 - 0003. DOM API implementation. r=mrbkap 2014-04-30 19:58:40 +08:00
Chuck Lee
ffa56bfb0e Bug 917102 - 0002. Add Wifi certificate service. r=mrbkap, r=keeler 2014-04-28 15:49:57 +08:00
Chuck Lee
5e3d45a551 Bug 917102 - 0001. WebIDL changes. r=mrbkap, r=ehsan 2014-04-30 19:58:35 +08:00
Vincent Chang
601a8e8e4e Bug 996588 - Unable to connect to wifi network with double quotes (") in ssid. r=fabrice 2014-04-30 14:57:38 +08:00
Birunthan Mohanathas
ff8ce9bd42 Bug 900908 - Part 3: Change uses of numbered macros in nsIClassInfoImpl.h/nsISupportsImpl.h to the variadic variants. r=froydnj 2014-04-27 03:06:00 -04:00
Vincent Chang
7cd7a0725f Bug 999391 - [Wifi] CTRL-EVENT-TERMINATING with recv errors message is not handled correctly. r=chulee 2014-04-22 20:22:03 +08:00
Ryan VanderMeulen
83263a213d Merge inbound to m-c. 2014-04-24 13:19:53 -04:00
Chuck Lee
6ab5d10166 Bug 997791 - 0002. Apply request queue optimization. r=vchang 2014-04-21 20:06:27 +08:00
Chuck Lee
1f3bfdf3d1 Bug 997791 - 0001. Remove ignore settings flags. r=vchang 2014-04-21 20:06:24 +08:00
Shelly Lin
d63debcb8f Bug 908995 - Part 3: Add source events for TaskTracer. r=khuey,smaug. 2014-04-23 15:32:31 +08:00
Kai-Zhen Li
dbf41ef2d5 Bug 998851 - Bind 'this' to callback function. r=vchang 2014-04-21 11:59:16 +08:00
Chuck Lee
668320e012 Bug 989717 - Handle enabling and disabling state properly. r=vchang 2014-04-15 11:43:51 +08:00
Dimi Lee
e8b87dfe98 Bug 886110 - Relanding Convert WifiManager to WebIDL on a CLOSED TREE. r=bz
--HG--
extra : amend_source : 97458b301b31ad64fa230cac53d0230ca6e02e4d
2014-04-10 11:34:29 +08:00
Carsten "Tomcat" Book
ddb645cc7e Backed out changeset ce623d85f0c4 (bug 886110) for hoping this resolve the m7 b2g-ics permanent failure on a CLOSED TREE 2014-04-14 12:24:21 +02:00
Dimi Lee
f4870564b2 Bug 886110 - Convert WifiManager to WebIDL; r=bz 2014-04-10 11:34:29 +08:00
Vincent Chang
cce5b587f4 Bug 993327 - [tarako] unable to enable Data Connect after turning off WIFI. r=chulee 2014-04-10 11:48:50 +08:00
Vincent Chang
c63f2b9b92 Bug 993821 - [Wifi] Event thread is blocked in WaitForEvent caused wifi stay in searching state. r=chulee 2014-04-10 13:52:38 +08:00
Vincent Chang
8c69dae521 Bug 986365 - Crash in supplicant because of closing supplicant while waiting for event. r=chulee 2014-03-27 13:58:04 +08:00
Dimi Lee
42c0a798a4 Bug 991499 - WifiWorker still try to send message to component which is already shutdown. r=vchang 2014-04-03 18:10:16 +08:00
Vincent Chang
ac8b340f31 Bug 989719 - js error in WifiWorker when doing geolocation and WiFi is disabled. r=chulee 2014-03-31 10:30:44 +08:00
Chuck Lee
b5381dfa98 Bug 966925 - Filter scan result based on platform property. r=vchang 2014-03-20 14:39:21 +08:00
Phil Ringnalda
8b68d74cfd Merge b-i to m-c 2014-03-29 09:18:08 -07:00
Jessica Jong
c6c4217db6 Bug 978709 - 4.g/6: WifiNetworkInterface changes. r=vicamo 2014-03-29 15:18:24 +08:00
Jessica Jong
127df38224 Bug 978709 - 4.f/6: P2pNetworkInterface changes. r=vicamo 2014-03-29 15:18:23 +08:00
Vicamo Yang
3c86c42f4c Bug 978709 - 1/6: remove nsINetworkInterface::broadcast. r=hsinyi 2014-03-29 15:18:09 +08:00