staging: rtl8723au: validate_recv_data_frame() use fctl knowledge to obtain bssid
authorJes Sorensen <Jes.Sorensen@redhat.com>
Fri, 9 May 2014 13:03:31 +0000 (15:03 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 15 May 2014 20:11:58 +0000 (13:11 -0700)
commitaa66fbb956d4b464d39176045c2b431da56f358f
treef9de36e7a4a178f38f4d043f55eefee2c32f8c3a
parent5ca12b78995aeb9cbe5c127342e8ca27f1e6d038
staging: rtl8723au: validate_recv_data_frame() use fctl knowledge to obtain bssid

Use the knowledge we already have from parsing the TODS/FROMDS bits in
hdr->frame_control to obtain the bssid.

Note that get_hdr_bssid() would never return NULL as handling 4
combinations of a 2 bit word leaves little space for falling through
to the 'default' value.

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723au/core/rtw_recv.c