You are not logged in.

#1 2016-10-07 15:51:08

elfomelo
Member
Registered: 2011-10-27
Posts: 47

[SOLVED] Wireless card changing mac address

Hello,

My wireless network is changing its mac address. I can't configure an access point because the mac changes every few seconds.

Sequential calls of iw dev results

$ iw dev
phy#0
        Unnamed/non-netdev interface
                wdev 0xa
                addr 68:14:01:f7:89:fd
                type P2P-device
                txpower 0.00 dBm
        Interface wlp2s0
                ifindex 3
                wdev 0x1
                addr 22:b6:a5:4b:ae:33
                type managed
                txpower 0.00 dBm

$ iw dev
phy#0
        Unnamed/non-netdev interface
                wdev 0xa
                addr 68:14:01:f7:89:fd
                type P2P-device
                txpower 0.00 dBm
        Interface wlp2s0
                ifindex 3
                wdev 0x1
                addr 42:26:cf:0e:a3:cc
                type managed
                txpower 0.00 dBm

$ iw dev
phy#0
        Unnamed/non-netdev interface
                wdev 0xa
                addr 68:14:01:f7:89:fd
                type P2P-device
                txpower 0.00 dBm
        Interface wlp2s0
                ifindex 3
                wdev 0x1
                addr 42:26:cf:0e:a3:cc
                type managed
                txpower 0.00 dBm

lspci gives:

# lspci -v
02:00.0 Network controller: Qualcomm Atheros QCA6174 802.11ac Wireless Network Adapter (rev 32)
        Subsystem: Dell Device 0310
        Flags: bus master, fast devsel, latency 0, IRQ 280
        Memory at d5000000 (64-bit, non-prefetchable) [size=2M]
        Capabilities: [40] Power Management version 3
        Capabilities: [50] MSI: Enable+ Count=1/8 Maskable+ 64bit-
        Capabilities: [70] Express Endpoint, MSI 00
        Capabilities: [100] Advanced Error Reporting
        Capabilities: [148] Virtual Channel
        Capabilities: [168] Device Serial Number 00-00-00-00-00-00-00-00
        Capabilities: [178] Latency Tolerance Reporting
        Capabilities: [180] L1 PM Substates
        Kernel driver in use: ath10k_pci
        Kernel modules: ath10k_pci

The output of iw list is

 $ iw list
