diff options
author | Johannes Berg <johannes.berg@intel.com> | 2012-03-06 16:31:02 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2012-03-07 13:56:34 -0500 |
commit | f8d7c1a18d5e77b17b5cc1ebefa21eaea7f2d0fa (patch) | |
tree | b5be4a0c137949e61b2dd62abbcd27fc2994dacb /drivers/net/wireless/iwlwifi/iwl-ucode.c | |
parent | 7559553660da6cda3aa798c4e8eb681b63402819 (diff) |
iwlwifi: move packet to transport
The base packet structure will (hopefully) be
the same for all transports, but what is in it
differs. Remove the union of all the possible
contents and move the packet itself into the
transport header file. This requires changing
all users of the union to just use pkt->data.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-ucode.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-ucode.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-ucode.c b/drivers/net/wireless/iwlwifi/iwl-ucode.c index 4d34327f9425..8267dbe869d5 100644 --- a/drivers/net/wireless/iwlwifi/iwl-ucode.c +++ b/drivers/net/wireless/iwlwifi/iwl-ucode.c | |||
@@ -186,7 +186,7 @@ int iwlagn_rx_calib_result(struct iwl_priv *priv, | |||
186 | struct iwl_device_cmd *cmd) | 186 | struct iwl_device_cmd *cmd) |
187 | { | 187 | { |
188 | struct iwl_rx_packet *pkt = rxb_addr(rxb); | 188 | struct iwl_rx_packet *pkt = rxb_addr(rxb); |
189 | struct iwl_calib_hdr *hdr = (struct iwl_calib_hdr *)pkt->u.raw; | 189 | struct iwl_calib_hdr *hdr = (struct iwl_calib_hdr *)pkt->data; |
190 | int len = le32_to_cpu(pkt->len_n_flags) & FH_RSCSR_FRAME_SIZE_MSK; | 190 | int len = le32_to_cpu(pkt->len_n_flags) & FH_RSCSR_FRAME_SIZE_MSK; |
191 | 191 | ||
192 | /* reduce the size of the length field itself */ | 192 | /* reduce the size of the length field itself */ |
@@ -442,7 +442,7 @@ static void iwl_alive_fn(struct iwl_notif_wait_data *notif_wait, | |||
442 | struct iwl_alive_data *alive_data = data; | 442 | struct iwl_alive_data *alive_data = data; |
443 | struct iwl_alive_resp *palive; | 443 | struct iwl_alive_resp *palive; |
444 | 444 | ||
445 | palive = &pkt->u.alive_frame; | 445 | palive = (void *)pkt->data; |
446 | 446 | ||
447 | IWL_DEBUG_FW(priv, "Alive ucode status 0x%08X revision " | 447 | IWL_DEBUG_FW(priv, "Alive ucode status 0x%08X revision " |
448 | "0x%01X 0x%01X\n", | 448 | "0x%01X 0x%01X\n", |