Closed Bug 783742 Opened 12 years ago Closed 12 years ago

Add support for WPS PIN method

Categories

(Firefox OS Graveyard :: General, enhancement)

All
Gonk (Firefox OS)
enhancement
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: masashi.honma, Assigned: masashi.honma)

Details

Attachments

(1 file, 1 obsolete file)

Attached patch patch for WPS PIN (obsolete) — Splinter Review
This patch adds support for WPS PIN method.
The PIN code is generated by wpa_supplicant or inputted via the gaia UI.
This patch supports both.
Comment on attachment 653024 [details] [diff] [review]
patch for WPS PIN

Review of attachment 653024 [details] [diff] [review]:
-----------------------------------------------------------------

Looks great, other than a couple of nits. Masashi, if you attach a new patch with the nits corrected, I'll land it tomorrow.

::: dom/wifi/WifiWorker.js
@@ +279,5 @@
>    }
>  
> +  function wpsPinCommand(pin, callback) {
> +    doStringCommand("WPS_PIN any" + (pin === undefined ? "" : (" " + pin)),
> +      callback);

Nitpick: please indent callback to the same level as the first quote in the line above it.

@@ +2113,5 @@
>            self._sendMessage(message, false, "WPS Cancel failed", rid, mid);
>        });
>      } else {
> +      self._sendMessage(message, false, "Invalid WPS method=" + detail.method,
> +        rid, mid);

Same thing here (though I missed it the first time around): please indent rid to the same level as "message".
Attachment #653024 - Flags: review?(mrbkap) → review+
Assignee: nobody → masashi.honma
Status: UNCONFIRMED → NEW
Ever confirmed: true
Attached patch second patchSplinter Review
Attachment #653024 - Attachment is obsolete: true
Thanks for your review.

I attached a new patch.
https://hg.mozilla.org/mozilla-central/rev/f921ed75d75d

Thanks again.
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: