Ticket #858: madwifi.patch

File madwifi.patch, 0.7 kB (added by abpost@mpi-sws.mpg.de, 6 years ago)

patch for transmitting using 802.11 radiotap

  • ieee80211_monitor.c

    old new  
    180180               } 
    181181               break; 
    182182       } 
     183 
     184       case ARPHRD_IEEE80211_RADIOTAP: { 
     185               if(skb->len >  sizeof(struct ath_tx_radiotap_header)){ 
     186                       struct ath_tx_radiotap_header *wh = (struct ath_tx_radiotap_header *) skb->data; 
     187                       skb_pull(skb, sizeof(struct ath_tx_radiotap_header)); 
     188                       ph->power = wh->wt_txpower; 
     189                       ph->rate0 = wh->wt_rate; 
     190                       ph->try0 = 1; 
     191               } 
     192               break; 
     193         } 
    183194       default: 
    184195               break; 
    185196       }