Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3db59438 authored by Johannes Berg's avatar Johannes Berg Committed by John W. Linville
Browse files

mac80211: remove wiphy_to_hw



This isn't used by anyone, if we ever need it we can add
it back, until then it's useless.

Signed-off-by: default avatarJohannes Berg <johannes@sipsolutions.net>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent c6a1fa12
Loading
Loading
Loading
Loading
+0 −2
Original line number Original line Diff line number Diff line
@@ -868,8 +868,6 @@ struct ieee80211_hw {
	u8 max_altrate_tries;
	u8 max_altrate_tries;
};
};


struct ieee80211_hw *wiphy_to_hw(struct wiphy *wiphy);

/**
/**
 * SET_IEEE80211_DEV - set device for 802.11 hardware
 * SET_IEEE80211_DEV - set device for 802.11 hardware
 *
 *
+0 −7
Original line number Original line Diff line number Diff line
@@ -17,13 +17,6 @@
#include "rate.h"
#include "rate.h"
#include "mesh.h"
#include "mesh.h"


struct ieee80211_hw *wiphy_to_hw(struct wiphy *wiphy)
{
	struct ieee80211_local *local = wiphy_priv(wiphy);
	return &local->hw;
}
EXPORT_SYMBOL(wiphy_to_hw);

static bool nl80211_type_check(enum nl80211_iftype type)
static bool nl80211_type_check(enum nl80211_iftype type)
{
{
	switch (type) {
	switch (type) {