> Date: Sat, 11 Jul 2020 19:29:17 +0200
> From: Stefan Sperling <[email protected]>
> 
> When a wifi interface acts as a client, ifconfig will currently display
> the default value 'ccmp' for the wpagroupcipher parameter, even while
> associated to a WPA2 access point which uses TKIP as the group cipher
> for WPA1 compatibility.
> 
> This patch updates the variable which gets copied out when ifconfig asks
> for this information, so we get the group cipher displayed correctly.
> 
> This is a cosmetic problem only since the actual negotiation of the group
> cipher is based on ni->ni_rsngroupcipher, not ic->ic_rsngroupcipher.
> 
> ok?

ok kettenis@

> diff 21633c8848e72769b1658114d9c706c177040a2a /usr/src
> blob - 333f6c1b22a6c027dd8f417430082d27587a6d2f
> file + sys/net80211/ieee80211_pae_input.c
> --- sys/net80211/ieee80211_pae_input.c
> +++ sys/net80211/ieee80211_pae_input.c
> @@ -651,6 +651,8 @@ ieee80211_recv_4way_msg3(struct ieee80211com *ic,
>                       ni->ni_port_valid = 1;
>                       ieee80211_set_link_state(ic, LINK_STATE_UP);
>                       ni->ni_assoc_fail = 0;
> +                     if (ic->ic_opmode == IEEE80211_M_STA)
> +                             ic->ic_rsngroupcipher = ni->ni_rsngroupcipher;
>               }
>       }
>   deauth:
> 
> 

Reply via email to