Please note: This project is no longer active. The website is kept online for historic purposes only.
If you´re looking for a Linux driver for your Atheros WLAN device, you should continue here .

Ticket #241: madwifi-ng-241.diff

File madwifi-ng-241.diff, 1.1 kB (added by Charles Bovy <charles@bovy.nl>, 14 years ago)

patch for WPA and RSN ie in AP mode

  • net80211/ieee80211_ioctl.h

    old new  
    277277struct ieee80211req_wpaie { 
    278278        u_int8_t        wpa_macaddr[IEEE80211_ADDR_LEN]; 
    279279        u_int8_t        wpa_ie[IEEE80211_MAX_OPT_IE]; 
     280        u_int8_t        rsn_ie[IEEE80211_MAX_OPT_IE]; 
    280281}; 
    281282 
    282283/* 
  • net80211/ieee80211_wireless.c

    old new  
    31583160                        ielen = sizeof(wpaie.wpa_ie); 
    31593161                memcpy(wpaie.wpa_ie, ni->ni_wpa_ie, ielen); 
    31603162        } 
     3163        if (ni->ni_rsn_ie != NULL) { 
     3164                int ielen = ni->ni_rsn_ie[1] + 2; 
     3165                if (ielen > sizeof(wpaie.rsn_ie)) 
     3166                        ielen = sizeof(wpaie.rsn_ie); 
     3167                memcpy(wpaie.rsn_ie, ni->ni_rsn_ie, ielen); 
     3168        } 
    31613169        ieee80211_free_node(ni); 
    31623170        return (copy_to_user(iwr->u.data.pointer, &wpaie, sizeof(wpaie)) ? 
    31633171                        -EFAULT : 0);