]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitce8d148dbd5f4189325f7789217721152d56334a
treebee78c393a782b2cd1cdd5f44d35406e6183aecd
parent127d200a0042cf1bf18c2af9ffdee0eff4b2f91c
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