diff options
author | Sara Sharon <sara.sharon@intel.com> | 2015-07-13 14:50:47 +0300 |
---|---|---|
committer | Emmanuel Grumbach <emmanuel.grumbach@intel.com> | 2015-08-04 21:29:35 +0300 |
commit | 6eb031d2fe2d9a3d7eaaba151c64e20bd0220fc9 (patch) | |
tree | bd8fc8d1d891fa398a0b396af29665f07eca530a /drivers/net/wireless/iwlwifi/iwl-trans.h | |
parent | 48ed7040315636f825c989e0752125ea275da82f (diff) | |
download | blackbird-op-linux-6eb031d2fe2d9a3d7eaaba151c64e20bd0220fc9.tar.gz blackbird-op-linux-6eb031d2fe2d9a3d7eaaba151c64e20bd0220fc9.zip |
iwlwifi: add wide firmware command support for notifications
Add support for extended command id in notification system.
Extended command id header contains group id in addition to command id.
Signed-off-by: Sara Sharon <sara.sharon@intel.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-trans.h')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-trans.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-trans.h b/drivers/net/wireless/iwlwifi/iwl-trans.h index e698ed5e34cc..2f79e54823c4 100644 --- a/drivers/net/wireless/iwlwifi/iwl-trans.h +++ b/drivers/net/wireless/iwlwifi/iwl-trans.h @@ -148,6 +148,9 @@ static inline u32 iwl_cmd_id(u8 opcode, u8 groupid, u8 version) return opcode + (groupid << 8) + (version << 16); } +/* make u16 wide id out of u8 group and opcode */ +#define WIDE_ID(grp, opcode) ((grp << 8) | opcode) + /* due to the conversion, this group is special; new groups * should be defined in the appropriate fw-api header files */ |