• Holger Schurig's avatar
    libertas: rework event subscription · 3a188649
    Holger Schurig authored
    This patch moves re-works the implementation of event subscription
    via debugfs. For this:
    
    * it tells cmd.c and cmdresp.c about CMD_802_11_SUBSCRIBE_EVENT
    * removes lots of low-level cmd stuff from debugfs.c
    * create unified functions to read/write snr, rssi, bcnmiss and
      failcount
    * introduces #define's for subscription event bitmask values
    * add a function to search for a specific element in an IE
      (a.k.a. TLV)
    * add a function to find out the size of the TLV. This is needed
      because lbs_prepare_and_send_command() has an argument for a
      data buffer, but not for it's lengths and TLVs can be, by
      definition, vary in size.
    * fix a bug where it was not possible to disable an event
    Signed-off-by: default avatarHolger Schurig <hs4233@mail.mn-solutions.de>
    Acked-by: default avatarDan Williams <dcbw@redhat.com>
    Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
    3a188649
debugfs.c 28.3 KB