cfg80211.c (457fb0415a887b6389854b850e9815cf0ec44178) cfg80211.c (551185ca0a97a11917edc3ad8e11d68912795902)
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

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

355 GROUP_USAGE | TX_USAGE,
356 key->key_len,
357 NULL,
358 key->key, KEY_OP_INIT_VAL, NULL,
359 NO_SYNC_WMIFLAG);
360 }
361
362 if (!ar->usr_bss_filter) {
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

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

355 GROUP_USAGE | TX_USAGE,
356 key->key_len,
357 NULL,
358 key->key, KEY_OP_INIT_VAL, NULL,
359 NO_SYNC_WMIFLAG);
360 }
361
362 if (!ar->usr_bss_filter) {
363 clear_bit(CLEAR_BSSFILTER_ON_BEACON, &ar->flag);
363 if (ath6kl_wmi_bssfilter_cmd(ar->wmi, ALL_BSS_FILTER, 0) != 0) {
364 ath6kl_err("couldn't set bss filtering\n");
365 up(&ar->sem);
366 return -EIO;
367 }
368 }
369
370 ar->nw_type = ar->next_mode;

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

633 s8 n_channels = 0;
634 u16 *channels = NULL;
635 int ret = 0;
636
637 if (!ath6kl_cfg80211_ready(ar))
638 return -EIO;
639
640 if (!ar->usr_bss_filter) {
364 if (ath6kl_wmi_bssfilter_cmd(ar->wmi, ALL_BSS_FILTER, 0) != 0) {
365 ath6kl_err("couldn't set bss filtering\n");
366 up(&ar->sem);
367 return -EIO;
368 }
369 }
370
371 ar->nw_type = ar->next_mode;

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

634 s8 n_channels = 0;
635 u16 *channels = NULL;
636 int ret = 0;
637
638 if (!ath6kl_cfg80211_ready(ar))
639 return -EIO;
640
641 if (!ar->usr_bss_filter) {
642 clear_bit(CLEAR_BSSFILTER_ON_BEACON, &ar->flag);
641 ret = ath6kl_wmi_bssfilter_cmd(
642 ar->wmi,
643 (test_bit(CONNECTED, &ar->flag) ?
644 ALL_BUT_BSS_FILTER : ALL_BSS_FILTER), 0);
645 if (ret) {
646 ath6kl_err("couldn't set bss filtering\n");
647 return ret;
648 }

--- 1248 unchanged lines hidden ---
643 ret = ath6kl_wmi_bssfilter_cmd(
644 ar->wmi,
645 (test_bit(CONNECTED, &ar->flag) ?
646 ALL_BUT_BSS_FILTER : ALL_BSS_FILTER), 0);
647 if (ret) {
648 ath6kl_err("couldn't set bss filtering\n");
649 return ret;
650 }

--- 1248 unchanged lines hidden ---