Lines Matching refs:tim_idx
301 /* Parse the beacon frame to find the TIM element and set tim_idx & tim_size */
306 u16 tim_idx;
313 tim_idx = mgmt->u.beacon.variable - beacon;
316 while ((tim_idx < (frame_size - 2)) &&
317 (beacon[tim_idx] != WLAN_EID_TIM))
318 tim_idx += beacon[tim_idx+1] + 2;
321 if ((tim_idx < (frame_size - 1)) && (beacon[tim_idx] == WLAN_EID_TIM)) {
322 tx_beacon_cmd->tim_idx = cpu_to_le16(tim_idx);
323 tx_beacon_cmd->tim_size = beacon[tim_idx+1];