Reset the pointer to the ioctl buffer after it gets changed.
This commit is contained in:
parent
32f9753cfb
commit
927a1b4120
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=170588
@ -2200,6 +2200,7 @@ ieee80211_status(int s)
|
||||
get_chaninfo(c, 1, buf, sizeof(buf)));
|
||||
} else if (verbose)
|
||||
printf(" channel UNDEF");
|
||||
ireq.i_data = &data; /* reset data buffer */
|
||||
|
||||
ireq.i_type = IEEE80211_IOC_BSSID;
|
||||
ireq.i_len = IEEE80211_ADDR_LEN;
|
||||
@ -2322,6 +2323,7 @@ ieee80211_status(int s)
|
||||
firstkey = 0;
|
||||
}
|
||||
}
|
||||
ireq.i_data = &data; /* reset data buffer */
|
||||
}
|
||||
|
||||
ireq.i_type = IEEE80211_IOC_POWERSAVE;
|
||||
|
Loading…
Reference in New Issue
Block a user