Closed
Bug 961485
Opened 11 years ago
Closed 11 years ago
[gonk-kk][wifi] wifi doesn't work
Categories
(Firefox OS Graveyard :: Wifi, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: seinlin, Assigned: seinlin)
References
Details
Attachments
(1 file, 3 obsolete files)
2.78 KB,
patch
|
Details | Diff | Splinter Review |
Wifi network list isn't displayed, and always display scanning.
Assignee | ||
Comment 1•11 years ago
|
||
Assignee: nobody → kli
Attachment #8362333 -
Flags: review?(vchang)
Attachment #8362333 -
Flags: review?(fabrice)
Comment 2•11 years ago
|
||
Comment on attachment 8362333 [details] [diff] [review]
bug-961485-fix.patch
Review of attachment 8362333 [details] [diff] [review]:
-----------------------------------------------------------------
::: dom/wifi/WifiUtils.cpp
@@ +242,5 @@
> + DEFINE_DLFUNC(wifi_command, int32_t, const char*, char*, size_t*)
> + int32_t do_wifi_command(const char* iface, const char* cmd, char* buf, size_t* len) {
> + char command[COMMAND_SIZE];
> + if (!strcmp(iface,"p2p0")) {
> + // commands for p2p0 interface don't need prefix
Nit: capitalize the first letter, period at the end of the sentence please.
::: dom/wifi/WifiWorker.js
@@ +636,5 @@
> + if (event.indexOf("IFNAME=") === 0)
> + {
> + // Jump over IFNAME for gonk-kk.
> + event = event.substr(event.indexOf(" ") + 1);
> + }
Can you explain why do we need this ?
Attachment #8362333 -
Flags: review?(vchang)
Assignee | ||
Comment 3•11 years ago
|
||
In gonk-kk, the in coming event is in this format "IFNAME=wlan0 CTRL-EVENT-......".
This will break consecutive condition check and always enter this checking and return;
if (event.indexOf("CTRL-EVENT-") !== 0 && event.indexOf("WPS") !== 0) {
...
}
Comment 4•11 years ago
|
||
(In reply to Kai-Zhen Li from comment #3)
> In gonk-kk, the in coming event is in this format "IFNAME=wlan0
> CTRL-EVENT-......".
>
> This will break consecutive condition check and always enter this checking
> and return;
>
> if (event.indexOf("CTRL-EVENT-") !== 0 && event.indexOf("WPS") !== 0) {
> ...
> }
How do you think if we move version dependent codes to WifiUtils.cpp ?
Assignee | ||
Comment 5•11 years ago
|
||
Have version dependent codes in cpp files.
Attachment #8362333 -
Attachment is obsolete: true
Attachment #8362333 -
Flags: review?(fabrice)
Attachment #8362745 -
Flags: review?(vchang)
Attachment #8362745 -
Flags: review?(fabrice)
Assignee | ||
Comment 6•11 years ago
|
||
Attachment #8362745 -
Attachment is obsolete: true
Attachment #8362745 -
Flags: review?(vchang)
Attachment #8362745 -
Flags: review?(fabrice)
Attachment #8362750 -
Flags: review?(vchang)
Attachment #8362750 -
Flags: review?(fabrice)
Comment 7•11 years ago
|
||
Comment on attachment 8362750 [details] [diff] [review]
Hanlde IFNAME of wifi command for gonk-kk
Review of attachment 8362750 [details] [diff] [review]:
-----------------------------------------------------------------
r=me with nit fixed.
::: dom/wifi/WifiUtils.cpp
@@ +241,5 @@
> +
> + DEFINE_DLFUNC(wifi_command, int32_t, const char*, char*, size_t*)
> + int32_t do_wifi_command(const char* iface, const char* cmd, char* buf, size_t* len) {
> + char command[COMMAND_SIZE];
> + if (!strcmp(iface,"p2p0")) {
nit: space after ','
Attachment #8362750 -
Flags: review?(fabrice) → review+
Updated•11 years ago
|
Attachment #8362750 -
Flags: review?(vchang) → review+
Assignee | ||
Comment 8•11 years ago
|
||
fixed nit and update reviewer.
Attachment #8362750 -
Attachment is obsolete: true
Assignee | ||
Comment 9•11 years ago
|
||
Assignee | ||
Updated•11 years ago
|
Keywords: checkin-needed
Comment 10•11 years ago
|
||
Keywords: checkin-needed
Comment 11•11 years ago
|
||
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•