Beni Lev 9de981f507 mac80211_hwsim: Use proper TX power
In struct ieee80211_tx_info, control.vif pointer and rate_driver_data[0]
falls on the same place, depending on the union usage.
During the whole TX process, the union is referred to as a control struct,
which holds the vif that is later used in the tx flow, especially in order
to derive the used tx power.
Referring direcly to rate_driver_data[0] and assigning a value to it,
overwrites the vif pointer, hence making all later references irrelevant.
Moreover, rate_driver_data[0] isn't used later in the flow in order to
retrieve the channel that it is pointing to.

Cc: stable@vger.kernel.org
Signed-off-by: Beni Lev <beni.lev@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2017-09-05 11:28:52 +02:00
..
2017-08-13 12:44:18 -07:00
2017-07-24 17:38:21 +02:00
2017-07-04 14:28:22 -07:00
2017-07-17 15:00:47 +02:00
2017-07-03 20:55:59 -07:00
2017-08-14 09:34:10 +02:00
2017-07-06 11:32:40 -07:00
2017-08-24 14:01:18 -07:00
2017-09-05 11:28:52 +02:00
2017-07-01 14:30:39 -07:00
2017-08-17 10:23:45 +02:00
2017-08-26 12:46:14 -07:00
2017-08-01 15:22:55 -07:00
2017-07-13 11:49:52 -07:00
2017-07-05 17:09:27 -07:00
2017-07-04 14:47:47 -07:00
2017-07-06 15:38:31 -07:00
2017-08-21 11:08:03 +02:00
2017-08-30 15:03:00 -07:00
2017-08-13 12:41:58 -07:00
2017-08-24 13:23:03 -07:00
2017-08-13 12:27:42 -07:00
2017-07-03 20:27:48 -07:00