All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] ap: Clarify settings in iwd.ap(5)
@ 2021-02-18 19:55 Andrew Zaborowski
  2021-02-18 19:55 ` [PATCH 2/2] ap: Drop an outdated TODO comment Andrew Zaborowski
  2021-02-18 20:00 ` [PATCH 1/2] ap: Clarify settings in iwd.ap(5) Denis Kenzior
  0 siblings, 2 replies; 4+ messages in thread
From: Andrew Zaborowski @ 2021-02-18 19:55 UTC (permalink / raw)
  To: iwd

[-- Attachment #1: Type: text/plain, Size: 4520 bytes --]

Change some of the wording and add some references, for example the phrase
IP pool was used but it wasn't clear what it referred to.
---
 src/iwd.ap.rst | 49 +++++++++++++++++++++++++++----------------------
 1 file changed, 27 insertions(+), 22 deletions(-)

diff --git a/src/iwd.ap.rst b/src/iwd.ap.rst
index 52312855..9240f25b 100644
--- a/src/iwd.ap.rst
+++ b/src/iwd.ap.rst
@@ -3,7 +3,7 @@
 ============
 
 --------------------------------------
-Configuration of IWD access point
+Configuration of IWD access points
 --------------------------------------
 
 :Author: James Prestwood <prestwoj@gmail.com>
@@ -25,19 +25,21 @@ Description of access point provisioning files.
 DESCRIPTION
 ===========
 
-An access point provisioning files define the configuration of an IWD access
+An access point provisioning file defines the configuration of an IWD access
 point. These files live in *$STATE_DIRECTORY*/ap (/var/lib/iwd/ap by default).
+They are read when the net.connman.iwd.AccessPoint.StartProfile(ssid) DBus
+method is used.
 
 FILE FORMAT
 ===========
 
-See *iwd.network* for details on the file format.
+See *iwd.network* for details on the settings file syntax.
 
 SETTINGS
 ========
 
 The settings are split into several categories.  Each category has a group
-associated with it and described in separate tables below.
+associated with it and is described in the corresponding table below.
 
 Network Authentication Settings
 -------------------------------
@@ -54,13 +56,14 @@ configuration.
    * - Passphrase
      - 8..63 character string
 
-       Passphrase to be used with this access point.
+       PSK Passphrase to be used with this access point.
 
 DHCP Server Settings
 --------------------
 
-The group ``[IPv4]`` contains settings for IWD's built in DHCP server. All
-settings are optional.
+The group ``[IPv4]`` contains settings for IWD's built-in DHCP server. All
+settings are optional.  They're used if network configuration was enabled as
+described in *iwd.config*(5).
 
 .. list-table::
    :header-rows: 0
@@ -68,41 +71,43 @@ settings are optional.
    :widths: 20 80
 
    * - Address
-     - IP Address of AP
+     - Local IP Address of the AP
 
-       Optional address for the DHCP server/access point. If provided this
-       address will be set on the AP interface and any other DHCP server options
-       will be derived from this address, unless they are overriden inside the
-       AP profile. If [IPv4].Address is not provided and no IP address is set
-       on the interface prior to calling StartProfile the IP pool will be used.
+       Optional local address for the access point and the DHCP server. If
+       provided this address will be set on the AP interface and any other DHCP
+       server options will be derived from this address, unless they are
+       overriden by other settings. If [IPv4].Address is not provided and no IP
+       address is set on the interface prior to calling StartProfile the IP
+       pool defined by the global [General].APRanges setting will be used.
 
    * - Gateway
      - IP Address of gateway
 
-       IP address of gateway. This will inherit from [IPv4].Address if not
-       provided.
+       IP address of the gateway to be advertised by DHCP. This will inherit
+       the value of [IPv4].Address if not provided.
 
    * - Netmask
-     - Netmask of DHCP server
+     - Local netmask of the AP
 
-       This will be generated from [IPv4].Address if not provided.
+       Defaults to a 24-bit netmask if not provided.
 
    * - DNSList
-     - List of DNS servers
+     - List of DNS servers as a comma-separated IP address list
 
        A list of DNS servers which will be advertised by the DHCP server. If
        not provided no DNS servers will be sent by the DHCP server.
 
    * - LeaseTime
-     - Time limit for DHCP leases
+     - Time limit for DHCP leases in seconds
 
        Override the default lease time.
 
    * - IPRange
-     - Range of IPs to use for the DHCP server
+     - Range of IPs to use for the DHCP server given as two addresses separated
+       by a comma
 
-       If not provided a default range will be chosen which is the DHCP server
-       address + 1 to 254.
+       From and to addresses of the range assigned to clients by DHCP.  If not
+       provided the range from local address + 1 to .254 will be used.
 
 SEE ALSO
 ========
-- 
2.27.0

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH 2/2] ap: Drop an outdated TODO comment
  2021-02-18 19:55 [PATCH 1/2] ap: Clarify settings in iwd.ap(5) Andrew Zaborowski
