• Wey-Yi Guy's avatar
    iwlwifi: new debugging feature for dumping data traffic · 20594eb0
    Wey-Yi Guy authored
    The traffic buffer will only beallocated and used if either bit 23
    (IWL_DX_TX) or bit 24 (IWL_DL_RX) of "debug" is set;
    example: "debug=0x800000" - log tx data traffic
             "debug=0x1000000" - log rx data traffic
             "debug=0x1800000" - log both tx and rx traffic
    The traffic log will store the beginning portion (64 bytes)  of the
    latest 256 of tx and rx packets in the round-robbin buffer for
    user can examine the log through debugfs file.
    How to display the current logged tx/rx traffic and txfifo and rxfifo
    read/write point:
    "cat traffic_log" in /sys/kernel/debug/ieee80211/phy0/iwlagn/debug
    By echo "0" to traffic_log file will empty the traffic log buffer and
    reset both tx and rx taffic log index to 0.
    Signed-off-by: default avatarWey-Yi Guy <wey-yi.w.guy@intel.com>
    Signed-off-by: default avatarReinette Chatre <reinette.chatre@intel.com>
    Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>