]> 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)
commit77c9be99c28b75c6119999cc3dff8a554845577e
treebee78c393a782b2cd1cdd5f44d35406e6183aecd
parent3b71712ee50d5d09fc1180bcb8d86190973b37ce
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