mac80211: use put_unaligned_le16 in mesh_plink_frame_tx

Use put_unaligned_le16 in mesh_plink_frame_tx.

Signed-off-by: Chun-Yeow Yeoh <yeohchunyeow@gmail.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
This commit is contained in:
Chun-Yeow Yeoh
2013-11-13 15:43:03 +08:00
committed by Johannes Berg
parent 2a901468c2
commit 6f101ef04b
5 changed files with 34 additions and 34 deletions

View File

@@ -631,7 +631,7 @@ void sta_info_recalc_tim(struct sta_info *sta)
} else if (ieee80211_vif_is_mesh(&sta->sdata->vif)) {
ps = &sta->sdata->u.mesh.ps;
/* TIM map only for 1 <= PLID <= IEEE80211_MAX_AID */
id = le16_to_cpu(sta->plid) % (IEEE80211_MAX_AID + 1);
id = sta->plid % (IEEE80211_MAX_AID + 1);
#endif
} else {
return;