[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master 03a5464 57/76: Changed channel to an integer.
From: |
Ian Dunn |
Subject: |
[elpa] master 03a5464 57/76: Changed channel to an integer. |
Date: |
Thu, 23 Feb 2017 19:42:53 -0500 (EST) |
branch: master
commit 03a546421e6525ac853bdeb3f3188f7893d0bc68
Author: Ian Dunn <address@hidden>
Commit: Ian Dunn <address@hidden>
Changed channel to an integer.
* enwc-nm.el (enwc-nm-get-wireless-nw-props): Changed channel to an integer.
* enwc-wicd.el (enwc-wicd-build-prop-list): Changed channel to an integer.
---
lisp/enwc-nm.el | 4 ++--
lisp/enwc-wicd.el | 7 +++++--
2 files changed, 7 insertions(+), 4 deletions(-)
diff --git a/lisp/enwc-nm.el b/lisp/enwc-nm.el
index 363cb3d..b0b51f8 100644
--- a/lisp/enwc-nm.el
+++ b/lisp/enwc-nm.el
@@ -336,8 +336,8 @@ PROP from that access point. It also sets the channel from
the
(bssid . ,(cdr (assoc "HwAddress" props)))
(strength . ,(cdr (assoc "Strength" props)))
(encrypt . ,(or (enwc-nm-get-encryption-type nw) "Unsecured"))
- (channel . ,(number-to-string (enwc-nm--freq-to-channel
- (cdr (assoc "Frequency" props))))))))
+ (channel . ,(enwc-nm--freq-to-channel
+ (cdr (assoc "Frequency" props)))))))
(defun enwc-nm-get-encryption-type (nw)
"The NetworkManager get encryption type function.
diff --git a/lisp/enwc-wicd.el b/lisp/enwc-wicd.el
index cb64fa8..b321c00 100644
--- a/lisp/enwc-wicd.el
+++ b/lisp/enwc-wicd.el
@@ -142,7 +142,7 @@ Just returns a number sequence."
"The handler for `enwc-wicd-get-wireless-network-property'.
This receives the value of network property PROP,
and appends the value to `enwc-wicd-prop-values'."
- (push `(,prop . ,(car args)) enwc-wicd-prop-values)
+ (push (cons prop (car args)) enwc-wicd-prop-values)
(setq enwc-wicd-prop-num (1+ enwc-wicd-prop-num)))
(defun enwc-wicd-prop-to-prop (prop)
@@ -175,7 +175,10 @@ from wireless network with id ID."
(let* ((cur-prop (assoc det prop-list))
(act-det (enwc-wicd-prop-to-prop det))
(act-prop (when cur-prop (cdr cur-prop))))
- `(,act-det . ,act-prop)))
+ (when (or (string-equal det "essid")
+ (string-equal det "channel"))
+ (setq act-prop (string-to-number cur-prop)))
+ (cons act-det act-prop)))
det-list))
(defun enwc-wicd-get-wireless-nw-props (id)
- [elpa] master b5686da 17/76: (enwc-wicd-get-sec-types): Removed., (continued)
- [elpa] master b5686da 17/76: (enwc-wicd-get-sec-types): Removed., Ian Dunn, 2017/02/23
- [elpa] master 7914c48 10/76: (enwc-format-mode-line-string, enwc-update-mode-line): Added the option to customize the information displayed in the mode line., Ian Dunn, 2017/02/23
- [elpa] master 59ca546 20/76: (enwc--str-to-sym): Fixed., Ian Dunn, 2017/02/23
- [elpa] master 1722c02 33/76: enwc-cm.el: Fixed up header and footer., Ian Dunn, 2017/02/23
- [elpa] master c8a0397 29/76: Fixed some compilation errors in enwc.el., Ian Dunn, 2017/02/23
- [elpa] master bb68ed5 37/76: Added ignore rules for byte compiled files., Ian Dunn, 2017/02/23
- [elpa] master 6ed7137 43/76: Fix adding to global-mode-string., Ian Dunn, 2017/02/23
- [elpa] master 968e6f0 46/76: Added tag 2.0 for changeset cc2f7aa4ed36, Ian Dunn, 2017/02/23
- [elpa] master 2d5def6 36/76: (*-function): Removed., Ian Dunn, 2017/02/23
- [elpa] master d9cbdb9 39/76: Added some section headers., Ian Dunn, 2017/02/23
- [elpa] master 03a5464 57/76: Changed channel to an integer.,
Ian Dunn <=
- [elpa] master a6b2b03 61/76: Removed tag 2.0, Ian Dunn, 2017/02/23
- [elpa] master 3491895 14/76: Cleaned up code and consolidated front-end functions., Ian Dunn, 2017/02/23
- [elpa] master 14bcaf4 67/76: Fixed bug with NetworkManager loading, Ian Dunn, 2017/02/23
- [elpa] master 4e43aaf 53/76: Moved editing commands to separate file., Ian Dunn, 2017/02/23
- [elpa] master 141ad1b 65/76: Fixed NetworkManager connection bug., Ian Dunn, 2017/02/23
- [elpa] master 8f08bcb 58/76: Cleaned up network display., Ian Dunn, 2017/02/23
- [elpa] master c30c0d7 38/76: Fixed up a lot of security handling problems., Ian Dunn, 2017/02/23
- [elpa] master 710001f 75/76: Removed packages/enwc in preparation for subtree pull., Ian Dunn, 2017/02/23
- [elpa] master da7e3c6 76/76: Add 'packages/enwc/' from commit 'a3c59cce3482babc7c0518e7ff9da246158b9420', Ian Dunn, 2017/02/23