From: Luis R. Rodriguez Date: Thu, 22 Jan 2009 23:05:53 +0000 (-0800) Subject: mac80211: allow mac80211 drivers to get to struct ieee80211_hw from wiphy X-Git-Tag: v2.6.30-rc1~662^2~836^2~59 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9a95371aa26e3cb9fb1340362912000088ff3c3e;p=pandora-kernel.git mac80211: allow mac80211 drivers to get to struct ieee80211_hw from wiphy If a driver is given a wiphy and it wants to get to its private mac80211 driver area it can use wiphy_to_ieee80211_hw() to get first to its ieee80211_hw and then access the private structure via hw->priv. The wiphy_priv() is already being used internally by mac80211 and drivers should not use this. This can be helpful in a drivers reg_notifier(). Signed-off-by: Luis R. Rodriguez Acked-by: Johannes Berg Signed-off-by: John W. Linville --- Reading git-diff-tree failed