Re: [PATCH] staging: r8188eu: drop return value from receive_disconnect

From: Martin Kaiser
Date: Mon Jun 27 2022 - 15:46:32 EST


Hi Greg and all,

Thus wrote Greg Kroah-Hartman (gregkh@xxxxxxxxxxxxxxxxxxx):

> > /* check A3 */
> > if (!(!memcmp(MacAddr, get_my_bssid(&pmlmeinfo->network), ETH_ALEN)))
> > - return _SUCCESS;
> > + return;

> Shouldn't this check return an error instead of success? If not, what
> exactly is this checking this for?

my understanding is that receive_disconnect is called when an access
point is no longer usable. This could be a deauth or disassoc message or
a beacon with incorrect info (so we assume the access point isn't
working any more).

The if statement checks if the notification is about the access point to
which we're connected. If not, we don't have to process the notification.
I guess this is not necessarily an error.

Thanks & Best regards,

Martin