Set RSN protocol only in Passpoint wifi configurations

Both RSN and WPA protocols are set in wifi configurations used
for Passpoint connection. In this case wpa_supplicant don't
recognize that the connection is for Passpoint purposes. This
leads to the issue that HS 2.0 Indication element is not added
to Association Request frame.
This change is to set RSN only in wifi configurations if they
are used for Passpoint connection.

Bug: 118505139
Test: test with Passpoint R2 capable AP
Test: ./frameworks/opt/net/wifi/tests/wifitests/runtests.sh
Signed-off-by: Daichi Ueura <daichi.ueura@sony.com>
Change-Id: Ic4a3bdf9a92cd884ac1f22d54531a3ec135e3eb6
2 files changed