[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master 2e07c3a 54/76: Began work on WPA backend. EXPERIMENTAL!
From: |
Ian Dunn |
Subject: |
[elpa] master 2e07c3a 54/76: Began work on WPA backend. EXPERIMENTAL! |
Date: |
Thu, 23 Feb 2017 19:42:53 -0500 (EST) |
branch: master
commit 2e07c3a8192c6edf565725818d37e938c0126948
Author: Ian Dunn <address@hidden>
Commit: Ian Dunn <address@hidden>
Began work on WPA backend. EXPERIMENTAL!
---
lisp/enwc-wpa.el | 76 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 76 insertions(+)
diff --git a/lisp/enwc-wpa.el b/lisp/enwc-wpa.el
new file mode 100644
index 0000000..191ae71
--- /dev/null
+++ b/lisp/enwc-wpa.el
@@ -0,0 +1,76 @@
+;;; enwc-wpa.el --- Emacs Network Client WPA_CLI backend
+
+;; Copyright (C) 2012-2014 Free Software Foundation, Inc.
+
+;; Author: Ian Dunn <address@hidden>
+;; Keywords: external, network, wicd, manager, nm
+;; Version: 2.0
+;; Homepage: https://savannah.nongnu.org/p/enwc
+
+;; This file is part of GNU Emacs.
+
+;; GNU Emacs is free software; you can redistribute it and/or modify it
+;; under the terms of the GNU General Public License as published by
+;; the Free Software Foundation; either version 3, or (at your option)
+;; any later version.
+
+;; GNU Emacs is distributed in the hope that it will be useful, but WITHOUT
+;; ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
+;; or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
+;; License for more details.
+
+;; You should have received a copy of the GNU General Public License
+;; along with GNU Emacs; see the file COPYING. If not, write to the Free
+;; Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+;; 02110-1301, USA.
+
+;;; Commentary:
+;;
+;; Back-end driven by wpa_cli
+;;
+;; Requires root to use wpa_cli
+
+;;; Code:
+
+(require 'enwc)
+
+(defgroup enwc-wpa nil
+ "Settings for wpa_cli back-end."
+ :prefix "enwc-wpa-"
+ :group 'enwc)
+
+(defcustom enwc-wpa-wpa-cli-program "/usr/bin/wpa_cli"
+ "Name of the wpa_cli executable."
+ :group 'enwc-wpa
+ :type 'file)
+
+(defvar enwc-wpa--wpa-cli-buffer " *ENWC wpa_cli*")
+
+;; (defun enwc-wpa--run-wpa-cli (&rest args)
+;; ;; Allow us to go into root.
+;; (cd "/sudo::/")
+;; (setq args (append
+;; (list "-i" (if enwc-using-wired enwc-wired-device
enwc-wireless-device))
+;; args))
+;; (apply #'call-process "wpa_cli" nil enwc-wpa--wpa-cli-buffer nil args))
+
+
+;; Load/Unload
+
+(defun enwc-wpa-load ()
+ ;; Start the wpa_cli process
+ ;; Start the wpa_supplicant process if necessary
+)
+
+
+; ;;;;;;;;;; ;
+; ;; Scan ;; ;
+; ;;;;;;;;;; ;
+
+(defun enwc-wpa-scan ()
+ "Run wpa_cli to get a scan"
+ (enwc-wpa--run-wpa-cli "scan")
+ ()
+ )
+
+;;; enwc-wpa.el ends here
- [elpa] master 5088938 40/76: Removed erroneous comment., (continued)
- [elpa] master 5088938 40/76: Removed erroneous comment., Ian Dunn, 2017/02/23
- [elpa] master 17f27c6 18/76: (enwc-nm-prop-to-prop, enwc-nm-get-sec-types): Removed., Ian Dunn, 2017/02/23
- [elpa] master ee90297 31/76: (enwc-nm.el): Fixed several docstrings, and file header., Ian Dunn, 2017/02/23
- [elpa] master 4e0d5a2 41/76: Cosmetic changes., Ian Dunn, 2017/02/23
- [elpa] master 8f21449 45/76: Removed tag 2.0, Ian Dunn, 2017/02/23
- [elpa] master ec0539b 42/76: Fixed enwc-setup to be able to be called more than once., Ian Dunn, 2017/02/23
- [elpa] master 5c63470 48/76: Fixed autoloads generation and added hgignore., Ian Dunn, 2017/02/23
- [elpa] master 43c98da 50/76: Changed enwc-last-scan to a hashtable., Ian Dunn, 2017/02/23
- [elpa] master c6585bb 47/76: Added autoloads, Ian Dunn, 2017/02/23
- [elpa] master 48e7aa4 55/76: Updated Makefile, Ian Dunn, 2017/02/23
- [elpa] master 2e07c3a 54/76: Began work on WPA backend. EXPERIMENTAL!,
Ian Dunn <=
- [elpa] master ba6061b 51/76: Created more robust backend system., Ian Dunn, 2017/02/23
- [elpa] master ad38333 59/76: Cleaned up enwc-refresh-widths and changed enwc-details-list to enwc-column-specs., Ian Dunn, 2017/02/23
- [elpa] master a46fe3c 64/76: Don't switch to the ENWC buffer when processing a scan., Ian Dunn, 2017/02/23
- [elpa] master 33515f8 66/76: Silenced byte-compiler., Ian Dunn, 2017/02/23
- [elpa] master bcb33e6 30/76: (enwc-get-networks): Improved docstring., Ian Dunn, 2017/02/23
- [elpa] master 245a82f 52/76: Moved Wicd and NetworkManager backends to new system., Ian Dunn, 2017/02/23
- [elpa] master 3b1bbc6 69/76: Fixed autoloads target in Makefile, Ian Dunn, 2017/02/23
- [elpa] master 8c17c8c 73/76: Updated hgignore to ignore elc files in top-level directory., Ian Dunn, 2017/02/23
- [elpa] master a3c59cc 74/76: Updated version to 2.0beta1, Ian Dunn, 2017/02/23
- [elpa] master 2e271c6 72/76: Moved lisp files into top-level directory., Ian Dunn, 2017/02/23