hostapd: Do not fault when printing station information

The call to print_bitmap expects an address, but passing
sta->rrm_enabled_capa[0] breaks this assumption and causes a
segmentation fault.

This runtime fault was introduced by
https://chromium-review.googlesource.com/c/459456/.

BUG=b:35223556
TEST=Using an unpatched hostapd let an STA associate, and use the hostapd_cli
all_sta command and observe "Segmentation fault (core dumped)":

1490806219.509590: 1490806219.509604: wlan0: STA 04:f0:21:0f:35:b2 RADIUS: starting accounting session 720627B8-00000000
1490806219.510387: 1490806219.510400: wlan0: STA 04:f0:21:0f:35:b2 WPA: pairwise key handshake completed (RSN)
Segmentation fault (core dumped)

Repeat the same procedure with a version of hostapd carrying this patch,
and verify there is no fault.

Change-Id: Ib262ce3d5e31763b89959ea4894a2435b3412ef5
Reviewed-on: https://chromium-review.googlesource.com/465600
Commit-Ready: Joshua Emele <jemele@google.com>
Tested-by: Joshua Emele <jemele@google.com>
Reviewed-by: Srinivasa duvvuri <sduvvuri@chromium.org>
1 file changed