Lines Matching refs:gsm

1624     struct wpa_group *gsm = sm->group;  in ieee80211w_kde_add()  local
1629 igtk.keyid[0] = gsm->GN_igtk; in ieee80211w_kde_add()
1631 if (gsm->wpa_group_state != WPA_GROUP_SETKEYSDONE || in ieee80211w_kde_add()
1632 wpa_auth_get_seqnum(sm->wpa_auth, NULL, gsm->GN_igtk, igtk.pn) < 0) in ieee80211w_kde_add()
1634 memcpy(igtk.igtk, gsm->IGTK[gsm->GN_igtk - 4], WPA_IGTK_LEN); in ieee80211w_kde_add()
1669 struct wpa_group *gsm = sm->group; in SM_STATE() local
1687 wpa_auth_get_seqnum(sm->wpa_auth, NULL, gsm->GN, rsc); in SM_STATE()
1701 gtk = gsm->GTK[gsm->GN - 1]; in SM_STATE()
1702 gtk_len = gsm->GTK_len; in SM_STATE()
1712 keyidx = gsm->GN; in SM_STATE()
1978 struct wpa_group *gsm = sm->group; in SM_STATE() local
1997 if (gsm->wpa_group_state == WPA_GROUP_SETKEYSDONE) in SM_STATE()
1998 wpa_auth_get_seqnum(sm->wpa_auth, NULL, gsm->GN, rsc); in SM_STATE()
2000 gtk = gsm->GTK[gsm->GN - 1]; in SM_STATE()
2006 if (os_get_random(dummy_gtk, gsm->GTK_len) < 0) in SM_STATE()
2011 kde_len = 2 + RSN_SELECTOR_LEN + 2 + gsm->GTK_len + in SM_STATE()
2018 hdr[0] = gsm->GN & 0x03; in SM_STATE()
2021 gtk, gsm->GTK_len); in SM_STATE()
2025 pos = kde + gsm->GTK_len; in SM_STATE()
2032 rsc, gsm->GNonce, kde, pos - kde, gsm->GN, 1); in SM_STATE()
2194 struct wpa_group *gsm = sm->group; in wpa_wnmsleep_gtk_subelem() local
2203 *pos++ = 11 + gsm->GTK_len; in wpa_wnmsleep_gtk_subelem()
2205 WPA_PUT_LE16(pos, gsm->GN & 0x03); in wpa_wnmsleep_gtk_subelem()
2207 *pos++ = gsm->GTK_len; in wpa_wnmsleep_gtk_subelem()
2208 if (wpa_auth_get_seqnum(sm->wpa_auth, NULL, gsm->GN, pos) != 0) in wpa_wnmsleep_gtk_subelem()
2211 memcpy(pos, gsm->GTK[gsm->GN - 1], gsm->GTK_len); in wpa_wnmsleep_gtk_subelem()
2212 pos += gsm->GTK_len; in wpa_wnmsleep_gtk_subelem()
2215 gsm->GN); in wpa_wnmsleep_gtk_subelem()
2217 gsm->GTK[gsm->GN - 1], gsm->GTK_len); in wpa_wnmsleep_gtk_subelem()
2226 struct wpa_group *gsm = sm->group; in wpa_wnmsleep_igtk_subelem() local
2235 WPA_PUT_LE16(pos, gsm->GN_igtk); in wpa_wnmsleep_igtk_subelem()
2237 if (wpa_auth_get_seqnum(sm->wpa_auth, NULL, gsm->GN_igtk, pos) != 0) in wpa_wnmsleep_igtk_subelem()
2241 memcpy(pos, gsm->IGTK[gsm->GN_igtk - 4], WPA_IGTK_LEN); in wpa_wnmsleep_igtk_subelem()
2245 gsm->GN_igtk); in wpa_wnmsleep_igtk_subelem()
2247 gsm->IGTK[gsm->GN_igtk - 4], WPA_IGTK_LEN); in wpa_wnmsleep_igtk_subelem()