mac80211: Add ieee80211_hw pointer to get_expected_throughput
authorMaxim Altshul <maxim.altshul@ti.com>
Thu, 4 Aug 2016 12:43:04 +0000 (15:43 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 5 Aug 2016 12:23:25 +0000 (14:23 +0200)
commit2439ca0402091badb24415e1b073ba12b34ba423
treebee78c393a782b2cd1cdd5f44d35406e6183aecd
parent9757235f451c27deaa88925399f070ff6fcea832
mac80211: Add ieee80211_hw pointer to get_expected_throughput

The variable is added to allow the driver an easy access to
it's own hw->priv when the op is invoked.

This fixes a crash in wlcore because it was relying on a
station pointer that wasn't initialized yet. It's the wrong
way to fix the crash, but it solves the problem for now and
it does make sense to have the hw pointer here.

Signed-off-by: Maxim Altshul <maxim.altshul@ti.com>
[rewrite commit message, fix indentation]
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/ti/wlcore/main.c
include/net/mac80211.h
net/mac80211/driver-ops.h