|
@@ -682,7 +682,10 @@ int wl1271_cmd_build_ps_poll(struct wl1271 *wl, u16 aid)
|
|
|
|
|
|
memcpy(template.bssid, wl->bssid, ETH_ALEN);
|
|
|
memcpy(template.ta, wl->mac_addr, ETH_ALEN);
|
|
|
- template.aid = aid;
|
|
|
+
|
|
|
+ /* aid in PS-Poll has its two MSBs each set to 1 */
|
|
|
+ template.aid = cpu_to_le16(1 << 15 | 1 << 14 | aid);
|
|
|
+
|
|
|
template.fc = cpu_to_le16(IEEE80211_FTYPE_CTL | IEEE80211_STYPE_PSPOLL);
|
|
|
|
|
|
return wl1271_cmd_template_set(wl, CMD_TEMPL_PS_POLL, &template,
|