cfg80211.c (71af75b6929458d85f63c0649dc26d6f4c19729e) cfg80211.c (708884e7f7f3adb00ddb32d1c1a772d30bf86747)
1/*
2 * Copyright (c) 2004-2011 Atheros Communications Inc.
3 * Copyright (c) 2011-2012 Qualcomm Atheros, Inc.
4 *
5 * Permission to use, copy, modify, and/or distribute this software for any
6 * purpose with or without fee is hereby granted, provided that the above
7 * copyright notice and this permission notice appear in all copies.
8 *

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

3798 vif->nw_type = nw_type;
3799 vif->next_mode = nw_type;
3800 vif->listen_intvl_t = ATH6KL_DEFAULT_LISTEN_INTVAL;
3801 vif->bmiss_time_t = ATH6KL_DEFAULT_BMISS_TIME;
3802 vif->bg_scan_period = 0;
3803 vif->htcap[NL80211_BAND_2GHZ].ht_enable = true;
3804 vif->htcap[NL80211_BAND_5GHZ].ht_enable = true;
3805
1/*
2 * Copyright (c) 2004-2011 Atheros Communications Inc.
3 * Copyright (c) 2011-2012 Qualcomm Atheros, Inc.
4 *
5 * Permission to use, copy, modify, and/or distribute this software for any
6 * purpose with or without fee is hereby granted, provided that the above
7 * copyright notice and this permission notice appear in all copies.
8 *

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

3798 vif->nw_type = nw_type;
3799 vif->next_mode = nw_type;
3800 vif->listen_intvl_t = ATH6KL_DEFAULT_LISTEN_INTVAL;
3801 vif->bmiss_time_t = ATH6KL_DEFAULT_BMISS_TIME;
3802 vif->bg_scan_period = 0;
3803 vif->htcap[NL80211_BAND_2GHZ].ht_enable = true;
3804 vif->htcap[NL80211_BAND_5GHZ].ht_enable = true;
3805
3806 memcpy(ndev->dev_addr, ar->mac_addr, ETH_ALEN);
3806 eth_hw_addr_set(ndev, ar->mac_addr);
3807 if (fw_vif_idx != 0) {
3808 ndev->dev_addr[0] = (ndev->dev_addr[0] ^ (1 << fw_vif_idx)) |
3809 0x2;
3810 if (test_bit(ATH6KL_FW_CAPABILITY_CUSTOM_MAC_ADDR,
3811 ar->fw_capabilities))
3812 ndev->dev_addr[4] ^= 0x80;
3813 }
3814

--- 223 unchanged lines hidden ---
3807 if (fw_vif_idx != 0) {
3808 ndev->dev_addr[0] = (ndev->dev_addr[0] ^ (1 << fw_vif_idx)) |
3809 0x2;
3810 if (test_bit(ATH6KL_FW_CAPABILITY_CUSTOM_MAC_ADDR,
3811 ar->fw_capabilities))
3812 ndev->dev_addr[4] ^= 0x80;
3813 }
3814

--- 223 unchanged lines hidden ---