mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2025-02-16 15:20:42 +01:00
monitor: Various style cleanups
This commit is contained in:
parent
214c89ba8b
commit
44301601ed
@ -393,20 +393,21 @@ static void print_ie_tim(unsigned int level, const char *label,
|
||||
|
||||
print_attr(level, "%s:", label);
|
||||
print_attr(level + 1, "DTIM count %2d %s", dtim[0],
|
||||
dtim[0]? "beacon frame(s)": "this beacon frame is DTIM");
|
||||
dtim[0] ? "beacon frame(s)" :
|
||||
"this beacon frame is DTIM");
|
||||
print_attr(level + 1, "DTIM period %2d beacon frame(s)", dtim[1]);
|
||||
|
||||
print_attr(level + 1, "Group buffered %d offset %d",
|
||||
!!(dtim[2] & 0x01), dtim[2] >> 1);
|
||||
|
||||
len = size - 3;
|
||||
|
||||
for (t = 0; t < len ; t++) {
|
||||
if (((t + 1) % 4) == 1) {
|
||||
pos = 0;
|
||||
pos += snprintf(&str[pos], sizeof(str) - pos,
|
||||
"AID %4d - %4d ",
|
||||
t * 8 + 1,
|
||||
t + 4 > len? len * 8: (t + 4) * 8);
|
||||
t + 4 > len ? len * 8 : (t + 4) * 8);
|
||||
}
|
||||
|
||||
for (bit = 0x01; bit; bit <<= 1)
|
||||
|
Loading…
x
Reference in New Issue
Block a user