eiwd

no dbus iwd with iwctl functionality
git clone https://git.daat.foo/repos/eiwd.git
Log | Files | Refs | Submodules | README | LICENSE

TODO (11413B)


      1 Background
      2 ==========
      3 
      4 - Priority scale: High, Medium and Low
      5 
      6 - Complexity scale: C1, C2, C4 and C8.  The complexity scale is exponential,
      7   with complexity 1 being the lowest complexity.  Complexity is a function
      8   of both task 'complexity' and task 'scope'.
      9 
     10   The general rule of thumb is that a complexity 1 task should take 1-2 weeks
     11   for a person very familiar with the codebase.  Higher complexity tasks
     12   require more time and have higher uncertainty.
     13 
     14   Higher complexity tasks should be refined into several lower complexity tasks
     15   once the task is better understood.
     16 
     17 
     18 mac80211_hwsim
     19 ==============
     20 
     21 - Add support for HWSIM_CMD_SET_RADIO command
     22 
     23   To allow modifying an existing radio, add the HWSIM_CMD_SET_RADIO.  The
     24   first possible feature should be to emulate the hardware RFKILL switch.
     25 
     26   It might be required to add a HWSIM_ATTR_RADIO_HW_RFKILL attribute flag
     27   to the HWSIM_CMD_NEW_RADIO to enable virtual radios with a hardware
     28   level RFKILL switch.
     29 
     30   Priority: Medium
     31   Complexity: C1
     32 
     33 - Allow configuration of MAC address or list of MAC addresses
     34 
     35   The radios are auto-generating a fake MAC address.  It would be useful
     36   to allow specifying a MAC address to be used.  In certain cases it might
     37   be also useful to provide a list of MAC addresses so that for example
     38   with secondary interfaces these can be used.
     39 
     40   Priority: Low
     41   Complexity: C2
     42 
     43 - Move mac80211_hwsim.h header file to UAPI includes
     44 
     45   The mac80211_hwsim.h is the public API description of this netlink
     46   interface and thus it should be provided via UAPI includes.
     47 
     48   For this work work the mac80211_hwsim.h header needs to be modified
     49   so that it also compiles from userspace.  At the moment it throws
     50   errors.  And it needs to become part of the UAPI headers of the
     51   Linux kernel.
     52 
     53   In addition it should provide HWSIM_GENL_NAME that provides the
     54   generic netlink "MAC82011_HWSIM" family string.
     55 
     56   Priority: Low
     57   Complexity: C1
     58 
     59 - Provide kernel option to allow defining the number of initial radios
     60 
     61   By default the mac80211_hwsim modules creates 2 radios by default unless
     62   it is overwritten with the radios=x module parameter.
     63 
     64   To allow loading the mac80211_hwsim by default and even with accidental
     65   loading of the module, it would be good to provide a kernel configuration
     66   option that allows changing the default value here.
     67 
     68   For our testing we want to load mac80211_hwsim without any radios. Maybe
     69   this should be the default for the new kernel option.
     70 
     71   If the default of initial radios can be changed to zero, then it is also
     72   possible to add MODULE_ALIAS_GENL_FAMILY to support auto-loading of
     73   the mac80211_hwsim kernel module.
     74 
     75   Priority: Low
     76   Complexity: C1
     77 
     78 - New configuration options for radios
     79 
     80   At the moment the radios created are all equal and feature rich.  However
     81   for testing we want to create radios with different emulated hardware
     82   capabilities.  Provide new attributes or flags that allow enabling or
     83   disabling certain mac80211 features.
     84 
     85   For example AP mode, P2P mode, number of interface combinations, TDLS
     86   support, number of Scan SSIDs, supported ciphers and so on.
     87 
     88   Priority: Low
     89   Complexity: C2
     90 
     91 
     92 Wireless monitor
     93 ================
     94 
     95 - Add support for PACKET_RECV_OUTPUT socket option of AF_PACKET
     96 
     97   Instead of having to switch every interface manually into promiscuous
     98   mode, it would be useful to set PACKET_RECV_OUTPUT to receive also
     99   the traffic that leaves the system.
    100 
    101   This would make tracing PAE / EAPoL traffic easy and provides better
    102   sniffing capabilities.
    103 
    104   Unfortunately, PACKET_RECV_OUTPUT logic is not implemented at all in
    105   the kernel. So, first implement it in the kernel, and then use it in
    106   nlmon.c as a set_sockopt option.
    107 
    108   Priority: Low
    109   Complexity: C8
    110 
    111 - Subscribe to all nl80211 multicast groups at startup
    112 
    113   It seems the nlmon packets are limited to actual subscribed multicast
    114   groups.  To get a complete picture of all the nl80211 commands and
    115   events, it is required that iwmon adds membership to all multicast
    116   groups that the nl80211 lists.
    117 
    118   This means that the netlink socket used for resolving nl80211 family
    119   name needs to be kept open and actively processed since it will also
    120   receive these multicast events.  However the event itself can be dropped
    121   since the one from nlmon with the proper kernel level timestamps should
    122   be taken into account.
    123 
    124   An alternative is to fix the netlink_deliver_tap() function in the
    125   kernel netlink layer to not be affected by the broadcast filtering.
    126 
    127   Priority: Medium
    128   Complexity: C1
    129 
    130 - Print the 'group' of the decoded message
    131 
    132   Whenever an event / message is received, iwmon should print the genl
    133   group of the message (e.g. mlme, scan, config, regulatory).  This will
    134   make it easier to add handling of such events / commands inside iwd.
    135 
    136   Priority: Medium
    137   Complexity: C1
    138 
    139 
    140 Wireless simulator
    141 ==================
    142 
    143 - Add support for builtin wireless access point emulator
    144 
    145   When creating a pair of mac80211_hwsim radios, allow one to operate as
    146   access point.  The hwsim utility will emulate the access point on the
    147   second interface for as long as it is running.  Which means that from
    148   the first interface it is possible to scan and connect to this access
    149   point using standard wireless tools (including iwd and iwctl).
    150 
    151   Code for the AP mode can be shared from iwd feature for access point
    152   operation once that has been implemented.
    153 
    154   Priority: Medium
    155   Complexity: C8
    156 
    157 
    158 Wireless daemon
    159 ===============
    160 
    161 - Add unit test data with 2nd RSNE in Authenticator 3/4 message
    162 
    163   The specification allows the AP to send a second RSN element in its 4-way
    164   handshake message 3/4.  Find some test data for this case and create a unit
    165   test case.
    166 
    167   Priority: Low
    168   Complexity: C1
    169 
    170 - Handle "Use group cipher suite" option for pairwise ciphers
    171 
    172   If the AP specifies "Use group cipher suite" as its only pairwise suite, then
    173   handle this appropriately inside EAPoL handshaking code.  The install_gtk
    174   callback might need to be modified to handle this case.
    175 
    176   Priority: Low
    177   Complexity: C1
    178 
    179 - Add support for PMK Caching from 802.11-2007.  This is sometimes referred to
    180   as "fast, secure roam back".  Essentially the client caches PMKIDs generated
    181   when connecting to various APs.  If the client roams back to an AP that has
    182   already been connected to, and the PMK is cached by both, then the 802.1X
    183   exchange can be skipped.
    184 
    185   Priority: Low
    186   Complexity: C4
    187 
    188 - Add support for Opportunistic Key Caching (OKC).  This is not defined by
    189   any 802.11 standards, but is made available by major vendors such as Cisco
    190   and Microsoft.
    191 
    192   Priority: Low
    193   Complexity: C4
    194 
    195 - Add support for Automatic Power Save Delivery (APSD).  This includes
    196   scheduled (s-APSD) and unscheduled (u-APSD).  This will require rudimentary
    197   support of WMM protocol.  This feature was introduced in 802.11e.
    198 
    199   Priority: Low
    200   Complexity: C4
    201 
    202 - Add support for Wireless Network Management (WNM) from 802.11v.  Parts of
    203   this are needed for Passpoint support.
    204 
    205   Priority: Low
    206   Complexity: C8
    207 
    208 - Add support for Tunneled Direct Link Setup (TDLS) from 802.11z.
    209 
    210   Priority: Medium
    211   Complexity: C8
    212 
    213 - Add support for WiFi P2P.
    214 
    215   iwd will require a new P2P D-Bus API to be exposed in order for clients to
    216   manage P2P connections.  P2P specific logic for device management and
    217   switching between P2P and STA/AP modes for a particular interface will be
    218   required.
    219 
    220   Priority: Medium
    221   Complexity: C8
    222 
    223 - Add support for EAP-LEAP.  This is a Cisco proprietary EAP method that is
    224   quite widespread.
    225 
    226   Priority: Medium
    227   Complexity: C4
    228 
    229 - Add support for EAP-OTP.  OTP stands for 'One Time Password' and can be
    230   found in RFC3784.
    231 
    232   Priority: Low
    233   Complexity: C4
    234 
    235 - Implement Enrollee Session Overlap Detection after WSC Protocol Run
    236 
    237   WSC Best Practices v2.0.1, Section 3.15 describes an enhancement to detect
    238   PBC session overlaps.  The Enrollee is asked to perform an extra scan without
    239   the PBC request in the ProbeRequest frames after EAP-WSC completes
    240   successfully.  If another AP in PBC mode is found, then a SessionOverlap
    241   error should be reported to the user.
    242 
    243   Priority: Low
    244   Complexity: C2
    245 
    246 - DPP Support
    247 
    248   Device Provisioning Protocol is a new specification from WiFi Alliance.
    249   This allows devices to be provisioned, typically via a QR code.
    250 
    251   Priority: Low
    252   Complexity: C8
    253 
    254 - Support receiving OCE FILS Discovery Frames
    255 
    256   When operating in station mode, we should support receiving of FILS
    257   Discovery frames.
    258 
    259   Priority: Medium
    260   Complexity: C2
    261 
    262 - Support OCE Reduced Neighbor Reports
    263 
    264   OCE specifies that the AP can send Reduced Neighbor Reports if the STA sets
    265   the FILS Capability bit to true.  Reduced Neighbor Reports can be used to
    266   replace the need to scan, particularly if the AP reports RNR Completeness
    267   attribute.  RNRs can be sent in Probe Responses, Beacons and FILS Discovery
    268   frames.
    269 
    270   Priority: Medium
    271   Complexity: C2
    272 
    273 - Support OCE Scanning
    274 
    275   OCE Specifies various scanning optimizations.  When OCE scanning is enabled,
    276   (e.g. when OCE APs are detected, or via some other means), enable the
    277   relevant optimizations if driver support is present:
    278     NL80211_SCAN_FLAG_FILS_MAX_CHANNEL_TIME
    279     NL80211_SCAN_FLAG_ACCEPT_BCAST_PROBE_RESP
    280     NL80211_SCAN_FLAG_OCE_PROBE_REQ_HIGH_TX_RATE
    281     NL80211_SCAN_FLAG_OCE_PROBE_REQ_DEFERRAL_SUPPRESSION
    282 
    283   Priority: Medium
    284   Complexity: C2
    285 
    286 - Support OCE mutually non-overlapping channels optimization.
    287 
    288   OCE Section 3.10 mandates that the STA should scan channels 1, 6 and 11 in
    289   the 2.4GHz band first, unless it expects to find an AP on a different
    290   channel.
    291 
    292   Priority: Low
    293   Complexity: C1
    294 
    295 - Support OCE RSSI-based Association Rejection attribute
    296 
    297   OCE APs can reject a Re(Association) request with Status Code 34 and
    298   optionally include RSSI-based Association Rejection attribute.  This
    299   attribute can either contain a time delay information or an RSSI delta
    300   value.  If the time delay info is included, make sure that this particular
    301   BSS is blacklisted only for the duration of the delay.  If RSSI delta
    302   is included, make sure to handle that as well.
    303 
    304   Priority: Low
    305   Complexity: C1
    306 
    307 - Support additional metrics sent by OCE APs
    308 
    309   OCE APs can send BSS Load and Extended BSS Load IEs.  iwd already takes the
    310   BSS Load IE into account for ranking purposes.  If Extended BSS Load IE is
    311   present, it should be taken into account as well.
    312 
    313   Additionally, Estimated Service Parameter (ESP) and Reduced WAN Metrics
    314   should be taken into account if available.
    315 
    316   Priority: Low
    317   Complexity: C4
    318 
    319 - Support OCE FILS Indication element
    320 
    321   OCE APs that support FILS authentication can notify which domains they
    322   support.  This information is made available using the FILS Indication
    323   element as part of the Probe Response and Beacon frames.
    324 
    325   Priority: Low
    326   Complexity: C4
    327 
    328 - Support OCE Higher Layer Protocol Encapsulation
    329 
    330   This can be used to obtain DHCPv4 address faster.
    331 
    332   Priority: Medium
    333   Complexity: C4
    334 
    335 
    336 Network Configuration
    337 =====================
    338 
    339 - Support elements of RFC4436 - DNAv4
    340 
    341   Assumption: netconfig is able to save lease information for networks that
    342   have been joined previously and does not release the lease when the network
    343   is left temporarily.
    344 
    345   Attempt to re-assume the lease via methods described in DNAv4 if we attempt
    346   to rejoin a network and the lease has not expired yet.
    347 
    348   Priority: Low
    349   Complexity: C4