Wiphy phy0
        max # scan SSIDs: 16
        max scan IEs length: 195 bytes
        max # sched scan SSIDs: 0
        max # match sets: 0
        max # scan plans: 1
        max scan plan interval: -1
        max scan plan iterations: 0
        Retry short limit: 7
        Retry long limit: 4
        Coverage class: 0 (up to 0m)
        Device supports RSN-IBSS.
        Device supports AP-side u-APSD.
        Device supports T-DLS.
        Supported Ciphers:
                * WEP40 (00-0f-ac:1)
                * WEP104 (00-0f-ac:5)
                * TKIP (00-0f-ac:2)
                * CCMP (00-0f-ac:4)
                * CMAC (00-0f-ac:6)
        Available Antennas: TX 0x3 RX 0x3
        Configured Antennas: TX 0x3 RX 0x3
        Supported interface modes:
                 * IBSS
                 * managed
                 * AP
                 * AP/VLAN
                 * monitor
                 * mesh point
                 * P2P-client
                 * P2P-GO
                 * P2P-device
        Band 1:                                                                                                                                                            
                Capabilities: 0x19ef                                                                                                                                       
                        RX LDPC                                                                                                                                            
                        HT20/HT40                                                                                                                                          
                        SM Power Save disabled                                                                                                                             
                        RX HT20 SGI                                                                                                                                        
                        RX HT40 SGI                                                                                                                                        
                        TX STBC                                                                                                                                            
                        RX STBC 1-stream                                                                                                                                   
                        Max AMSDU length: 7935 bytes                                                                                                                       
                        DSSS/CCK HT40
                Maximum RX AMPDU length 65535 bytes (exponent: 0x003)
                Minimum RX AMPDU time spacing: 8 usec (0x06)
                HT TX/RX MCS rate indexes supported: 0-15
                Bitrates (non-HT):
                        * 1.0 Mbps
                        * 2.0 Mbps (short preamble supported)
                        * 5.5 Mbps (short preamble supported)
                        * 11.0 Mbps (short preamble supported)
                        * 6.0 Mbps
                        * 9.0 Mbps
                        * 12.0 Mbps
                        * 18.0 Mbps
                        * 24.0 Mbps
                        * 36.0 Mbps
                        * 48.0 Mbps
                        * 54.0 Mbps
                Frequencies:
                        * 2412 MHz [1] (20.0 dBm)
                        * 2417 MHz [2] (20.0 dBm)
                        * 2422 MHz [3] (20.0 dBm)
                        * 2427 MHz [4] (20.0 dBm)
                        * 2432 MHz [5] (20.0 dBm)
                        * 2437 MHz [6] (20.0 dBm)
                        * 2442 MHz [7] (20.0 dBm)
                        * 2447 MHz [8] (20.0 dBm)
                        * 2452 MHz [9] (20.0 dBm)
                        * 2457 MHz [10] (20.0 dBm)
                        * 2462 MHz [11] (20.0 dBm)
                        * 2467 MHz [12] (20.0 dBm) (no IR)
                        * 2472 MHz [13] (20.0 dBm) (no IR)
                        * 2484 MHz [14] (disabled)
        Band 2:
                Capabilities: 0x19ef
                        RX LDPC
                        HT20/HT40
                        SM Power Save disabled
                        RX HT20 SGI
                        RX HT40 SGI
                        TX STBC
                        RX STBC 1-stream
                        Max AMSDU length: 7935 bytes
                        DSSS/CCK HT40
                Maximum RX AMPDU length 65535 bytes (exponent: 0x003)
                Minimum RX AMPDU time spacing: 8 usec (0x06)
                HT TX/RX MCS rate indexes supported: 0-15
                VHT Capabilities (0x339071b2):
                        Max MPDU length: 11454
                        Supported Channel Width: neither 160 nor 80+80
                        RX LDPC
                        short GI (80 MHz)
                        TX STBC
                        SU Beamformee
                        MU Beamformee
                        RX antenna pattern consistency
                        TX antenna pattern consistency
                VHT RX MCS set:
                        1 streams: MCS 0-9
                        2 streams: MCS 0-9
                        3 streams: not supported
                        4 streams: not supported
                        5 streams: not supported
                        6 streams: not supported
                        7 streams: not supported
                        8 streams: not supported
                VHT RX highest supported: 0 Mbps
                VHT TX MCS set:
                        1 streams: MCS 0-9
                        2 streams: MCS 0-9
                        3 streams: not supported
                        4 streams: not supported
                        5 streams: not supported
                        6 streams: not supported
                        7 streams: not supported
                        8 streams: not supported
                VHT TX highest supported: 0 Mbps
                Bitrates (non-HT):
                        * 6.0 Mbps
                        * 9.0 Mbps
                        * 12.0 Mbps
                        * 18.0 Mbps
                        * 24.0 Mbps
                        * 36.0 Mbps
                        * 48.0 Mbps
                        * 54.0 Mbps
                Frequencies:
                        * 5180 MHz [36] (30.0 dBm) (no IR)
                        * 5200 MHz [40] (30.0 dBm) (no IR)
                        * 5220 MHz [44] (30.0 dBm) (no IR)
                        * 5240 MHz [48] (30.0 dBm) (no IR)
                        * 5260 MHz [52] (30.0 dBm) (no IR, radar detection)
                          DFS state: usable (for 6636 sec)
                          DFS CAC time: 0 ms
                        * 5280 MHz [56] (30.0 dBm) (no IR, radar detection)
                          DFS state: usable (for 6636 sec)
                          DFS CAC time: 0 ms
                        * 5300 MHz [60] (30.0 dBm) (no IR, radar detection)
                          DFS state: usable (for 6636 sec)
                          DFS CAC time: 0 ms
                        * 5320 MHz [64] (30.0 dBm) (no IR, radar detection)
                          DFS state: usable (for 6636 sec)
                          DFS CAC time: 0 ms
                        * 5500 MHz [100] (30.0 dBm) (no IR, radar detection)
                          DFS state: usable (for 6636 sec)
                          DFS CAC time: 0 ms
                        * 5520 MHz [104] (30.0 dBm) (no IR, radar detection)
                          DFS state: usable (for 6636 sec)
                          DFS CAC time: 0 ms
                        * 5540 MHz [108] (30.0 dBm) (no IR, radar detection)
                          DFS state: usable (for 6636 sec)
                          DFS CAC time: 0 ms
                        * 5560 MHz [112] (30.0 dBm) (no IR, radar detection)
                          DFS state: usable (for 6636 sec)
                          DFS CAC time: 0 ms
                        * 5580 MHz [116] (30.0 dBm) (no IR, radar detection)
                          DFS state: usable (for 6636 sec)
                          DFS CAC time: 0 ms
                        * 5600 MHz [120] (30.0 dBm) (no IR, radar detection)
                          DFS state: usable (for 6636 sec)
                          DFS CAC time: 0 ms
                        * 5620 MHz [124] (30.0 dBm) (no IR, radar detection)
                          DFS state: usable (for 6636 sec)
                          DFS CAC time: 0 ms
                        * 5640 MHz [128] (30.0 dBm) (no IR, radar detection)
                          DFS state: usable (for 6636 sec)
                          DFS CAC time: 0 ms
                        * 5660 MHz [132] (30.0 dBm) (no IR, radar detection)
                          DFS state: usable (for 6636 sec)
                          DFS CAC time: 0 ms
                        * 5680 MHz [136] (30.0 dBm) (no IR, radar detection)
                          DFS state: usable (for 6636 sec)
                          DFS CAC time: 0 ms
                        * 5700 MHz [140] (30.0 dBm) (no IR, radar detection)
                          DFS state: usable (for 6636 sec)
                          DFS CAC time: 0 ms
                        * 5720 MHz [144] (30.0 dBm) (no IR)
                        * 5745 MHz [149] (30.0 dBm) (no IR)
                        * 5765 MHz [153] (30.0 dBm) (no IR)
                        * 5785 MHz [157] (30.0 dBm) (no IR)
                        * 5805 MHz [161] (30.0 dBm) (no IR)
                        * 5825 MHz [165] (30.0 dBm) (no IR)
        Supported commands:
                 * new_interface
                 * set_interface
                 * new_key
                 * start_ap
                 * new_station
                 * new_mpath
                 * set_mesh_config
                 * set_bss
                 * authenticate
                 * associate
                 * deauthenticate
                 * disassociate
                 * join_ibss
                 * join_mesh
                 * remain_on_channel
                 * set_tx_bitrate_mask
                 * frame
                 * frame_wait_cancel
                 * set_wiphy_netns
                 * set_channel
                 * set_wds_peer
                 * tdls_mgmt
                 * tdls_oper
                 * probe_client
                 * set_noack_map
                 * register_beacons
                 * start_p2p_device
                 * set_mcast_rate
                 * channel_switch
                 * set_qos_map
                 * connect
                 * disconnect
        Supported TX frame types:
                 * IBSS: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
                 * managed: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
                 * AP: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
                 * AP/VLAN: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
                 * mesh point: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
                 * P2P-client: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
                 * P2P-GO: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
                 * P2P-device: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
        Supported RX frame types:
                 * IBSS: 0x40 0xb0 0xc0 0xd0
                 * managed: 0x40 0xd0
                 * AP: 0x00 0x20 0x40 0xa0 0xb0 0xc0 0xd0
                 * AP/VLAN: 0x00 0x20 0x40 0xa0 0xb0 0xc0 0xd0
                 * mesh point: 0xb0 0xc0 0xd0
                 * P2P-client: 0x40 0xd0
                 * P2P-GO: 0x00 0x20 0x40 0xa0 0xb0 0xc0 0xd0
                 * P2P-device: 0x40 0xd0
        WoWLAN support:
                 * wake up on disconnect
                 * wake up on magic packet
                 * wake up on pattern match, up to 22 patterns of 1-148 bytes,
                   maximum packet offset 128 bytes
        software interface modes (can always be added):
                 * AP/VLAN
                 * monitor
        valid interface combinations:
                 * #{ managed } <= 2, #{ AP, mesh point, P2P-client, P2P-GO } <= 2, #{ P2P-device } <= 1,
                   total <= 4, #channels <= 1
                 * #{ managed } <= 2, #{ P2P-client } <= 2, #{ AP, mesh point, P2P-GO } <= 1, #{ P2P-device } <= 1,
                   total <= 4, #channels <= 2
                 * #{ managed } <= 1, #{ IBSS } <= 1,
                   total <= 2, #channels <= 1
        HT Capability overrides:
                 * MCS: ff ff ff ff ff ff ff ff ff ff
                 * maximum A-MSDU length
                 * supported channel width
                 * short GI for 40 MHz
                 * max A-MPDU length exponent
                 * min MPDU start spacing
        Device supports TX status socket option.
        Device supports HT-IBSS.
        Device supports SAE with AUTHENTICATE command
        Device supports scan flush.
        Device supports AP scan.
        Device supports per-vif TX power setting
        Driver supports full state transitions for AP/GO clients
        Driver supports a userspace MPM
        Driver/device bandwidth changes during BSS lifetime (AP/GO mode)
        Device supports static SMPS
        Device supports configuring vdev MAC-addr on create.
        Device supports VHT-IBSS.


EDIT: So I finally solved the issue.  The wiki informs that newer versions of Network Manager enables mac spoofing by default. To disable it you add

  [device]
wifi.scan-rand-mac-address=no

to the file

/etc/NetworkManager/NetworkManager.conf

.

I'm marking the thread as solved.

Last edited by elfomelo (2016-10-10 14:23:46)

Offline

Board footer

Powered by FluxBB