Diff for /wikisrc/Converting_drivers_to_the_new_wifi_stack.mdwn between versions 1.10 and 1.11

version 1.10, 2021/01/17 15:57:41 version 1.11, 2021/01/17 16:08:00
Line 127  reflects on the driver and causes most o Line 127  reflects on the driver and causes most o
   
    An example of a multi-frequency driver doing this is iwm(4).     An example of a multi-frequency driver doing this is iwm(4).
   
    To add the channels for a band, call     It uses a helper function to add single channels individually
      via ``ieee80211_add_channel``.
      To add the channels for a band, it calls
    ``iwm_add_channel_band(ic, chans, maxchans, nchans, start, num, bands)``     ``iwm_add_channel_band(ic, chans, maxchans, nchans, start, num, bands)``
    where ``chans``, ``maxchans`` and ``nchans`` are the arguments passed to     where ``chans``, ``maxchans`` and ``nchans`` are the arguments passed to
    this callback, chans collecting the resulting channels, nchans pointing     this callback, chans collecting the resulting channels, nchans pointing
Line 135  reflects on the driver and causes most o Line 137  reflects on the driver and causes most o
    bands to add (multiple IEEE80211_MODE_* bits). The offset ``start``     bands to add (multiple IEEE80211_MODE_* bits). The offset ``start``
    is the index of the first channel to add to the output (first call will     is the index of the first channel to add to the output (first call will
    always be with 0 as ``start``), and ``num`` the number of channels     always be with 0 as ``start``), and ``num`` the number of channels
    you expect ``iwm_add_channel_band`` to add.     you expect ``iwm_add_channel_band`` to add. The ``iwm_add_channel_band``
      helper function iterates over the channels, gets flags for the channels
      from firmware and calls ``ieee80211_add_channel``.
   
  * If your driver used to override state machine functions (typical   * If your driver used to override state machine functions (typical
    `newstate` to controll LEDs when associating or similar),     `newstate` to controll LEDs when associating or similar),

Removed from v.1.10  
changed lines
  Added in v.1.11


CVSweb for NetBSD wikisrc <wikimaster@NetBSD.org> software: FreeBSD-CVSweb