]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc6ad6d2996e92c20d93b96da88afcbe69d40b5f4
treef9de36e7a4a178f38f4d043f55eefee2c32f8c3a
parenta8cf6e5898cf289c8fe98e5d68149c583a28c3f5
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