Changeset 1352

Show
Ignore:
Timestamp:
12/11/05 00:20:23 (5 years ago)
Author:
kelmo
Message:

This patch fixes a type error in wlanconfig, which causes wrong output and/or
crashing of the program. Patch by Sven Schnelle <svens@gmx.de>. Closes #190

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/tools/wlanconfig.c

    r1346 r1352  
    654654                errx(1, "unable to get channel information"); 
    655655        if (!allchans) { 
    656                 struct ieee80211req_chanlist active
     656                uint8_t active[32]
    657657 
    658658                if (get80211priv(ifname, IEEE80211_IOCTL_GETCHANLIST, &active, sizeof(active)) < 0) 
     
    661661                for (i = 0; i < chans.ic_nchans; i++) { 
    662662                        c = &chans.ic_chans[i]; 
    663                         if (isset(active.ic_channels, ieee80211_mhz2ieee(c->ic_freq)) || allchans) 
     663                        if (isset(active, ieee80211_mhz2ieee(c->ic_freq)) || allchans) 
    664664                                achans.ic_chans[achans.ic_nchans++] = *c; 
    665665                }