@ 2021-02-18 19:55 ` Andrew Zaborowski
  2021-02-18 20:00   ` Denis Kenzior
  2021-02-18 20:00 ` [PATCH 1/2] ap: Clarify settings in iwd.ap(5) Denis Kenzior
  1 sibling, 1 reply; 4+ messages in thread
From: Andrew Zaborowski @ 2021-02-18 19:55 UTC (permalink / raw)
  To: iwd

[-- Attachment #1: Type: text/plain, Size: 531 bytes --]

---
 src/ap.c | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/src/ap.c b/src/ap.c
index d34b2edd..fd1a9a6b 100644
--- a/src/ap.c
+++ b/src/ap.c
@@ -2079,11 +2079,6 @@ static void ap_start_cb(struct l_genl_msg *msg, void *user_data)
 		goto failed;
 	}
 
-	/*
-	 * TODO: Add support for provisioning files where user could configure
-	 * specific DHCP sever settings.
-	 */
-
 	if (ap->server && !l_dhcp_server_start(ap->server)) {
 		l_error("DHCP server failed to start");
 		goto failed;
-- 
2.27.0

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH 1/2] ap: Clarify settings in iwd.ap(5)
  2021-02-18 19:55 [PATCH 1/2] ap: Clarify settings in iwd.ap(5) Andrew Zaborowski
  2021-02-18 19:55 ` [PATCH 2/2] ap: Drop an outdated TODO comment Andrew Zaborowski
@ 2021-02-18 20:00 ` Denis Kenzior
  1 sibling, 0 replies; 4+ messages in thread
From: Denis Kenzior @ 2021-02-18 20:00 UTC (permalink / raw)
  To: iwd

[-- Attachment #1: Type: text/plain, Size: 522 bytes --]

Hi Andrew,

On 2/18/21 1:55 PM, Andrew Zaborowski wrote:
> Change some of the wording and add some references, for example the phrase
> IP pool was used but it wasn't clear what it referred to.
> ---
>   src/iwd.ap.rst | 49 +++++++++++++++++++++++++++----------------------
>   1 file changed, 27 insertions(+), 22 deletions(-)
> 

I seem to be getting:

   GEN      src/iwd.ap.5
src/iwd.ap.rst:64: (WARNING/2) Inline emphasis start-string without end-string.
Exiting due to level-2 (WARNING) system message.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH 2/2] ap: Drop an outdated TODO comment
  2021-02-18 19:55 ` [PATCH 2/2] ap: Drop an outdated TODO comment Andrew Zaborowski
@ 2021-02-18 20:00   ` Denis Kenzior
  0 siblings, 0 replies; 4+ messages in thread
From: Denis Kenzior @ 2021-02-18 20:00 UTC (permalink / raw)
  To: iwd

[-- Attachment #1: Type: text/plain, Size: 171 bytes --]

Hi Andrew,

On 2/18/21 1:55 PM, Andrew Zaborowski wrote:
> ---
>   src/ap.c | 5 -----
>   1 file changed, 5 deletions(-)
> 

Applied, thanks.

Regards,
-Denis

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-02-18 20:00 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-18 19:55 [PATCH 1/2] ap: Clarify settings in iwd.ap(5) Andrew Zaborowski
2021-02-18 19:55 ` [PATCH 2/2] ap: Drop an outdated TODO comment Andrew Zaborowski
2021-02-18 20:00   ` Denis Kenzior
2021-02-18 20:00 ` [PATCH 1/2] ap: Clarify settings in iwd.ap(5) Denis Kenzior

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.