iwlwifi: add debugfs to send host command
authorShahar S Matityahu <shahar.s.matityahu@intel.com>
Mon, 28 May 2018 08:18:43 +0000 (11:18 +0300)
committerLuca Coelho <luciano.coelho@intel.com>
Sat, 6 Oct 2018 07:25:52 +0000 (10:25 +0300)
commit755384b3778ddc33d168ef02547385e209775a7e
tree172a9dc41aaeef62fda259c23bff738cfcba12b1
parentd3f4b6debcc04b601d23b0f9a93f10cb97f68068
iwlwifi: add debugfs to send host command

Add debugfs to send host command in mvm and fmac op modes.
Allows to send host command at runtime via send_hcmd debugfs file.
The command is received as a string that represents hex values.

The struct of the command is as follows:
[cmd_id][flags][length][data]
cmd_id and flags are 8 chars long each.
length is 4 chars long.
data is length * 2 chars long.

Signed-off-by: Shahar S Matityahu <shahar.s.matityahu@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
drivers/net/wireless/intel/iwlwifi/fw/debugfs.c