diff options
author | Beni Lev <[email protected]> | 2017-07-25 11:25:25 +0300 |
---|---|---|
committer | Johannes Berg <[email protected]> | 2017-09-05 11:28:52 +0200 |
commit | 9de981f507474f326e42117858dc9a9321331ae5 (patch) | |
tree | 0fda5ebbc59f759042823464839eba4b2cf66e0f /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | 89e9bfc4ee859ad2a477f10aa2d5c37377242296 (diff) |
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: [email protected]
Signed-off-by: Beni Lev <[email protected]>
Signed-off-by: Luca Coelho <[email protected]>
Signed-off-by: Johannes Berg <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions