main.c (6db8fa53ad4fa6d4b390e9bdd68f1238a01070ee) main.c (6765d0aa5ff5b92098f5e571f26904106eae6ff3)
1/*
2 * Copyright (c) 2004-2011 Atheros Communications Inc.
3 *
4 * Permission to use, copy, modify, and/or distribute this software for any
5 * purpose with or without fee is hereby granted, provided that the above
6 * copyright notice and this permission notice appear in all copies.
7 *
8 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES

--- 6 unchanged lines hidden (view full) ---

15 */
16
17#include "core.h"
18#include "hif-ops.h"
19#include "cfg80211.h"
20#include "target.h"
21#include "debug.h"
22
1/*
2 * Copyright (c) 2004-2011 Atheros Communications Inc.
3 *
4 * Permission to use, copy, modify, and/or distribute this software for any
5 * purpose with or without fee is hereby granted, provided that the above
6 * copyright notice and this permission notice appear in all copies.
7 *
8 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES

--- 6 unchanged lines hidden (view full) ---

15 */
16
17#include "core.h"
18#include "hif-ops.h"
19#include "cfg80211.h"
20#include "target.h"
21#include "debug.h"
22
23struct ath6kl_sta *ath6kl_find_sta(struct ath6kl *ar, u8 *node_addr)
23struct ath6kl_sta *ath6kl_find_sta(struct ath6kl_vif *vif, u8 *node_addr)
24{
24{
25 /* TODO: Findout vif */
26 struct ath6kl_vif *vif = ar->vif;
25 struct ath6kl *ar = vif->ar;
27 struct ath6kl_sta *conn = NULL;
28 u8 i, max_conn;
29
30 max_conn = (vif->nw_type == AP_NETWORK) ? AP_MAX_NUM_STA : 0;
31
32 for (i = 0; i < max_conn; i++) {
33 if (memcmp(node_addr, ar->sta_list[i].mac, ETH_ALEN) == 0) {
34 conn = &ar->sta_list[i];

--- 1401 unchanged lines hidden ---
26 struct ath6kl_sta *conn = NULL;
27 u8 i, max_conn;
28
29 max_conn = (vif->nw_type == AP_NETWORK) ? AP_MAX_NUM_STA : 0;
30
31 for (i = 0; i < max_conn; i++) {
32 if (memcmp(node_addr, ar->sta_list[i].mac, ETH_ALEN) == 0) {
33 conn = &ar->sta_list[i];

--- 1401 unchanged lines hidden ---