iw: fix incorrect bit shifting in print_ht_mcs

iw-3.10/util.c:569:result_independent_of_operands –
	"mcs[10] >> 8" is 0 regardless of the values of its operands. This occurs as the bitwise first operand of '&'.

This seems more like what was intended...

Signed-off-by: John W. Linville <linville@tuxdriver.com>
iw: reorder some code in iw_connect to avoid a potential memory leak

iw-3.10/connect.c:104:leaked_storage –
	Variable "conn_argv" going out of scope leaks the storage it points to.

Signed-off-by: John W. Linville <linville@tuxdriver.com>
update nl80211.h
iw: use updated structures and enums for packet pattern

They are renamed in new nl80211.h so that they can be used for
new feature. This patch uses those updated structures and enums
to make the code look nicer.

Signed-off-by: Amitkumar Karwar <akarwar@marvell.com>
Signed-off-by: Bing Zhao <bzhao@marvell.com>
iw: add coalesce support

User can configure multiple coalesce rules using 'iw coalesce
enable <config-file>' command. The setting can be cleared using
'iw coalesce disable' command. 'iw coalesce show' displays current
configuration.

Signed-off-by: Amitkumar Karwar <akarwar@marvell.com>
Signed-off-by: Bing Zhao <bzhao@marvell.com>
iw: Add support for mesh peer link expiration.

User can configure the peer link expiration time with a
new mesh parameter, mesh_plink_timeout.  This parameter
sets the expiration time, in seconds, for peer links.
After this time, the peer link is expired.  This means the
inactive STA is removed from the list of peers and is not
considered a peer again unless it re-peers.

Signed-off-by: Colleen Twitty <colleen@cozybit.com>
iw: add the active monitor flag

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
iw: dump station rx bit rate information

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
iw: dump station per-chain signal strength information

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
iw:  Support can_scan_one flag.

Signed-off-by: Ben Greear <greearb@candelatech.com>
Fix compile on systems that don't have htole16.

Use htons and manual tweaking to get it right.

Signed-off-by: Ben Greear <greearb@candelatech.com>