correct endian conversion of arfcn in tx_ph_dm_ext_req()
authorHarald Welte <laforge@gnumonks.org>
Thu, 20 May 2010 21:48:19 +0000 (23:48 +0200)
committerHarald Welte <laforge@gnumonks.org>
Thu, 20 May 2010 21:48:19 +0000 (23:48 +0200)
src/host/layer23/src/l1ctl.c

index b2f2eec..8731caf 100644 (file)
@@ -287,7 +287,7 @@ int tx_ph_dm_est_req(struct osmocom_ms *ms, uint16_t band_arfcn, uint8_t chan_nr
        ul->link_id = 0;
        ul->tx_power = 0; /* FIXME: initial TX power */
        req = (struct l1ctl_dm_est_req *) msgb_put(msg, sizeof(*req));
-       req->band_arfcn = band_arfcn;
+       req->band_arfcn = htons(band_arfcn);
 
        return osmo_send_l1(ms, msg);
 }