title: Scapy Sends Malformed Packets
body: <p>I'm sending out probe requests using scapy. It works perfectly fine on my desktop but when I send it out from scapy, using the exact same code, the packets arrive malformed. I'm watching them in wireshark.</p>
  
  <p>The malformed one has a Logical-Link Control layer and the bits are all just out of order. I don't really know how else to put it. The source and destination mac addresses are both offset by a few bits. The packet is twice as large, I'm just really baffled.</p>
  
  <p>For example
  in scapy, my destination address is "aa:bb:cc:dd:ee:ff"</p>
  
  <p>In the packet capture, the destination is "00:00:00:aa:bb:cc"</p>
  
  <p>EDIT:
  The packets show up fine on my laptop in wireshark, but in wireshark on my desktop is where there is an issue.</p>
  
  <pre><code>sendp(Dot11(addr1=dest, 
              addr2=source, 
              addr3=source)/
        Dot11ProbeReq()/
        Dot11Elt(ID="SSID",info='test')/
        Dot11Elt(ID="Rates", info='\x02\x04\x0b\x16\x0c\x12\x18$')/
        Dot11Elt(ID="ESRates", info='0H`l')/
        Dot11Elt(ID="DSset", info='\x06'), 
        iface='wlan0', count=3)
  </code></pre>
  
  <p>EDIT: I believe the issue is because scapy is sending the wrong type/subtype.
  The packet should have</p>
  
  <pre><code>Type/subtype: Probe Request (0x04)
  </code></pre>
  
  <p>but the packet in wireshark displays</p>
  
  <pre><code>Type/subtype: Data (0x20)
  </code></pre>