Use IEEE80211_MAX_DATA_LEN to set wiphy->max_scan_ie_len

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
kfree() doesn't take a size argument, so no point calculating one

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Someone really loved their parenthesis

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Don't bother runninger == true against check_firmware() return calls

if (check_firmware(FOO)) will do just fine

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Run ioctl_cfg80211.c through Lindent

The code was just impossible to read, run if through Lindent and fixup
the worst snafoos.

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Remove a bunch of unused macros

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Use IEEE80211_STYPE_foo definitions

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Remove superfluous parenthesis

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Remove unused mlme_ap_table

Even in AP mode, we still use mlme_sta_tbl, with a bit of special
handling.

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Remove unused num entry from struct mlme_handler

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Use is_broadcast_ether_addr() instead of own hack

In addition fix a couple of formatting issues

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Remove obsolete GetFrameType()/GetFrameSubType() macros

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Use frame_control bit defines from include/linux/ieee80211.h

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Don't carry our own BIT() #define

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Constants defined via BIT() should be treated as unsigned long

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Run rtl8723a_hal_init.c through Lindint

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Run hal_com.c through Lindent

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Make HalSetBrateCfg() return the result by value rather than by reference

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Minor code obfuscation cleanup

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Move logic calculating rate value into HalSetBrateCfg()

This code never belonged in SetHwReg8723A() in the first place.

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>