Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 266534
b: refs/heads/master
c: f91db9b
h: refs/heads/master
v: v3
  • Loading branch information
Raja Mani authored and Kalle Valo committed Aug 31, 2011
1 parent b13582c commit 711acf0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 22 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 31024d99003486c90c793dea58b55f7920f0488b
refs/heads/master: f91db9bbdae6c86f0178fa03937e39ef82932770
21 changes: 0 additions & 21 deletions trunk/drivers/net/wireless/ath/ath6kl/cfg80211.c
Original file line number Diff line number Diff line change
Expand Up @@ -425,8 +425,6 @@ void ath6kl_cfg80211_connect_event(struct ath6kl *ar, u16 channel,
unsigned char *ptr_ie_buf = ie_buf;
unsigned char *ieeemgmtbuf = NULL;
u8 source_mac[ETH_ALEN];
u16 capa_mask;
u16 capa_val;

/* capinfo + listen interval */
u8 assoc_req_ie_offset = sizeof(u16) + sizeof(u16);
Expand Down Expand Up @@ -459,24 +457,6 @@ void ath6kl_cfg80211_connect_event(struct ath6kl *ar, u16 channel,
}
}

if (nw_type & ADHOC_NETWORK) {
capa_mask = WLAN_CAPABILITY_IBSS;
capa_val = WLAN_CAPABILITY_IBSS;
} else {
capa_mask = WLAN_CAPABILITY_ESS;
capa_val = WLAN_CAPABILITY_ESS;
}

/* Before informing the join/connect event, make sure that
* bss entry is present in scan list, if it not present
* construct and insert into scan list, otherwise that
* event will be dropped on the way by cfg80211, due to
* this keys will not be plumbed in case of WEP and
* application will not be aware of join/connect status. */
bss = cfg80211_get_bss(ar->wdev->wiphy, NULL, bssid,
ar->wdev->ssid, ar->wdev->ssid_len,
capa_mask, capa_val);

/*
* Earlier we were updating the cfg about bss by making a beacon frame
* only if the entry for bss is not there. This can have some issue if
Expand Down Expand Up @@ -527,7 +507,6 @@ void ath6kl_cfg80211_connect_event(struct ath6kl *ar, u16 channel,
ieeemgmtbuf = kzalloc(size, GFP_ATOMIC);
if (!ieeemgmtbuf) {
ath6kl_err("ieee mgmt buf alloc error\n");
cfg80211_put_bss(bss);
return;
}

Expand Down

0 comments on commit 711acf0

Please sign in to comment.