staging: brcm80211: remove the rest of broadcom specific byte swapping routines
[firefly-linux-kernel-4.4.55.git] / drivers / staging / brcm80211 / brcmsmac / wlc_stf.c
1 /*
2  * Copyright (c) 2010 Broadcom Corporation
3  *
4  * Permission to use, copy, modify, and/or distribute this software for any
5  * purpose with or without fee is hereby granted, provided that the above
6  * copyright notice and this permission notice appear in all copies.
7  *
8  * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
9  * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
10  * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
11  * SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
12  * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION
13  * OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
14  * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
15  */
16
17 #include <linux/kernel.h>
18 #include <linux/module.h>
19 #include <wlc_cfg.h>
20 #include <bcmdefs.h>
21 #include <osl.h>
22 #include <bcmutils.h>
23 #include <siutils.h>
24 #include <proto/802.11.h>
25 #include <wlioctl.h>
26 #include <bcmwifi.h>
27 #include <sbhndpio.h>
28 #include <sbhnddma.h>
29 #include <d11.h>
30 #include <wlc_rate.h>
31 #include <wlc_pub.h>
32 #include <wlc_key.h>
33 #include <wlc_channel.h>
34 #include <wlc_bsscfg.h>
35 #include <wlc_event.h>
36 #include <wlc_mac80211.h>
37 #include <wlc_scb.h>
38 #include <wl_export.h>
39 #include <wlc_bmac.h>
40 #include <wlc_stf.h>
41 #include <wl_dbg.h>
42
43 #define WLC_STF_SS_STBC_RX(wlc) (WLCISNPHY(wlc->band) && \
44         NREV_GT(wlc->band->phyrev, 3) && NREV_LE(wlc->band->phyrev, 6))
45
46 static bool wlc_stf_stbc_tx_set(struct wlc_info *wlc, s32 int_val);
47 static int wlc_stf_txcore_set(struct wlc_info *wlc, u8 Nsts, u8 val);
48 static int wlc_stf_spatial_policy_set(struct wlc_info *wlc, int val);
49 static void wlc_stf_stbc_rx_ht_update(struct wlc_info *wlc, int val);
50
51 static void _wlc_stf_phy_txant_upd(struct wlc_info *wlc);
52 static u16 _wlc_stf_phytxchain_sel(struct wlc_info *wlc, ratespec_t rspec);
53
54 #define NSTS_1  1
55 #define NSTS_2  2
56 #define NSTS_3  3
57 #define NSTS_4  4
58 const u8 txcore_default[5] = {
59         (0),                    /* bitmap of the core enabled */
60         (0x01),                 /* For Nsts = 1, enable core 1 */
61         (0x03),                 /* For Nsts = 2, enable core 1 & 2 */
62         (0x07),                 /* For Nsts = 3, enable core 1, 2 & 3 */
63         (0x0f)                  /* For Nsts = 4, enable all cores */
64 };
65
66 static void wlc_stf_stbc_rx_ht_update(struct wlc_info *wlc, int val)
67 {
68         ASSERT((val == HT_CAP_RX_STBC_NO)
69                || (val == HT_CAP_RX_STBC_ONE_STREAM));
70
71         /* MIMOPHYs rev3-6 cannot receive STBC with only one rx core active */
72         if (WLC_STF_SS_STBC_RX(wlc)) {
73                 if ((wlc->stf->rxstreams == 1) && (val != HT_CAP_RX_STBC_NO))
74                         return;
75         }
76
77         wlc->ht_cap.cap_info &= ~HT_CAP_RX_STBC_MASK;
78         wlc->ht_cap.cap_info |= (val << HT_CAP_RX_STBC_SHIFT);
79
80         if (wlc->pub->up) {
81                 wlc_update_beacon(wlc);
82                 wlc_update_probe_resp(wlc, true);
83         }
84 }
85
86 /* every WLC_TEMPSENSE_PERIOD seconds temperature check to decide whether to turn on/off txchain */
87 void wlc_tempsense_upd(struct wlc_info *wlc)
88 {
89         wlc_phy_t *pi = wlc->band->pi;
90         uint active_chains, txchain;
91
92         /* Check if the chip is too hot. Disable one Tx chain, if it is */
93         /* high 4 bits are for Rx chain, low 4 bits are  for Tx chain */
94         active_chains = wlc_phy_stf_chain_active_get(pi);
95         txchain = active_chains & 0xf;
96
97         if (wlc->stf->txchain == wlc->stf->hw_txchain) {
98                 if (txchain && (txchain < wlc->stf->hw_txchain)) {
99                         /* turn off 1 tx chain */
100                         wlc_stf_txchain_set(wlc, txchain, true);
101                 }
102         } else if (wlc->stf->txchain < wlc->stf->hw_txchain) {
103                 if (txchain == wlc->stf->hw_txchain) {
104                         /* turn back on txchain */
105                         wlc_stf_txchain_set(wlc, txchain, true);
106                 }
107         }
108 }
109
110 void
111 wlc_stf_ss_algo_channel_get(struct wlc_info *wlc, u16 *ss_algo_channel,
112                             chanspec_t chanspec)
113 {
114         tx_power_t power;
115         u8 siso_mcs_id, cdd_mcs_id, stbc_mcs_id;
116
117         /* Clear previous settings */
118         *ss_algo_channel = 0;
119
120         if (!wlc->pub->up) {
121                 *ss_algo_channel = (u16) -1;
122                 return;
123         }
124
125         wlc_phy_txpower_get_current(wlc->band->pi, &power,
126                                     CHSPEC_CHANNEL(chanspec));
127
128         siso_mcs_id = (CHSPEC_IS40(chanspec)) ?
129             WL_TX_POWER_MCS40_SISO_FIRST : WL_TX_POWER_MCS20_SISO_FIRST;
130         cdd_mcs_id = (CHSPEC_IS40(chanspec)) ?
131             WL_TX_POWER_MCS40_CDD_FIRST : WL_TX_POWER_MCS20_CDD_FIRST;
132         stbc_mcs_id = (CHSPEC_IS40(chanspec)) ?
133             WL_TX_POWER_MCS40_STBC_FIRST : WL_TX_POWER_MCS20_STBC_FIRST;
134
135         /* criteria to choose stf mode */
136
137         /* the "+3dbm (12 0.25db units)" is to account for the fact that with CDD, tx occurs
138          * on both chains
139          */
140         if (power.target[siso_mcs_id] > (power.target[cdd_mcs_id] + 12))
141                 setbit(ss_algo_channel, PHY_TXC1_MODE_SISO);
142         else
143                 setbit(ss_algo_channel, PHY_TXC1_MODE_CDD);
144
145         /* STBC is ORed into to algo channel as STBC requires per-packet SCB capability check
146          * so cannot be default mode of operation. One of SISO, CDD have to be set
147          */
148         if (power.target[siso_mcs_id] <= (power.target[stbc_mcs_id] + 12))
149                 setbit(ss_algo_channel, PHY_TXC1_MODE_STBC);
150 }
151
152 static bool wlc_stf_stbc_tx_set(struct wlc_info *wlc, s32 int_val)
153 {
154         if ((int_val != AUTO) && (int_val != OFF) && (int_val != ON)) {
155                 return false;
156         }
157
158         if ((int_val == ON) && (wlc->stf->txstreams == 1))
159                 return false;
160
161         if ((int_val == OFF) || (wlc->stf->txstreams == 1)
162             || !WLC_STBC_CAP_PHY(wlc))
163                 wlc->ht_cap.cap_info &= ~IEEE80211_HT_CAP_TX_STBC;
164         else
165                 wlc->ht_cap.cap_info |= IEEE80211_HT_CAP_TX_STBC;
166
167         wlc->bandstate[BAND_2G_INDEX]->band_stf_stbc_tx = (s8) int_val;
168         wlc->bandstate[BAND_5G_INDEX]->band_stf_stbc_tx = (s8) int_val;
169
170         return true;
171 }
172
173 bool wlc_stf_stbc_rx_set(struct wlc_info *wlc, s32 int_val)
174 {
175         if ((int_val != HT_CAP_RX_STBC_NO)
176             && (int_val != HT_CAP_RX_STBC_ONE_STREAM)) {
177                 return false;
178         }
179
180         if (WLC_STF_SS_STBC_RX(wlc)) {
181                 if ((int_val != HT_CAP_RX_STBC_NO)
182                     && (wlc->stf->rxstreams == 1))
183                         return false;
184         }
185
186         wlc_stf_stbc_rx_ht_update(wlc, int_val);
187         return true;
188 }
189
190 static int wlc_stf_txcore_set(struct wlc_info *wlc, u8 Nsts, u8 core_mask)
191 {
192         WL_TRACE("wl%d: %s: Nsts %d core_mask %x\n",
193                  wlc->pub->unit, __func__, Nsts, core_mask);
194
195         ASSERT((Nsts > 0) && (Nsts <= MAX_STREAMS_SUPPORTED));
196
197         if (WLC_BITSCNT(core_mask) > wlc->stf->txstreams) {
198                 core_mask = 0;
199         }
200
201         if ((WLC_BITSCNT(core_mask) == wlc->stf->txstreams) &&
202             ((core_mask & ~wlc->stf->txchain)
203              || !(core_mask & wlc->stf->txchain))) {
204                 core_mask = wlc->stf->txchain;
205         }
206
207         ASSERT(!core_mask || Nsts <= WLC_BITSCNT(core_mask));
208
209         wlc->stf->txcore[Nsts] = core_mask;
210         /* Nsts = 1..4, txcore index = 1..4 */
211         if (Nsts == 1) {
212                 /* Needs to update beacon and ucode generated response
213                  * frames when 1 stream core map changed
214                  */
215                 wlc->stf->phytxant = core_mask << PHY_TXC_ANT_SHIFT;
216                 wlc_bmac_txant_set(wlc->hw, wlc->stf->phytxant);
217                 if (wlc->clk) {
218                         wlc_suspend_mac_and_wait(wlc);
219                         wlc_beacon_phytxctl_txant_upd(wlc, wlc->bcn_rspec);
220                         wlc_enable_mac(wlc);
221                 }
222         }
223
224         return BCME_OK;
225 }
226
227 static int wlc_stf_spatial_policy_set(struct wlc_info *wlc, int val)
228 {
229         int i;
230         u8 core_mask = 0;
231
232         WL_TRACE("wl%d: %s: val %x\n", wlc->pub->unit, __func__, val);
233
234         wlc->stf->spatial_policy = (s8) val;
235         for (i = 1; i <= MAX_STREAMS_SUPPORTED; i++) {
236                 core_mask = (val == MAX_SPATIAL_EXPANSION) ?
237                     wlc->stf->txchain : txcore_default[i];
238                 wlc_stf_txcore_set(wlc, (u8) i, core_mask);
239         }
240         return BCME_OK;
241 }
242
243 int wlc_stf_txchain_set(struct wlc_info *wlc, s32 int_val, bool force)
244 {
245         u8 txchain = (u8) int_val;
246         u8 txstreams;
247         uint i;
248
249         if (wlc->stf->txchain == txchain)
250                 return BCME_OK;
251
252         if ((txchain & ~wlc->stf->hw_txchain)
253             || !(txchain & wlc->stf->hw_txchain))
254                 return BCME_RANGE;
255
256         /* if nrate override is configured to be non-SISO STF mode, reject reducing txchain to 1 */
257         txstreams = (u8) WLC_BITSCNT(txchain);
258         if (txstreams > MAX_STREAMS_SUPPORTED)
259                 return BCME_RANGE;
260
261         if (txstreams == 1) {
262                 for (i = 0; i < NBANDS(wlc); i++)
263                         if ((RSPEC_STF(wlc->bandstate[i]->rspec_override) !=
264                              PHY_TXC1_MODE_SISO)
265                             || (RSPEC_STF(wlc->bandstate[i]->mrspec_override) !=
266                                 PHY_TXC1_MODE_SISO)) {
267                                 if (!force)
268                                         return BCME_ERROR;
269
270                                 /* over-write the override rspec */
271                                 if (RSPEC_STF(wlc->bandstate[i]->rspec_override)
272                                     != PHY_TXC1_MODE_SISO) {
273                                         wlc->bandstate[i]->rspec_override = 0;
274                                         WL_ERROR("%s(): temp sense override non-SISO rspec_override\n",
275                                                  __func__);
276                                 }
277                                 if (RSPEC_STF
278                                     (wlc->bandstate[i]->mrspec_override) !=
279                                     PHY_TXC1_MODE_SISO) {
280                                         wlc->bandstate[i]->mrspec_override = 0;
281                                         WL_ERROR("%s(): temp sense override non-SISO mrspec_override\n",
282                                                  __func__);
283                                 }
284                         }
285         }
286
287         wlc->stf->txchain = txchain;
288         wlc->stf->txstreams = txstreams;
289         wlc_stf_stbc_tx_set(wlc, wlc->band->band_stf_stbc_tx);
290         wlc_stf_ss_update(wlc, wlc->bandstate[BAND_2G_INDEX]);
291         wlc_stf_ss_update(wlc, wlc->bandstate[BAND_5G_INDEX]);
292         wlc->stf->txant =
293             (wlc->stf->txstreams == 1) ? ANT_TX_FORCE_0 : ANT_TX_DEF;
294         _wlc_stf_phy_txant_upd(wlc);
295
296         wlc_phy_stf_chain_set(wlc->band->pi, wlc->stf->txchain,
297                               wlc->stf->rxchain);
298
299         for (i = 1; i <= MAX_STREAMS_SUPPORTED; i++)
300                 wlc_stf_txcore_set(wlc, (u8) i, txcore_default[i]);
301
302         return BCME_OK;
303 }
304
305 /* update wlc->stf->ss_opmode which represents the operational stf_ss mode we're using */
306 int wlc_stf_ss_update(struct wlc_info *wlc, struct wlcband *band)
307 {
308         int ret_code = 0;
309         u8 prev_stf_ss;
310         u8 upd_stf_ss;
311
312         prev_stf_ss = wlc->stf->ss_opmode;
313
314         /* NOTE: opmode can only be SISO or CDD as STBC is decided on a per-packet basis */
315         if (WLC_STBC_CAP_PHY(wlc) &&
316             wlc->stf->ss_algosel_auto
317             && (wlc->stf->ss_algo_channel != (u16) -1)) {
318                 ASSERT(isset(&wlc->stf->ss_algo_channel, PHY_TXC1_MODE_CDD)
319                        || isset(&wlc->stf->ss_algo_channel,
320                                 PHY_TXC1_MODE_SISO));
321                 upd_stf_ss = (wlc->stf->no_cddstbc || (wlc->stf->txstreams == 1)
322                               || isset(&wlc->stf->ss_algo_channel,
323                                        PHY_TXC1_MODE_SISO)) ? PHY_TXC1_MODE_SISO
324                     : PHY_TXC1_MODE_CDD;
325         } else {
326                 if (wlc->band != band)
327                         return ret_code;
328                 upd_stf_ss = (wlc->stf->no_cddstbc
329                               || (wlc->stf->txstreams ==
330                                   1)) ? PHY_TXC1_MODE_SISO : band->
331                     band_stf_ss_mode;
332         }
333         if (prev_stf_ss != upd_stf_ss) {
334                 wlc->stf->ss_opmode = upd_stf_ss;
335                 wlc_bmac_band_stf_ss_set(wlc->hw, upd_stf_ss);
336         }
337
338         return ret_code;
339 }
340
341 int wlc_stf_attach(struct wlc_info *wlc)
342 {
343         wlc->bandstate[BAND_2G_INDEX]->band_stf_ss_mode = PHY_TXC1_MODE_SISO;
344         wlc->bandstate[BAND_5G_INDEX]->band_stf_ss_mode = PHY_TXC1_MODE_CDD;
345
346         if (WLCISNPHY(wlc->band) &&
347             (wlc_phy_txpower_hw_ctrl_get(wlc->band->pi) != PHY_TPC_HW_ON))
348                 wlc->bandstate[BAND_2G_INDEX]->band_stf_ss_mode =
349                     PHY_TXC1_MODE_CDD;
350         wlc_stf_ss_update(wlc, wlc->bandstate[BAND_2G_INDEX]);
351         wlc_stf_ss_update(wlc, wlc->bandstate[BAND_5G_INDEX]);
352
353         wlc_stf_stbc_rx_ht_update(wlc, HT_CAP_RX_STBC_NO);
354         wlc->bandstate[BAND_2G_INDEX]->band_stf_stbc_tx = OFF;
355         wlc->bandstate[BAND_5G_INDEX]->band_stf_stbc_tx = OFF;
356
357         if (WLC_STBC_CAP_PHY(wlc)) {
358                 wlc->stf->ss_algosel_auto = true;
359                 wlc->stf->ss_algo_channel = (u16) -1;   /* Init the default value */
360         }
361         return 0;
362 }
363
364 void wlc_stf_detach(struct wlc_info *wlc)
365 {
366 }
367
368 int wlc_stf_ant_txant_validate(struct wlc_info *wlc, s8 val)
369 {
370         int bcmerror = BCME_OK;
371
372         /* when there is only 1 tx_streams, don't allow to change the txant */
373         if (WLCISNPHY(wlc->band) && (wlc->stf->txstreams == 1))
374                 return ((val == wlc->stf->txant) ? bcmerror : BCME_RANGE);
375
376         switch (val) {
377         case -1:
378                 val = ANT_TX_DEF;
379                 break;
380         case 0:
381                 val = ANT_TX_FORCE_0;
382                 break;
383         case 1:
384                 val = ANT_TX_FORCE_1;
385                 break;
386         case 3:
387                 val = ANT_TX_LAST_RX;
388                 break;
389         default:
390                 bcmerror = BCME_RANGE;
391                 break;
392         }
393
394         if (bcmerror == BCME_OK)
395                 wlc->stf->txant = (s8) val;
396
397         return bcmerror;
398
399 }
400
401 /*
402  * Centralized txant update function. call it whenever wlc->stf->txant and/or wlc->stf->txchain
403  *  change
404  *
405  * Antennas are controlled by ucode indirectly, which drives PHY or GPIO to
406  *   achieve various tx/rx antenna selection schemes
407  *
408  * legacy phy, bit 6 and bit 7 means antenna 0 and 1 respectively, bit6+bit7 means auto(last rx)
409  * for NREV<3, bit 6 and bit 7 means antenna 0 and 1 respectively, bit6+bit7 means last rx and
410  *    do tx-antenna selection for SISO transmissions
411  * for NREV=3, bit 6 and bit _8_ means antenna 0 and 1 respectively, bit6+bit7 means last rx and
412  *    do tx-antenna selection for SISO transmissions
413  * for NREV>=7, bit 6 and bit 7 mean antenna 0 and 1 respectively, nit6+bit7 means both cores active
414 */
415 static void _wlc_stf_phy_txant_upd(struct wlc_info *wlc)
416 {
417         s8 txant;
418
419         txant = (s8) wlc->stf->txant;
420         ASSERT(txant == ANT_TX_FORCE_0 || txant == ANT_TX_FORCE_1
421                || txant == ANT_TX_LAST_RX);
422
423         if (WLC_PHY_11N_CAP(wlc->band)) {
424                 if (txant == ANT_TX_FORCE_0) {
425                         wlc->stf->phytxant = PHY_TXC_ANT_0;
426                 } else if (txant == ANT_TX_FORCE_1) {
427                         wlc->stf->phytxant = PHY_TXC_ANT_1;
428
429                         if (WLCISNPHY(wlc->band) &&
430                             NREV_GE(wlc->band->phyrev, 3)
431                             && NREV_LT(wlc->band->phyrev, 7)) {
432                                 wlc->stf->phytxant = PHY_TXC_ANT_2;
433                         }
434                 } else {
435                         if (WLCISLCNPHY(wlc->band) || WLCISSSLPNPHY(wlc->band))
436                                 wlc->stf->phytxant = PHY_TXC_LCNPHY_ANT_LAST;
437                         else {
438                                 /* keep this assert to catch out of sync wlc->stf->txcore */
439                                 ASSERT(wlc->stf->txchain > 0);
440                                 wlc->stf->phytxant =
441                                     wlc->stf->txchain << PHY_TXC_ANT_SHIFT;
442                         }
443                 }
444         } else {
445                 if (txant == ANT_TX_FORCE_0)
446                         wlc->stf->phytxant = PHY_TXC_OLD_ANT_0;
447                 else if (txant == ANT_TX_FORCE_1)
448                         wlc->stf->phytxant = PHY_TXC_OLD_ANT_1;
449                 else
450                         wlc->stf->phytxant = PHY_TXC_OLD_ANT_LAST;
451         }
452
453         wlc_bmac_txant_set(wlc->hw, wlc->stf->phytxant);
454 }
455
456 void wlc_stf_phy_txant_upd(struct wlc_info *wlc)
457 {
458         _wlc_stf_phy_txant_upd(wlc);
459 }
460
461 void wlc_stf_phy_chain_calc(struct wlc_info *wlc)
462 {
463         /* get available rx/tx chains */
464         wlc->stf->hw_txchain = (u8) getintvar(wlc->pub->vars, "txchain");
465         wlc->stf->hw_rxchain = (u8) getintvar(wlc->pub->vars, "rxchain");
466
467         /* these parameter are intended to be used for all PHY types */
468         if (wlc->stf->hw_txchain == 0 || wlc->stf->hw_txchain == 0xf) {
469                 if (WLCISNPHY(wlc->band)) {
470                         wlc->stf->hw_txchain = TXCHAIN_DEF_NPHY;
471                 } else {
472                         wlc->stf->hw_txchain = TXCHAIN_DEF;
473                 }
474         }
475
476         wlc->stf->txchain = wlc->stf->hw_txchain;
477         wlc->stf->txstreams = (u8) WLC_BITSCNT(wlc->stf->hw_txchain);
478
479         if (wlc->stf->hw_rxchain == 0 || wlc->stf->hw_rxchain == 0xf) {
480                 if (WLCISNPHY(wlc->band)) {
481                         wlc->stf->hw_rxchain = RXCHAIN_DEF_NPHY;
482                 } else {
483                         wlc->stf->hw_rxchain = RXCHAIN_DEF;
484                 }
485         }
486
487         wlc->stf->rxchain = wlc->stf->hw_rxchain;
488         wlc->stf->rxstreams = (u8) WLC_BITSCNT(wlc->stf->hw_rxchain);
489
490         /* initialize the txcore table */
491         memcpy(wlc->stf->txcore, txcore_default, sizeof(wlc->stf->txcore));
492
493         /* default spatial_policy */
494         wlc->stf->spatial_policy = MIN_SPATIAL_EXPANSION;
495         wlc_stf_spatial_policy_set(wlc, MIN_SPATIAL_EXPANSION);
496 }
497
498 static u16 _wlc_stf_phytxchain_sel(struct wlc_info *wlc, ratespec_t rspec)
499 {
500         u16 phytxant = wlc->stf->phytxant;
501
502         if (RSPEC_STF(rspec) != PHY_TXC1_MODE_SISO) {
503                 ASSERT(wlc->stf->txstreams > 1);
504                 phytxant = wlc->stf->txchain << PHY_TXC_ANT_SHIFT;
505         } else if (wlc->stf->txant == ANT_TX_DEF)
506                 phytxant = wlc->stf->txchain << PHY_TXC_ANT_SHIFT;
507         phytxant &= PHY_TXC_ANT_MASK;
508         return phytxant;
509 }
510
511 u16 wlc_stf_phytxchain_sel(struct wlc_info *wlc, ratespec_t rspec)
512 {
513         return _wlc_stf_phytxchain_sel(wlc, rspec);
514 }
515
516 u16 wlc_stf_d11hdrs_phyctl_txant(struct wlc_info *wlc, ratespec_t rspec)
517 {
518         u16 phytxant = wlc->stf->phytxant;
519         u16 mask = PHY_TXC_ANT_MASK;
520
521         /* for non-siso rates or default setting, use the available chains */
522         if (WLCISNPHY(wlc->band)) {
523                 ASSERT(wlc->stf->txchain != 0);
524                 phytxant = _wlc_stf_phytxchain_sel(wlc, rspec);
525                 mask = PHY_TXC_HTANT_MASK;
526         }
527         phytxant |= phytxant & mask;
528         return phytxant;
529 }