hostapd: Add Power Constraint element
authorSrinivasan B <srinivasanb@posedge.com>
Fri, 21 Feb 2014 13:42:17 +0000 (14:42 +0100)
committerJouni Malinen <j@w1.fi>
Mon, 24 Feb 2014 21:51:23 +0000 (23:51 +0200)
commite0392f825dae435cdc8d47cb40df36521c76df5d
treec2729b604c68797807a55a56ec06231b60bf8fed
parent891330fda9a63da4817656bc41c1efd21f8b57b3
hostapd: Add Power Constraint element

Add Power Constraint information element to Beacon and Probe Response
frames when hostapd is configured on 5 GHz band and Country information
element is also added. According to IEEE Std 802.11-2012 a STA shall
determine a local maximum transmit power for the current channel based
on information derived from Country and Power Constraint elements.

In order to add Power Constraint element ieee80211d option need to be
enabled and new local_pwr_constraint config option need to be set to
unsigned value in units of decibels. For now this value is statically
configured but the future goal is to implement dynamic TPC algorithm
to control local power constraint.

Signed-hostap: Srinivasan <srinivasanb@posedge.com>
Signed-hostap: Chaitanya T K <chaitanyatk@posedge.com>
Signed-hostap: Marek Puzyniak <marek.puzyniak@tieto.com>
hostapd/config_file.c
hostapd/hostapd.conf
src/ap/ap_config.c
src/ap/ap_config.h
src/ap/beacon.c