Skip to contentSkip to conversation

Warning in latest wireless-testing

DISCUSSION Larry Finger 3 participants 3 messages Jan 13, 2009 – Jan 14, 2009

lore
Share & tools
lore
#0 lore raw

In the latest pull from wireless testing, I get the following warning:

CC [M] drivers/net/wireless/b43/main.o
drivers/net/wireless/b43/main.c: In function =E2=80=98b43_op_set_key=E2= =80=99:
drivers/net/wireless/b43/main.c:3636: warning: pointer type mismatch in conditional expression

Larry

--
To unsubscribe from this list: send the line "unsubscribe linux-wireles= s" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#1 lore raw
Quoted 6 lines · Larry Finger

In the latest pull from wireless testing, I get the following warning:

CC [M] drivers/net/wireless/b43/main.o
drivers/net/wireless/b43/main.c: In function ‘b43_op_set_key’:
drivers/net/wireless/b43/main.c:3636: warning: pointer type mismatch in conditional expression

That looks like a merge error:

                b43dbg(wl, "%s hardware based encryption for keyidx: %d, "
                       "mac: %pM\n",
                       cmd == SET_KEY ? "Using" : "Disabling", key->keyidx,
                       sta ? sta->addr : "<group key>");

It should be something like

u8 bcast[ETH_ALEN] = {0xff,...}

sta ? sta->addr : bcast

there.

johannes

#2 lore raw
Quoted 2 lines · Johannes Berg
Quoted 1 line · Larry Finger

In the latest pull from wireless testing, I get the following warni=

ng:

Quoted 3 lines
Quoted 3 lines

=20
CC [M] drivers/net/wireless/b43/main.o
drivers/net/wireless/b43/main.c: In function =E2=80=98b43_op_set_ke=

y=E2=80=99:

Quoted 1 line
Quoted 1 line

drivers/net/wireless/b43/main.c:3636: warning: pointer type mismatc=

h

Quoted 3 lines
Quoted 1 line

in conditional expression

=20
That looks like a merge error:

Yes, it is.

Quoted 1 line

b43dbg(wl, "%s hardware based encryption for keyidx: =

%d, "

Quoted 2 lines
                       "mac: %pM\n",
                       cmd =3D=3D SET_KEY ? "Using" : "Disabling", ke=

y->keyidx,

Quoted 9 lines
                       sta ? sta->addr : "<group key>");

=20
It should be something like
=20
u8 bcast[ETH_ALEN] =3D {0xff,...}
=20
sta ? sta->addr : bcast
=20
there.

Yes, it should.

John
--=20
John W. Linville Someday the world will need a hero, and you
[email protected] might be all we have. Be ready.
--
To unsubscribe from this list: send the line "unsubscribe linux-wireles= s" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html