mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 07:12:09 +00:00
Merge branch 'upstream' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-2.6 into upstream
Conflicts: drivers/net/wireless/zd1211rw/zd_mac.h net/ieee80211/softmac/ieee80211softmac_assoc.c
This commit is contained in:
commit
359f2d17e3
21 changed files with 158 additions and 60 deletions
|
@ -1100,15 +1100,13 @@ static struct sta_info * ap_add_sta(struct ap_data *ap, u8 *addr)
|
|||
{
|
||||
struct sta_info *sta;
|
||||
|
||||
sta = (struct sta_info *)
|
||||
kmalloc(sizeof(struct sta_info), GFP_ATOMIC);
|
||||
sta = kzalloc(sizeof(struct sta_info), GFP_ATOMIC);
|
||||
if (sta == NULL) {
|
||||
PDEBUG(DEBUG_AP, "AP: kmalloc failed\n");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
/* initialize STA info data */
|
||||
memset(sta, 0, sizeof(struct sta_info));
|
||||
sta->local = ap->local;
|
||||
skb_queue_head_init(&sta->tx_buf);
|
||||
memcpy(sta->addr, addr, ETH_ALEN);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue