[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
137/197: installer: Prepare for new wireless network features.
From: |
Danny Milosavljevic |
Subject: |
137/197: installer: Prepare for new wireless network features. |
Date: |
Mon, 3 Jul 2017 20:37:14 -0400 (EDT) |
dannym pushed a commit to branch wip-installer-2
in repository guix.
commit df961a0fb994128974e22e389fbbdd81973b3312
Author: John Darrington <address@hidden>
Date: Tue Jan 24 13:09:38 2017 +0100
installer: Prepare for new wireless network features.
* gnu/system/installer/passphrase.scm (make-passphrase-page): Pass the
entire
access-point structure instead of just the network name:
* gnu/system/installer/wireless.scm (wireless-connect): Deal with the
consequences.
---
gnu/system/installer/passphrase.scm | 12 ++++++++----
gnu/system/installer/wireless.scm | 2 +-
2 files changed, 9 insertions(+), 5 deletions(-)
diff --git a/gnu/system/installer/passphrase.scm
b/gnu/system/installer/passphrase.scm
index 18dc959..491ac8c 100644
--- a/gnu/system/installer/passphrase.scm
+++ b/gnu/system/installer/passphrase.scm
@@ -37,14 +37,14 @@
(define my-fields `((passphrase ,(M_ "Passphrase") ,max-length)))
-(define (make-passphrase-page parent title ifce network)
+(define (make-passphrase-page parent title ifce access-point)
(let ((page
(make-page (page-surface parent)
title
passphrase-refresh
1
passphrase-key-handler)))
- (page-set-datum! page 'network network)
+ (page-set-datum! page 'access-point access-point)
(page-set-datum! page 'ifce ifce)
page))
@@ -54,13 +54,16 @@
(page-set-initialised! page #t))
(let ((form (page-datum page 'form))
+ (access-point (page-datum page 'access-point))
(text-window (page-datum page 'text-window)))
+
(clear text-window)
(addstr*
text-window
(gettext
(format #f "Enter the passphrase for the network ~a."
- (page-datum page 'network))))
+ (assq-ref access-point 'essid))))
+
(refresh* text-window)
(refresh* (outer (page-wwin page)))
(refresh* (form-window form))))
@@ -68,6 +71,7 @@
(define (passphrase-key-handler page ch)
(let ((form (page-datum page 'form))
(nav (page-datum page 'navigation))
+ (access-point (page-datum page 'access-point))
(dev (page-datum page 'device)))
(cond
@@ -89,7 +93,7 @@
((select-key? ch)
(wireless-connect
(page-datum page 'ifce)
- (page-datum page 'network)
+ (assq-ref access-point 'essid)
(form-get-value form 'passphrase))
(page-leave (cdr (cdr page-stack))))
diff --git a/gnu/system/installer/wireless.scm
b/gnu/system/installer/wireless.scm
index 96c35af..a6e3b71 100644
--- a/gnu/system/installer/wireless.scm
+++ b/gnu/system/installer/wireless.scm
@@ -86,7 +86,7 @@
page
(M_ "Passphrase entry")
ifce
- (assq-ref ap 'essid))))
+ ap)))
(page-enter next))
(begin
(and (zero? (system* "ip" "link" "set" ifce "up"))
- 85/197: installer: Use "lspci -mm" instead of "lspci -m"., (continued)
- 85/197: installer: Use "lspci -mm" instead of "lspci -m"., Danny Milosavljevic, 2017/07/03
- 88/197: installer: Use a cleaner method of detecting wireless capability for ethernet interfaces., Danny Milosavljevic, 2017/07/03
- 93/197: installer: Add a dedicated make to format filesystems., Danny Milosavljevic, 2017/07/03
- 100/197: installer: Do not perform tasks more than once., Danny Milosavljevic, 2017/07/03
- 106/197: installer: Properly handle swap partitions when generating the configuration., Danny Milosavljevic, 2017/07/03
- 114/197: installer: Check that swap spaces have not been assigned mount points, Danny Milosavljevic, 2017/07/03
- 112/197: gurses: form: Use match instead of car, cdr etc., Danny Milosavljevic, 2017/07/03
- 125/197: installer: Do not assume the root file system is of type "ext4"., Danny Milosavljevic, 2017/07/03
- 130/197: installer: Delete unused procedure "justify"., Danny Milosavljevic, 2017/07/03
- 134/197: installer: Tolerate an undefined system role in config generation., Danny Milosavljevic, 2017/07/03
- 137/197: installer: Prepare for new wireless network features.,
Danny Milosavljevic <=
- 140/197: installer: Fix the key map option., Danny Milosavljevic, 2017/07/03
- 132/197: installer: Add new procedure to check file system specifications., Danny Milosavljevic, 2017/07/03
- 145/197: gurses: Avoid yet another use of car and cdr., Danny Milosavljevic, 2017/07/03
- 129/197: installer: Emphasise that writing filesystems destroys existing data., Danny Milosavljevic, 2017/07/03
- 150/197: gurses: Reimplement pad-complex-string., Danny Milosavljevic, 2017/07/03
- 159/197: installer: Fix i18n in dialogs., Danny Milosavljevic, 2017/07/03
- 154/197: installer: Main page: Redisplay translatable strings upon refresh., Danny Milosavljevic, 2017/07/03
- 157/197: installer: Replace 'file-browser' with 'key-map'., Danny Milosavljevic, 2017/07/03
- 161/197: installer: Improve i18n in ping page., Danny Milosavljevic, 2017/07/03
- 162/197: gurses: Avoid one use of car/cdr., Danny Milosavljevic, 2017/07/03