mac80211: proper bss private data handling

cfg80211 offers private data for each BSS struct,
which mac80211 uses. However, mac80211 uses internal
and external (cfg80211) BSS pointers interchangeably
and has a hack to put the cfg80211 bss struct into
the private struct.

Remove this hack, properly converting between the
pointers wherever necessary.

Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
Johannes Berg
2009-12-23 13:15:39 +01:00
committed by John W. Linville
부모 8e664fb3fd
커밋 0c1ad2cac1
7개의 변경된 파일82개의 추가작업 그리고 72개의 파일을 삭제

파일 보기

@@ -71,9 +71,6 @@ struct ieee80211_fragment_entry {
struct ieee80211_bss {
/* Yes, this is a hack */
struct cfg80211_bss cbss;
/* don't want to look up all the time */
size_t ssid_len;
u8 ssid[IEEE80211_MAX_SSID_LEN];
@@ -274,7 +271,7 @@ struct ieee80211_work {
bool privacy;
} probe_auth;
struct {
struct ieee80211_bss *bss;
struct cfg80211_bss *bss;
const u8 *supp_rates;
const u8 *ht_information_ie;
enum ieee80211_smps_mode smps;
@@ -317,7 +314,7 @@ struct ieee80211_if_managed {
int probe_send_count;
struct mutex mtx;
struct ieee80211_bss *associated;
struct cfg80211_bss *associated;
u8 bssid[ETH_ALEN];